|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.modelling.group.editor.ui.SelectionPropertyFromCatalogDialogBox
public class SelectionPropertyFromCatalogDialogBox
Provide a graphical selection component for properties loaded from a set
of Properties Catalog. A tabbed pane is generated with an Index for each loaded
catalog. In each index a combo box of selection (and a description area) list the
selectable properties.
The component is modal and should be used like a file chooser. Selected
properties are available in a arraylist after the "OK" action has been
performed. See getSelectedProperties method.
Field Summary | |
---|---|
static String |
CANCEL_ACTION
|
static String |
OK_ACTION
|
Constructor Summary | |
---|---|
SelectionPropertyFromCatalogDialogBox(HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog)
Default constructor. |
|
SelectionPropertyFromCatalogDialogBox(HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog,
JFrame frame,
JComponent parent)
Advanced constructor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent evt)
|
void |
activeDefaultActionListener()
Active the default (embedded) action listener. |
com.artenum.frida.interfaces.PropertyInterface |
getLastSelectedProperty()
Get the last selected property (i.e from the current catalog). |
ArrayList<com.artenum.frida.interfaces.PropertyInterface> |
getSelectedProperties()
Get all selected properties (whatever the current selected catalog) into an ArrayList of PropertyInterface. |
boolean |
showSelectionDialog()
Display the dialog box and returns true if the ok button is click or false otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OK_ACTION
public static final String CANCEL_ACTION
Constructor Detail |
---|
public SelectionPropertyFromCatalogDialogBox(HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog)
propertiesCatalog
- public SelectionPropertyFromCatalogDialogBox(HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog, JFrame frame, JComponent parent)
propertiesCatalog
- frame
- parent
- Method Detail |
---|
public boolean showSelectionDialog()
public void activeDefaultActionListener()
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
public com.artenum.frida.interfaces.PropertyInterface getLastSelectedProperty()
public ArrayList<com.artenum.frida.interfaces.PropertyInterface> getSelectedProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |