Package VASSAL.build.module
Class MultiActionButton
java.lang.Object
VASSAL.search.AbstractImageFinder
VASSAL.build.AbstractBuildable
VASSAL.build.AbstractConfigurable
VASSAL.build.AbstractToolbarItem
VASSAL.build.module.ToolbarMenu
VASSAL.build.module.MultiActionButton
- All Implemented Interfaces:
ContainerListener,PropertyChangeListener,EventListener,AutoConfigurable,Buildable,Configurable,GameComponent,PropertyNameSource,ValidityChecker,Translatable,Auditable,ImageSearchTarget,SearchTarget,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 class VASSAL.build.AbstractToolbarItem
AbstractToolbarItem.FormattedStringConfig, AbstractToolbarItem.IconConfigNested 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_ICON_PROPERTY, MENU_ITEMS, MENU_PROPERTY, menuBuilder, menuItems, toolbar, TOOLTIPFields inherited from class VASSAL.build.AbstractToolbarItem
CAN_DISABLE, canDisable, DISABLED_ICON, disabledIconConfig, HIDE_WHEN_DISABLED, hideWhenDisabled, HOTKEY, ICON, NAME, property, PROPERTY_GATE, propertyGate, showDisabledOptionsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionString[]This getAttributeDescriptions() will return the items specific to the Toolbar Button - classes extending this should add their own items as well.Return the name of the trait or Component an Auditable isReturn a description of the Type of trait or Component an Auditable isstatic Stringvoidlaunch()Methods inherited from class VASSAL.build.module.ToolbarMenu
addTo, buildMenu, componentAdded, componentRemoved, getAllowableConfigureComponents, getAttributeNames, getAttributeTypes, getAttributeValueString, getMenuTextList, getRestoreCommand, propertyChange, removeFrom, scheduleBuildMenu, setAttribute, setupMethods inherited from class VASSAL.build.AbstractToolbarItem
addLocalImageNames, addPropertyGateListener, addPropertyGateListener, checkDisabled, disableIfTrue, getAttributeVisibility, getComponent, getLaunchButton, getNamedKeyStrokeList, getNameKey, getPropertyList, isShowDisabledOptions, makeLaunchButton, removePropertyGateListener, setButtonTextKey, setHotKeyKey, setIconKey, setLaunchButton, setNameKey, setNamePrompt, setShowDisabledOptions, setTooltipKeyMethods inherited from class VASSAL.build.AbstractConfigurable
add, addPropertyChangeListener, getConfigureComponents, getConfigureName, getConfigurer, getExpressionList, getFormattedStringList, getI18nData, getI18nPrefix, getLocalizedConfigureName, getTypeName, remove, removePropertyChangeListener, setAllAttributesUntranslatable, setAttributeTranslatable, setConfigureNameMethods inherited from class VASSAL.build.AbstractBuildable
addImageNamesRecursively, build, buildString, getAllDescendantComponentsOf, getAncestor, getBuildables, getBuildComponents, getBuildElement, getComponents, getComponentsOf, getNonFolderAncestor, getPropertyNames, setAncestor, validateMethods inherited from class VASSAL.search.AbstractImageFinder
getAllImageNames, getLocalImageNamesMethods 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, isMandatory, isMovable, isUnique
-
Constructor Details
-
MultiActionButton
public MultiActionButton()
-
-
Method Details
-
getAttributeDescriptions
Description copied from class:AbstractToolbarItemThis getAttributeDescriptions() will return the items specific to the Toolbar Button - classes extending this should add their own items as well. If the "nameKey" is blank, then no "name" configure entry will be generated. Extending classes can use ArrayUtils.addAll(super.getAttributeDescriptions(), key1, ..., keyN), or supply their own order from scratch.- 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 HelpFile describing how to use and configure * this component
-
getComponentName
Description copied from interface:AuditableReturn the name of the trait or Component an Auditable is- Specified by:
getComponentNamein interfaceAuditable- Returns:
- Component name
-
getComponentTypeName
Description copied from interface:AuditableReturn a description of the Type of trait or Component an Auditable is- Specified by:
getComponentTypeNamein interfaceAuditable- Returns:
- Component Type
-