kawigi.config
Class TagNameEditor

java.lang.Object
  |
  +--kawigi.config.TagNameEditor
All Implemented Interfaces:
javax.swing.ComboBoxEditor

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

Manages editing cells in the JComboBox that has the names of all of the tags in a TagLibrary


Constructor Summary
TagNameEditor()
          Creates a new TagNameEditor and sets up the text field according to the user's settings.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          Add an ActionListener.
 java.awt.Component getEditorComponent()
          Returns a JTextField for editing names of stuff.
 java.lang.Object getItem()
          Returns the selected item.
 java.lang.String getText()
          Returns the text in the editor.
 void removeActionListener(java.awt.event.ActionListener l)
          Remove an ActionListener.
 void selectAll()
          Selects the text being edited.
 void setItem(java.lang.Object item)
          Sets the MethodInfo object that should be edited.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagNameEditor

public TagNameEditor()
Creates a new TagNameEditor and sets up the text field according to the user's settings.

Method Detail

getEditorComponent

public java.awt.Component getEditorComponent()
Returns a JTextField for editing names of stuff.

Specified by:
getEditorComponent in interface javax.swing.ComboBoxEditor

setItem

public void setItem(java.lang.Object item)
Sets the MethodInfo object that should be edited.

Specified by:
setItem in interface javax.swing.ComboBoxEditor

getItem

public java.lang.Object getItem()
Returns the selected item.

Specified by:
getItem in interface javax.swing.ComboBoxEditor

getText

public java.lang.String getText()
Returns the text in the editor.


selectAll

public void selectAll()
Selects the text being edited.

Specified by:
selectAll in interface javax.swing.ComboBoxEditor

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Add an ActionListener. An action event is generated when the edited item changes

Specified by:
addActionListener in interface javax.swing.ComboBoxEditor

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
Remove an ActionListener.

Specified by:
removeActionListener in interface javax.swing.ComboBoxEditor