jET
1.0beta1


org.jet
Class ZoomComboBoxEditor

java.lang.Object
  |
  +--org.jet.ZoomComboBoxEditor
All Implemented Interfaces:
javax.swing.ComboBoxEditor

public class ZoomComboBoxEditor
extends java.lang.Object
implements javax.swing.ComboBoxEditor

Formatted text field as the combo box editor.


Field Summary
protected  javax.swing.JFormattedTextField editor
          Editor component.
 
Constructor Summary
ZoomComboBoxEditor()
          Creates new editor for combo box.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener listener)
          Adds action listener to the editor.
 java.awt.Component getEditorComponent()
          Gets the GUI component to be used as editor.
 java.lang.Object getItem()
          Gets edited value.
 javax.swing.JFormattedTextField getTextField()
          Gets editor.
 void removeActionListener(java.awt.event.ActionListener listener)
          Removes action listener from the editor.
 void selectAll()
          Selects content of the editor.
 void setItem(java.lang.Object item)
          Sets editor with value.
 
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
Editor component.

Constructor Detail

ZoomComboBoxEditor

public ZoomComboBoxEditor()
Creates new editor for combo box. An instance of this editor is a formatted text field.

Method Detail

getEditorComponent

public java.awt.Component getEditorComponent()
Gets the GUI component to be used as editor.

Specified by:
getEditorComponent in interface javax.swing.ComboBoxEditor

getItem

public java.lang.Object getItem()
Gets edited value.

Specified by:
getItem in interface javax.swing.ComboBoxEditor

setItem

public void setItem(java.lang.Object item)
Sets editor with value.

Specified by:
setItem in interface javax.swing.ComboBoxEditor

selectAll

public void selectAll()
Selects content of the editor.

Specified by:
selectAll in interface javax.swing.ComboBoxEditor

addActionListener

public void addActionListener(java.awt.event.ActionListener listener)
Adds action listener to the editor.

Specified by:
addActionListener in interface javax.swing.ComboBoxEditor

removeActionListener

public void removeActionListener(java.awt.event.ActionListener listener)
Removes action listener from the editor.

Specified by:
removeActionListener in interface javax.swing.ComboBoxEditor

getTextField

public javax.swing.JFormattedTextField getTextField()
Gets editor.


jET
1.0beta1