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/DisableShortcutsOnFocusGainedTextField.java

    r5927 r6830  
    5656     * <code>null</code>.
    5757     *
    58      * @param columns  the number of columns to use to calculate 
     58     * @param columns  the number of columns to use to calculate
    5959     *   the preferred width; if columns is set to zero, the
    6060     *   preferred width will be whatever naturally results from
    6161     *   the component implementation
    62      */ 
     62     */
    6363    public DisableShortcutsOnFocusGainedTextField(int columns) {
    6464        super(columns);
     
    7171     *
    7272     * @param text the text to be displayed, or <code>null</code>
    73      * @param columns  the number of columns to use to calculate 
     73     * @param columns  the number of columns to use to calculate
    7474     *   the preferred width; if columns is set to zero, the
    7575     *   preferred width will be whatever naturally results from
     
    9191     *      <code>createDefaultModel</code> method
    9292     * @param text  the initial string to display, or <code>null</code>
    93      * @param columns  the number of columns to use to calculate 
    94      *   the preferred width >= 0; if <code>columns</code>
     93     * @param columns  the number of columns to use to calculate
     94     *   the preferred width &gt;= 0; if <code>columns</code>
    9595     *   is set to zero, the preferred width will be whatever
    9696     *   naturally results from the component implementation
    97      * @exception IllegalArgumentException if <code>columns</code> < 0
     97     * @exception IllegalArgumentException if <code>columns</code> &lt; 0
    9898     */
    9999    public DisableShortcutsOnFocusGainedTextField(Document doc, String text, int columns) {
     
    108108        addFocusListener(this);
    109109    }
    110    
     110
    111111    @Override
    112112    public void focusGained(FocusEvent e) {
     
    120120        restoreMenuActions();
    121121    }
    122    
     122
    123123    /**
    124124     * Disables all relevant menu actions.
     
    149149        }
    150150    }
    151        
     151
    152152    /**
    153153     * Unregisters all relevant action shortcuts.
     
    156156    protected void unregisterActionShortcuts() {
    157157        unregisteredActionShortcuts.clear();
    158         // Unregister all actions without modifiers to avoid them to be triggered by typing in this text field 
     158        // Unregister all actions without modifiers to avoid them to be triggered by typing in this text field
    159159        for (Shortcut shortcut : Shortcut.listAll()) {
    160160            KeyStroke ks = shortcut.getKeyStroke();
     
    168168        }
    169169    }
    170    
     170
    171171    /**
    172172     * Returns true if the given shortcut has no modifier and is not an actions key.
Note: See TracChangeset for help on using the changeset viewer.