|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.scopemvc.view.swing.SComboBoxEditor
Default combobox editor for SComboBox. It can be used for any value class for
which a StringConvertor exists. The editor is created in SComboBox
constructor, so it can be safely obtained with call getEditor
.
The StringConvertor is obtained from StringConvertors
to match the
type of object being edited.
Constructor Summary | |
SComboBoxEditor()
Constructor for the SComboBoxEditor object |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Add an ActionListener. |
java.awt.Component |
getEditorComponent()
Return the component that should be added to the tree hierarchy for this editor |
java.lang.Object |
getItem()
Return the edited item. |
void |
removeActionListener(java.awt.event.ActionListener l)
Remove an ActionListener |
void |
selectAll()
Ask the editor to start editing and to select everything |
void |
setItem(java.lang.Object anObject)
Set the item that should be edited. |
void |
setStringConvertor(StringConvertor conv)
Sets the string convertor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SComboBoxEditor()
Method Detail |
public java.lang.Object getItem() throws java.lang.IllegalStateException
getItem
in interface javax.swing.ComboBoxEditor
java.lang.IllegalStateException
- TODO: Describe the Exceptionpublic java.awt.Component getEditorComponent()
getEditorComponent
in interface javax.swing.ComboBoxEditor
public final void setStringConvertor(StringConvertor conv)
conv
- The new stringConvertor valuepublic void setItem(java.lang.Object anObject)
setItem
in interface javax.swing.ComboBoxEditor
anObject
- The new item valuepublic void addActionListener(java.awt.event.ActionListener l)
addActionListener
in interface javax.swing.ComboBoxEditor
l
- The element to be added to the ActionListener attributepublic void selectAll()
selectAll
in interface javax.swing.ComboBoxEditor
public void removeActionListener(java.awt.event.ActionListener l)
removeActionListener
in interface javax.swing.ComboBoxEditor
l
- TODO: Describe the Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |