Ignore:
Timestamp:
2014-02-10T00:51:53+01:00 (10 years ago)
Author:
Don-vip
Message:

javadoc fixes for jdk8 compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmPasswordField.java

    r6617 r6830  
    1414
    1515/**
    16  * A subclass of {@link JPasswordField} to implement a workaround to 
     16 * A subclass of {@link JPasswordField} to implement a workaround to
    1717 * <a href="https://bugs.openjdk.java.net/browse/JDK-6322854">JDK bug 6322854</a>.
    1818 * This class can be deleted after Oracle decides to fix this bug...
    19  * 
     19 *
    2020 * @since 5752
    2121 * @see <a href="http://josm.openstreetmap.de/ticket/8404">http://josm.openstreetmap.de/ticket/8404</a>
     
    3535    /**
    3636     * Constructs a new <code>JosmPasswordField</code> that uses the
    37      * given text storage model and the given number of columns. 
     37     * given text storage model and the given number of columns.
    3838     * This is the constructor through which the other constructors feed.
    3939     * The echo character is set to '*', but may be changed by the current
     
    4343     * @param doc  the text storage to use
    4444     * @param txt the text to be displayed, <code>null</code> if none
    45      * @param columns  the number of columns to use to calculate 
    46      *   the preferred width >= 0; if columns is set to zero, the
     45     * @param columns  the number of columns to use to calculate
     46     *   the preferred width &gt;= 0; if columns is set to zero, the
    4747     *   preferred width will be whatever naturally results from
    4848     *   the component implementation
     
    5858     * is set to <code>null</code>.
    5959     *
    60      * @param columns the number of columns >= 0
    61      */ 
     60     * @param columns the number of columns &gt;= 0
     61     */
    6262    public JosmPasswordField(int columns) {
    6363        super(columns);
     
    7171     *
    7272     * @param text the text to be displayed, <code>null</code> if none
    73      * @param columns the number of columns >= 0
     73     * @param columns the number of columns &gt;= 0
    7474     */
    7575    public JosmPasswordField(String text, int columns) {
     
    8989        workaroundJdkBug6322854(this);
    9090    }
    91    
     91
    9292    /**
    9393     * Implements a workaround to <a href="https://bugs.openjdk.java.net/browse/JDK-6322854">JDK bug 6322854</a>.
     
    9797        if (text != null) {
    9898            text.getActionMap().put("paste", new Action() {
    99                
     99
    100100                private final Action pasteAction = TransferHandler.getPasteAction();
    101                
     101
    102102                @Override
    103103                public void actionPerformed(ActionEvent e) {
     
    110110                    }
    111111                }
    112                
     112
    113113                @Override
    114114                public void setEnabled(boolean b) {
    115115                    pasteAction.setEnabled(b);
    116116                }
    117                
     117
    118118                @Override
    119119                public void removePropertyChangeListener(PropertyChangeListener listener) {
    120120                    pasteAction.removePropertyChangeListener(listener);
    121121                }
    122                
     122
    123123                @Override
    124124                public void putValue(String key, Object value) {
    125125                    pasteAction.putValue(key, value);
    126126                }
    127                
     127
    128128                @Override
    129129                public boolean isEnabled() {
    130130                    return pasteAction.isEnabled();
    131131                }
    132                
     132
    133133                @Override
    134134                public Object getValue(String key) {
    135135                    return pasteAction.getValue(key);
    136136                }
    137                
     137
    138138                @Override
    139139                public void addPropertyChangeListener(PropertyChangeListener listener) {
Note: See TracChangeset for help on using the changeset viewer.