public class ValuesSelectionAction extends Object
Modifier and Type | Field and Description |
---|---|
protected JButton |
add |
protected boolean |
allowValueOutsideDropDownList |
protected JComboBox<String> |
domainBox |
protected JList<String> |
list |
protected String[] |
ontologyClasses |
protected JPanel |
panel |
protected JButton |
remove |
Constructor and Description |
---|
ValuesSelectionAction() |
protected String[] ontologyClasses
protected boolean allowValueOutsideDropDownList
public ValuesSelectionAction()
public int showGUI(String windowTitle, String[] inDropDownList, String[] alreadySelected, boolean allowValueOutsideDropDownList, Icon icon)
windowTitle
- title of the windowinDropDownList
- list of choicesalreadySelected
- initial selectionallowValueOutsideDropDownList
- true if allowedicon
- message dialogue iconJOptionPane.CLOSED_OPTION
,
JOptionPane.UNINITIALIZED_VALUE
, JOptionPane.OK_OPTION
,
JOptionPane.CANCEL_OPTION
.public String[] getSelectedValues()