Interface LabelSelector
-
- All Known Implementing Classes:
AbstractLabelSelectorPanel
,ButtonSelectorPanel
,ButtonSelectorWithColorPanel
,ComboBoxSelectorPanel
public interface LabelSelector
Interface 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.ObjectAnnotationPanel
getOwner()
Returns the owning panel.boolean
isUnsetButtonVisible()
Returns whether the unset button is visible.void
preselectCurrentLabel(String label)
Pre-selects the label.void
selectNextLabel()
Moves to the next label.void
setCurrentLabel(String value)
Sets the current label to use.void
setOwner(ObjectAnnotationPanel value)
Sets the owning panel.void
setUnsetButtonVisible(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.
-
-