org.geotools.gui.swing.sldeditor.property.std
Class DefaultScaleEditor.DoubleComboBoxEditor
java.lang.Object
org.geotools.gui.swing.sldeditor.property.std.DefaultScaleEditor.DoubleComboBoxEditor
- All Implemented Interfaces:
- javax.swing.ComboBoxEditor, java.util.EventListener, java.awt.event.FocusListener
- Direct Known Subclasses:
- DefaultScaleEditor.DoubleComboBoxEditor.UIResource
- Enclosing class:
- DefaultScaleEditor
- public static class DefaultScaleEditor.DoubleComboBoxEditor
- extends java.lang.Object
- implements javax.swing.ComboBoxEditor, java.awt.event.FocusListener
An editor that allows only numbers to be inputed into the combo box
- Author:
- wolf
Field Summary |
protected javax.swing.JFormattedTextField |
editor
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editor
protected javax.swing.JFormattedTextField editor
DefaultScaleEditor.DoubleComboBoxEditor
public DefaultScaleEditor.DoubleComboBoxEditor()
getEditorComponent
public java.awt.Component getEditorComponent()
- Specified by:
getEditorComponent
in interface javax.swing.ComboBoxEditor
setItem
public void setItem(java.lang.Object anObject)
- Sets the item that should be edited.
- Specified by:
setItem
in interface javax.swing.ComboBoxEditor
- Parameters:
anObject
- the displayed value of the editor
getItem
public java.lang.Object getItem()
- Specified by:
getItem
in interface javax.swing.ComboBoxEditor
selectAll
public void selectAll()
- Specified by:
selectAll
in interface javax.swing.ComboBoxEditor
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
focusGained
in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
focusLost
in interface java.awt.event.FocusListener
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
- Specified by:
addActionListener
in interface javax.swing.ComboBoxEditor
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
- Specified by:
removeActionListener
in interface javax.swing.ComboBoxEditor
Copyright © GeoTools. All Rights Reserved.