aui
Tag button-item


Deprecated as of 6.2, replaced by aui:button.


Tag Information
Tag Classcom.liferay.taglib.aui.ButtonItemTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
activeStatefalsetruebooleanWhether to track the active state of the button.
boundingBoxfalsetruejava.lang.StringThe outermost DOM node for the Widget, used for sizing and positioning of a Widget as well as a containing element for any decorator elements used for skinning.
classNamesfalsetruejava.lang.ObjectAn object map of the CSS class names to use for the different interaction states.
contentBoxfalsetruejava.lang.StringA DOM node that is a direct descendant of a Widget's bounding box that houses its content.
cssClassfalsetruejava.lang.StringCSS class to be automatically added to the boundingBox.
defaultStatefalsetruebooleanWhether to apply the default interaction state to the button
depthfalsetruejava.lang.ObjectNumber representing the depth of this Widget relative to the root Widget in the object heirarchy.
destroyedfalsetruebooleanFlag indicating whether or not this object has been through the destroy lifecycle phase.
disabledfalsetruebooleanBoolean indicating if the Widget should be disabled. The disabled implementation is left to the specific classes extending widget.
focusedfalsetruebooleanBoolean indicating if the Widget, or one of its descendants, has focus.
handlerfalsetruejava.lang.ObjectAn event callback to handle when a user interacts with the button. This can either be a function that will be attached on click, or an object map that accepts the following keys: {fn: // The function to execute context: // The context to execute the function in type: // The type of event to listen for (defaults to "click") }
heightfalsetruejava.lang.ObjectString with units, or number, representing the height of the Widget. If a number is provided, the default unit, defined by the Widgets DEF_UNIT, property is used.
hideClassfalsetruejava.lang.Stringcss class added to hide the boundingBox when visible is set to false.
hoverStatefalsetruebooleanWhether to track the hover interaction state of the button.
iconfalsetruejava.lang.StringThe icon to use inside of the button. Possible values are:
iconNodefalsetruejava.lang.StringDOM Node to display the icon of the ButtonItem. If not specified try to query using HTML_PARSER an element inside boundingBox which matches aui-button-icon.
buttonitemIdfalsetruejava.lang.String
indexfalsetruejava.lang.ObjectNumber representing the Widget's ordinal position in its parent Widget.
initializedfalsetruebooleanFlag indicating whether or not this object has been through the init lifecycle phase.
labelfalsetruejava.lang.StringText to use inside of the button.
labelNodefalsetruejava.lang.StringDOM Node to display the text of the ButtonItem. If not specified try to query using HTML_PARSER an element inside boundingBox which matches aui-button-label.
buttonitemParentfalsetruejava.lang.ObjectRetrieves the parent of the Widget in the object hierarchy.
renderfalsetruejava.lang.ObjectIf true the render phase will be autimatically invoked preventing the .render() manual call.
renderedfalsetruebooleanFlag indicating whether or not this Widget has been through the render lifecycle phase.
rootfalsetruejava.lang.ObjectReturns the root Widget in the object hierarchy. If the ROOT_TYPE property is set, the search for the root Widget will be constrained to parent Widgets of the specified type.
selectedfalsetruejava.lang.ObjectNumber indicating if the Widget is selected. Possible values are:
0
(Default) Not selected
1
Fully selected
2
Partially selected
srcNodefalsetruejava.lang.StringThe DOM node to parse for configuration values, passed to the Widget's HTML_PARSER definition
stringsfalsetruejava.lang.ObjectCollection of strings used to label elements of the Widget's UI.
tabIndexfalsetruejava.lang.ObjectNumber (between -32767 to 32767) indicating the widget's position in the default tab flow. The value is used to set the "tabIndex" attribute on the widget's bounding box. Negative values allow the widget to receive DOM focus programmatically (by calling the focus method), while being removed from the default tab flow. A value of null removes the "tabIndex" attribute from the widget's bounding box.
titlefalsetruejava.lang.StringText to use as the title attribute of the button.
typefalsetruejava.lang.StringButton type.
useARIAfalsetruebooleanBoolean indicating if use of the WAI-ARIA Roles and States should be enabled for the Widget.
visiblefalsetruebooleanBoolean indicating weather or not the Widget is visible.
widthfalsetruejava.lang.ObjectString with units, or number, representing the width of the Widget. If a number is provided, the default unit, defined by the Widgets DEF_UNIT, property is used.
afterActiveStateChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'activeState' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterBoundingBoxChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'boundingBox' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterClassNamesChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'classNames' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterContentBoxChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'contentBox' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterCssClassChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'cssClass' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterDefaultStateChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'defaultState' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterDepthChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'depth' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterDestroyfalsetruejava.lang.Object

Lifecycle event for the destroy phase, fired prior to destruction. Invoking the preventDefault method on the event object provided to subscribers will prevent destruction from proceeding.

Subscribers to the "after" moment of this event, will be notified after destruction is complete (and as a result cannot prevent destruction).

afterDestroyedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'destroyed' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterDisabledChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'disabled' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterFocusedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'focused' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterHandlerChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'handler' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterHeightChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'height' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterHideClassChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'hideClass' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterHoverStateChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'hoverState' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterIconChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'icon' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterIconNodeChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'iconNode' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterIdChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'id' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterIndexChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'index' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterInitfalsetruejava.lang.Object

Lifecycle event for the init phase, fired prior to initialization. Invoking the preventDefault() method on the event object provided to subscribers will prevent initialization from occuring.

Subscribers to the "after" momemt of this event, will be notified after initialization of the object is complete (and therefore cannot prevent initialization).

afterInitializedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'initialized' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterLabelChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'label' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterLabelNodeChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'labelNode' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterParentChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'parent' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterRenderChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'render' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterRenderedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'rendered' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterRootChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'root' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterSelectedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'selected' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterSrcNodeChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'srcNode' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterStringsChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'strings' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterTabIndexChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'tabIndex' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterTitleChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'title' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterTypeChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'type' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterUseARIAChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'useARIA' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterVisibleChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'visible' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
afterContentUpdatefalsetruejava.lang.ObjectNotification event, which widget implementations can fire, when they change the content of the widget. This event has no default behavior and cannot be prevented, so the "on" or "after" moments are effectively equivalent (with on listeners being invoked before after listeners).
afterRenderfalsetruejava.lang.ObjectLifecycle event for the render phase, fired prior to rendering the UI for the widget (prior to invoking the widget's renderer method).

Subscribers to the "on" moment of this event, will be notified before the widget is rendered.

Subscribers to the "after" moment of this event, will be notified after rendering is complete.

afterWidthChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'width' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onActiveStateChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'activeState' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onBoundingBoxChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'boundingBox' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onClassNamesChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'classNames' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onContentBoxChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'contentBox' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onCssClassChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'cssClass' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onDefaultStateChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'defaultState' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onDepthChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'depth' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onDestroyfalsetruejava.lang.Object

Lifecycle event for the destroy phase, fired prior to destruction. Invoking the preventDefault method on the event object provided to subscribers will prevent destruction from proceeding.

Subscribers to the "after" moment of this event, will be notified after destruction is complete (and as a result cannot prevent destruction).

onDestroyedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'destroyed' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onDisabledChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'disabled' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onFocusedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'focused' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onHandlerChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'handler' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onHeightChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'height' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onHideClassChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'hideClass' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onHoverStateChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'hoverState' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onIconChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'icon' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onIconNodeChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'iconNode' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onIdChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'id' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onIndexChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'index' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onInitfalsetruejava.lang.Object

Lifecycle event for the init phase, fired prior to initialization. Invoking the preventDefault() method on the event object provided to subscribers will prevent initialization from occuring.

Subscribers to the "after" momemt of this event, will be notified after initialization of the object is complete (and therefore cannot prevent initialization).

onInitializedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'initialized' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onLabelChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'label' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onLabelNodeChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'labelNode' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onParentChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'parent' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onRenderChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'render' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onRenderedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'rendered' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onRootChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'root' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onSelectedChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'selected' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onSrcNodeChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'srcNode' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onStringsChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'strings' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onTabIndexChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'tabIndex' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onTitleChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'title' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onTypeChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'type' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onUseARIAChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'useARIA' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onVisibleChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'visible' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.
onContentUpdatefalsetruejava.lang.ObjectNotification event, which widget implementations can fire, when they change the content of the widget. This event has no default behavior and cannot be prevented, so the "on" or "after" moments are effectively equivalent (with on listeners being invoked before after listeners).
onRenderfalsetruejava.lang.ObjectLifecycle event for the render phase, fired prior to rendering the UI for the widget (prior to invoking the widget's renderer method).

Subscribers to the "on" moment of this event, will be notified before the widget is rendered.

Subscribers to the "after" moment of this event, will be notified after rendering is complete.

onWidthChangefalsetruejava.lang.ObjectFires when the value for the configuration attribute 'width' is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.