gate.gui.ontology
Class ValuesSelectionAction
java.lang.Object
gate.gui.ontology.ValuesSelectionAction
public class ValuesSelectionAction
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
domainBox
protected JComboBox domainBox
list
protected JList list
add
protected JButton add
remove
protected JButton remove
panel
protected JPanel panel
ontologyClasses
protected String[] ontologyClasses
allowValueOutsideDropDownList
protected boolean allowValueOutsideDropDownList
ValuesSelectionAction
public ValuesSelectionAction()
showGUI
public int showGUI(String windowTitle,
String[] inDropDownList,
String[] alreadySelected,
boolean allowValueOutsideDropDownList,
Icon icon)
- Dialogue that list possible choices to choose from.
- Parameters:
windowTitle
- title of the windowinDropDownList
- list of choicesalreadySelected
- initial selectionallowValueOutsideDropDownList
- true if allowedicon
- message dialogue icon
- Returns:
JOptionPane.CLOSED_OPTION
,
JOptionPane.UNINITIALIZED_VALUE
, JOptionPane.OK_OPTION
,
JOptionPane.CANCEL_OPTION
.
getSelectedValues
public String[] getSelectedValues()