Package VASSAL.build.module
Class MultiActionButton
java.lang.Object
VASSAL.build.AbstractBuildable
VASSAL.build.AbstractConfigurable
VASSAL.build.module.ToolbarMenu
VASSAL.build.module.MultiActionButton
- All Implemented Interfaces:
ContainerListener,PropertyChangeListener,EventListener,AutoConfigurable,Buildable,Configurable,GameComponent,PropertyNameSource,ValidityChecker,Translatable,RecursionLimiter.Loopable
public class MultiActionButton extends ToolbarMenu implements RecursionLimiter.Loopable
Combines multiple buttons from the toolbar into a single button. Pushing the single button is equivalent to pushing
the other buttons in order.
- Author:
- rkinney
-
Nested Class Summary
Nested classes/interfaces inherited from interface VASSAL.build.AutoConfigurable
AutoConfigurable.Util -
Field Summary
Fields inherited from class VASSAL.build.module.ToolbarMenu
BUTTON_HOTKEY, BUTTON_ICON, BUTTON_TEXT, buttonsToMenuMap, DESCRIPTION, HIDDEN_BY_TOOLBAR, launch, menu, MENU_ITEMS, MENU_PROPERTY, menuBuilder, menuItems, toolbar, TOOLTIPFields inherited from class VASSAL.build.AbstractConfigurable
changeSupport, config, localizedName, myI18nData, name -
Constructor Summary
Constructors Constructor Description MultiActionButton() -
Method Summary
Modifier and Type Method Description String[]getAttributeDescriptions()Return an array of Strings describing the attributes of this object.StringgetComponentName()StringgetComponentTypeName()static StringgetConfigureTypeName()HelpFilegetHelpFile()voidlaunch()Methods inherited from class VASSAL.build.module.ToolbarMenu
addTo, buildMenu, componentAdded, componentRemoved, getAllowableConfigureComponents, getAttributeNames, getAttributeTypes, getAttributeValueString, getRestoreCommand, propertyChange, removeFrom, scheduleBuildMenu, setAttribute, setupMethods inherited from class VASSAL.build.AbstractConfigurable
add, addPropertyChangeListener, getAttributeVisibility, getConfigureComponents, getConfigureName, getConfigurer, getI18nData, getI18nPrefix, getLocalizedConfigureName, remove, removePropertyChangeListener, setAllAttributesUntranslatable, setAttributeTranslatable, setConfigureNameMethods inherited from class VASSAL.build.AbstractBuildable
build, getAllDescendantComponents, getAllDescendantComponentsOf, getBuildables, getBuildComponents, getBuildElement, getComponents, getComponentsOf, getPropertyNames, validate
-
Constructor Details
-
MultiActionButton
public MultiActionButton()
-
-
Method Details
-
getAttributeDescriptions
Description copied from class:AbstractConfigurableReturn an array of Strings describing the attributes of this object. These strings are used as prompts in the Properties window for this object. The order of descriptions should be the same as the order of names inAbstractBuildable.getAttributeNames()- Specified by:
getAttributeDescriptionsin interfaceAutoConfigurable- Overrides:
getAttributeDescriptionsin classToolbarMenu
-
launch
public void launch()- Overrides:
launchin classToolbarMenu
-
getConfigureTypeName
-
getHelpFile
- Specified by:
getHelpFilein interfaceConfigurable- Overrides:
getHelpFilein classToolbarMenu- Returns:
- a HelpFilte describing how to use and configure this component
-
getComponentName
- Specified by:
getComponentNamein interfaceRecursionLimiter.Loopable
-
getComponentTypeName
- Specified by:
getComponentTypeNamein interfaceRecursionLimiter.Loopable
-