| | |
| | | import java.awt.*; |
| | | import java.awt.event.ActionListener; |
| | | import java.awt.event.ActionEvent; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * This class supports user interactions for a graphical application. |
| | |
| | | sb.append(Utils.breakHtmlString(summary, MAX_CHARS_PER_LINE)); |
| | | sb.append(Constants.HTML_BOLD_CLOSE); |
| | | sb.append(Constants.HTML_LINE_BREAK); |
| | | sb.append(Constants.HTML_LINE_BREAK); |
| | | sb.append(Utils.breakHtmlString(details, MAX_CHARS_PER_LINE)); |
| | | JEditorPane ep = UIFactory.makeHtmlPane( |
| | | sb.toString(), |
| | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public String createUnorderedList(List list) { |
| | | StringBuilder sb = new StringBuilder(); |
| | | if (list != null) { |
| | | sb.append(Constants.HTML_UNORDERED_LIST_OPEN); |
| | | for (Object o : list) { |
| | | sb.append(Constants.HTML_LIST_ITEM_OPEN); |
| | | sb.append(o.toString()); |
| | | sb.append(Constants.HTML_LIST_ITEM_CLOSE); |
| | | } |
| | | sb.append(Constants.HTML_UNORDERED_LIST_CLOSE); |
| | | } |
| | | return sb.toString(); |
| | | } |
| | | |
| | | /** |
| | | * JOptionPane that controls the number of characters that are allowed |
| | | * to appear on a single line in the input area of the dialog. |
| | | */ |