org.geotools.gui.swing.sldeditor.property.std
Class DefaultScaleEditor.DoubleComboBoxEditor

java.lang.Object
  extended byorg.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

Nested Class Summary
 class DefaultScaleEditor.DoubleComboBoxEditor.ScaleVerifier
           
static class DefaultScaleEditor.DoubleComboBoxEditor.UIResource
          A subclass of DoubleComboBoxEditor that implements UIResource.
 
Field Summary
protected  javax.swing.JFormattedTextField editor
           
 
Constructor Summary
DefaultScaleEditor.DoubleComboBoxEditor()
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
           
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 java.awt.Component getEditorComponent()
           
 java.lang.Object getItem()
           
 void removeActionListener(java.awt.event.ActionListener l)
           
 void selectAll()
           
 void setItem(java.lang.Object anObject)
          Sets the item that should be edited.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editor

protected javax.swing.JFormattedTextField editor
Constructor Detail

DefaultScaleEditor.DoubleComboBoxEditor

public DefaultScaleEditor.DoubleComboBoxEditor()
Method Detail

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.