|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.util.GUIPropertyListEnumerationOfGuiDisplayables
public class GUIPropertyListEnumerationOfGuiDisplayables
Field Summary | |
---|---|
protected javax.swing.JComboBox |
myComboBox
|
protected javax.swing.JPanel |
myContentPanel
|
protected java.lang.String |
myDescription
|
protected java.lang.String |
myName
|
protected javax.swing.JPanel |
myPanel
|
protected java.util.List<GuiDisplayable> |
myPossibleValues
|
protected GuiNotificationTarget |
myTarget
|
protected GuiDisplayable |
myValue
|
protected int |
myWidth
|
Constructor Summary | |
---|---|
GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name,
java.util.List<GuiDisplayable> values)
Creates an enumeration property without a discription and notification. |
|
GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name,
java.util.List<GuiDisplayable> values,
GuiNotificationTarget target)
Creates an enumeration property without a discription. |
|
GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name,
java.lang.String description,
java.util.List<GuiDisplayable> values)
Creates an enumeration property without notification. |
|
GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name,
java.lang.String description,
java.util.List<GuiDisplayable> values,
GuiNotificationTarget target)
Creates an enumeration property. |
|
GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name,
java.lang.String description,
java.util.List<GuiDisplayable> values,
GuiNotificationTarget target,
int width)
Creates an enumeration property. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
The method automatically invoked when changing the combobox status. |
void |
addValue(GuiDisplayable value)
Adds an enumeration value. |
void |
disable()
Prevents that this property may be manipulated via the GUI panel. |
void |
enable()
Re-activates the possibility to manipulate this property via the GUI panel. |
java.util.List<GuiDisplayable> |
getAllValues()
Retrieves all the possible values specified for this property. |
javax.swing.JPanel |
getPropertyPanel()
Creates GUI panel containg this property, ready to display in some settings dialog. |
GuiDisplayable |
getValue()
The method to be invoked when the value of this property is to be used. |
void |
notifyTarget()
Manually notify the target that the state of the radiolist has been changed. |
void |
removeValue(GuiDisplayable value)
Removes an enumeration value, if present |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String myName
protected java.lang.String myDescription
protected java.util.List<GuiDisplayable> myPossibleValues
protected GuiDisplayable myValue
protected GuiNotificationTarget myTarget
protected javax.swing.JComboBox myComboBox
protected int myWidth
protected javax.swing.JPanel myPanel
protected javax.swing.JPanel myContentPanel
Constructor Detail |
---|
public GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name, java.util.List<GuiDisplayable> values)
name
- the name of this propertyvalues
- the possible values of this property. The objects in this
list should either be simple strings or override the toString() method,
which is then displayed as the name of this value in the ComboBox. The
first value in the list is considered as the default valuepublic GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name, java.lang.String description, java.util.List<GuiDisplayable> values)
name
- the name of this propertydescription
- of this property (to be displayed as a tool tip)values
- the possible values of this property. The objects in this
list should either be simple strings or override the toString() method,
which is then displayed as the name of this value in the ComboBox. The
first value in the list is considered as the default valuepublic GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name, java.util.List<GuiDisplayable> values, GuiNotificationTarget target)
name
- the name of this propertyvalues
- the possible values of this property. The objects in this
list should either be simple strings or override the toString() method,
which is then displayed as the name of this value in the ComboBox. The
first value in the list is considered as the default valuetarget
- the object to be notified as soon the state of this property changespublic GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name, java.lang.String description, java.util.List<GuiDisplayable> values, GuiNotificationTarget target)
name
- the name of this propertydescription
- of this property (to be displayed as a tool tip)values
- the possible values of this property. The objects in this
list should either be simple strings or override the toString() method,
which is then displayed as the name of this value in the ComboBox. The
first value in the list is considered as the default valuetarget
- the object to be notified as soon the state of this property changespublic GUIPropertyListEnumerationOfGuiDisplayables(java.lang.String name, java.lang.String description, java.util.List<GuiDisplayable> values, GuiNotificationTarget target, int width)
name
- the name of this propertydescription
- of this property (to be displayed as a tool tip)values
- the possible values of this property. The objects in this
list should either be simple strings or override the toString() method,
which is then displayed as the name of this value in the ComboBox. The
first value in the list is considered as the default valuetarget
- the object to be notified as soon the state of this property changeswidth
- a custom width may be specified (default value is 100 otherwise)Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- the passed action event (not used)public void notifyTarget()
public GuiDisplayable getValue()
public java.util.List<GuiDisplayable> getAllValues()
public void removeValue(GuiDisplayable value)
value
- Object the enumeration value to be removedpublic void addValue(GuiDisplayable value)
value
- Object The enumeration value to be addedpublic void disable()
enable()
public void enable()
disable()
public javax.swing.JPanel getPropertyPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |