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, nameFields inherited from class VASSAL.build.AbstractBuildable
buildComponents, validatorFields inherited from interface VASSAL.build.Configurable
NAME_PROPERTY -
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, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VASSAL.build.Buildable
build, getBuildElement
-
Constructor Details
-
MultiActionButton
public MultiActionButton()
-
-
Method Details
-
getAttributeDescriptions
Description copied from interface:AutoConfigurableReturn an array of Strings describing the attributes of this object. These strings are used as prompts in the Properties window for this object.- Specified by:
getAttributeDescriptionsin interfaceAutoConfigurable- Overrides:
getAttributeDescriptionsin classToolbarMenu- Returns:
- an array of Strings describing the buildFile (XML) attributes of this component. These strings are used as prompts in the
Properties window for this object, when the component is configured in the Editor. The order of descriptions should
be the same as the order of names in
AbstractBuildable.getAttributeNames()
-
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
-