Changeset 2801 in josm for trunk/src/org/openstreetmap/josm/gui/widgets
- Timestamp:
- 2010-01-09T23:38:57+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractTextComponentValidator.java
r2711 r2801 22 22 /** 23 23 * This is an abstract class for a validator on a text component. 24 * 24 * 25 25 * Subclasses implement {@see #validate()}. {@see #validate()} is invoked whenever 26 26 * <ul> … … 29 29 * <li>the text component is a {@see JTextField} and an {@see ActionEvent} is detected</li> 30 30 * </ul> 31 * 32 * 31 * 32 * 33 33 */ 34 34 public abstract class AbstractTextComponentValidator implements ActionListener, FocusListener, DocumentListener, PropertyChangeListener{ … … 70 70 /** 71 71 * Replies the decorated text component 72 * 72 * 73 73 * @return the decorated text component 74 74 */ … … 79 79 /** 80 80 * Creates the validator and weires it to the text component <code>tc</code>. 81 * 81 * 82 82 * @param tc the text component. Must not be null. 83 83 * @throws IllegalArgumentException thrown if tc is null … … 97 97 /** 98 98 * Implement in subclasses to validate the content of the text component. 99 * 99 * 100 100 */ 101 101 public abstract void validate(); … … 104 104 * Replies true if the current content of the decorated text component is valid; 105 105 * false otherwise 106 * 106 * 107 107 * @return true if the current content of the decorated text component is valid 108 108 */ -
trunk/src/org/openstreetmap/josm/gui/widgets/HtmlPanel.java
r2711 r2801 15 15 * This panel can be used to display larger larger sections of formatted text in 16 16 * HTML. 17 * 17 * 18 18 * It displays HTML text in the same font as {@see JLabel}. Hyperlinks are rendered in 19 19 * blue and they are underlined. There is also a CSS rule for the HTML tag <strong> 20 20 * configured. 21 * 21 * 22 22 */ 23 23 public class HtmlPanel extends JPanel { … … 63 63 /** 64 64 * Replies the editor pane used internally to render the HTML text. 65 * 65 * 66 66 * @return the editor pane used internally to render the HTML text. 67 67 */ … … 73 73 * Sets the current text to display. <code>text</code> is a html fragment. 74 74 * If null, empty string is assumed. 75 * 75 * 76 76 * @param text the text to display 77 77 */
Note:
See TracChangeset
for help on using the changeset viewer.