|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.util.GuiPropertyStringList
public class GuiPropertyStringList
A string list property that can be readily displayed as it maintains its own GUI panel.
The property will be graphically represented as a list including buttons to add or
remove string values.
Changes performed via the GUI will be immedeately propagated to the internally held
property value.
Furthermore, a notification target
may be specified
in order to be informed as soon as the list of values has been changed.
A typical usage scenario looks as follows:
JPanel testPanel = new Panel(); // create parent panel
testPanel.setLayout(new BoxLayout(testPanel, BoxLayout.PAGE_AXIS));
ArrayList
testPanel.add(names.getPropertyPanel()); // add property
return testPanel;
getAllValues
,
getPropertyPanel
Constructor Summary | |
---|---|
GuiPropertyStringList(java.lang.String name,
java.util.List<java.lang.String> values)
Creates a string list property without a discription and notification. |
|
GuiPropertyStringList(java.lang.String name,
java.util.List<java.lang.String> values,
GuiNotificationTarget target)
Creates a string list without a discription. |
|
GuiPropertyStringList(java.lang.String name,
java.lang.String description,
java.util.List<java.lang.String> values)
Creates a string list property without notification. |
|
GuiPropertyStringList(java.lang.String name,
java.lang.String description,
java.util.List<java.lang.String> values,
GuiNotificationTarget target)
Creates a string list property. |
|
GuiPropertyStringList(java.lang.String name,
java.lang.String description,
java.util.List<java.lang.String> values,
GuiNotificationTarget target,
int height)
Creates a string list property. |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
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. |
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
Method to be automatically invoked as soon as the selection of the list changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiPropertyStringList(java.lang.String name, java.util.List<java.lang.String> values)
name
- the name of this propertyvalues
- the initial string values of this propertypublic GuiPropertyStringList(java.lang.String name, java.lang.String description, java.util.List<java.lang.String> values)
name
- the name of this propertydescription
- of this property (to be displayed as a tool tip)values
- the initial string values of this propertypublic GuiPropertyStringList(java.lang.String name, java.util.List<java.lang.String> values, GuiNotificationTarget target)
name
- the name of this propertyvalues
- the initial string values of this propertytarget
- the object to be notified as soon the state of this property changespublic GuiPropertyStringList(java.lang.String name, java.lang.String description, java.util.List<java.lang.String> values, GuiNotificationTarget target)
name
- the name of this propertydescription
- of this property (to be displayed as a tool tip)values
- the initial string values of this propertytarget
- the object to be notified as soon the state of this property changespublic GuiPropertyStringList(java.lang.String name, java.lang.String description, java.util.List<java.lang.String> values, GuiNotificationTarget target, int height)
name
- the name of this propertydescription
- of this property (to be displayed as a tool tip)values
- the initial string values of this propertytarget
- the object to be notified as soon the state of this property changesheight
- the preferred height for the list property (default value is 50)Method Detail |
---|
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged
in interface javax.swing.event.ListSelectionListener
public java.util.List<java.lang.String> getAllValues()
public javax.swing.JPanel getPropertyPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |