gate.gui.ontology
Class ValuesSelectionAction

java.lang.Object
  extended by gate.gui.ontology.ValuesSelectionAction

public class ValuesSelectionAction
extends Object


Field Summary
protected  JButton add
           
protected  boolean allowValueOutsideDropDownList
           
protected  JComboBox domainBox
           
protected  JList list
           
protected  String[] ontologyClasses
           
protected  JPanel panel
           
protected  JButton remove
           
 
Constructor Summary
ValuesSelectionAction()
           
 
Method Summary
 String[] getSelectedValues()
           
 int showGUI(String windowTitle, String[] inDropDownList, String[] alreadySelected, boolean allowValueOutsideDropDownList, Icon icon)
          Dialogue that list possible choices to choose from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ValuesSelectionAction

public ValuesSelectionAction()
Method Detail

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 window
inDropDownList - list of choices
alreadySelected - initial selection
allowValueOutsideDropDownList - true if allowed
icon - message dialogue icon
Returns:
JOptionPane.CLOSED_OPTION, JOptionPane.UNINITIALIZED_VALUE, JOptionPane.OK_OPTION, JOptionPane.CANCEL_OPTION.

getSelectedValues

public String[] getSelectedValues()