|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction com.jbbres.lib.actions.tools.swing.VComboBoxPersonalizedItem<C>
C
- - type of object associated to the itempublic abstract class VComboBoxPersonalizedItem<C>
A personalized item to be used in AbstractVariableComboBox
instances.
When a VComboBoxPersonalizedItem
is selected, a specific action
can be triggered.
VComboBoxPersonalizedItem
items appear at the end of the combo
box list.
Field Summary |
---|
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
VComboBoxPersonalizedItem(java.lang.String title)
Instantiates a new variable combo box personalized item. |
|
VComboBoxPersonalizedItem(java.lang.String title,
javax.swing.Icon icon)
Instantiates a new variable combo box personalized item. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.lang.Class<C> |
getContentClass()
For internal use only - returns the content class. |
abstract C |
getValue()
Returns the value associated to the personalized item. |
abstract void |
itemSelected()
This method is triggered when the user select the item within the combo box list. |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jbbres.lib.PropertiesOwner |
---|
getProperties, setProperties |
Constructor Detail |
---|
public VComboBoxPersonalizedItem(java.lang.String title, javax.swing.Icon icon)
title
- - name of the itemicon
- - icon of the itempublic VComboBoxPersonalizedItem(java.lang.String title)
title
- - name of the itemMethod Detail |
---|
public abstract void itemSelected()
public abstract C getValue()
public final java.lang.Class<C> getContentClass()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |