Interface LabelSelector
-
- All Known Implementing Classes:
AbstractLabelSelectorPanel,ButtonSelectorPanel,ButtonSelectorWithColorPanel,ComboBoxSelectorPanel
public interface LabelSelectorInterface for panels that allow selection of a label.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getLabels()Returns the labels to choose from.ObjectAnnotationPanelgetOwner()Returns the owning panel.booleanisUnsetButtonVisible()Returns whether the unset button is visible.voidpreselectCurrentLabel(String label)Pre-selects the label.voidselectNextLabel()Moves to the next label.voidsetCurrentLabel(String value)Sets the current label to use.voidsetOwner(ObjectAnnotationPanel value)Sets the owning panel.voidsetUnsetButtonVisible(boolean value)Shows or hides the "Unset" button.
-
-
-
Method Detail
-
setOwner
void setOwner(ObjectAnnotationPanel value)
Sets the owning panel.- Parameters:
value- the panel
-
getOwner
ObjectAnnotationPanel getOwner()
Returns the owning panel.- Returns:
- the panel, null if none set
-
getLabels
String[] getLabels()
Returns the labels to choose from.- Returns:
- the labels
-
preselectCurrentLabel
void preselectCurrentLabel(String label)
Pre-selects the label.- Parameters:
label- the label to use
-
setCurrentLabel
void setCurrentLabel(String value)
Sets the current label to use.- Parameters:
value- the label, null to unset
-
setUnsetButtonVisible
void setUnsetButtonVisible(boolean value)
Shows or hides the "Unset" button.- Parameters:
value- true if to show, false to hide
-
isUnsetButtonVisible
boolean isUnsetButtonVisible()
Returns whether the unset button is visible.- Returns:
- true if visible
-
selectNextLabel
void selectNextLabel()
Moves to the next label.
-
-