Package docking.menu
Class ButtonState<T>
java.lang.Object
docking.menu.ButtonState<T>
- Type Parameters:
T
- the type of the client data object.
Defines one "state" for a
MultiStateButton
. Each button state represents one choice from
a drop-down list of choices on the button. Each state provides information on what the button
text should be when it is the active state, the text in the drop-down for picking the state, text
for a tooltip description, and finally client data that the client can use to store info for
processing the action when that state is active.-
Constructor Summary
ConstructorDescriptionButtonState
(String buttonText, String menuText, String description, T clientData) ConstructorButtonState
(String buttonText, String description, T clientData) Constructor -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ButtonState
Constructor- Parameters:
buttonText
- the text to display as both the drop-down choice and the active button textdescription
- the tooltip for this stateclientData
- the client data for this state
-
ButtonState
Constructor- Parameters:
buttonText
- the text to display in the button when this state is activemenuText
- the text to display in the drop-down listdescription
- the tooltip for this stateclientData
- the client data for this state
-
-
Method Details
-
getButtonText
-
getMenuText
-
getDescription
-
getClientData
-