EXECUTE – when the user clicks on the enabled button, when the button has focus and the user presses the
space or enter key, or when doExecute() is called on the button.CHANGE – when the state of a check or radio type button changes through user interaction or when
setState() is called under the deprecated 3.0 model event protocol.MENU – on a mouseup event with the right button when the button has a bound context menu.| Field Summary | |
|---|---|
| static int | Value of the state field indicating the up/off state. |
| static int | Value of the state field indicating the down/on state. |
| static int | Value of the type field indicating a check button. |
| static int | Value of the type field indicating a normal (stateless) button. |
| static int | Value of the type field indicating a radio button. |
| Constructor Summary | |
|---|---|
| void | The instance initializer. |
| Method Summary | |
|---|---|
| void | doClick() Deprecated. Use doExecute() to invoke the EXECUTE model event programmatically. |
| void | doExecute(objEvent : jsx3.gui.Event) Invokes the EXECUTE model event of this toolbar button. |
| int | Validates this button based on the type of button and whether this control is required. |
| String | Returns the URL of the image to use when this button is disabled. |
| int | Returns whether this toolbar button renders a visual divider on its left side. |
| String | Returns the name of the group to which this radio button belongs. |
| String | getImage() Returns the URL of the image to use to render this button. |
| int | getState() Returns the state of this button. |
| int | getType() Returns the type of this button. |
| static String | Deprecated. |
| String | paint() Returns this toolbar button serialized to HTML. |
| jsx3.gui.ToolbarButton | setDisabledImage(strURL : String) Sets the URL of the image to use when this button is disabled. |
| jsx3.gui.ToolbarButton | Sets whether this toolbar button renders a visual divider on its left side. |
| jsx3.gui.ToolbarButton | setGroupName(strGroupName : String) Sets the name of the group to which this radio button belongs. |
| jsx3.gui.ToolbarButton | Sets the URL of the image to use to render this button. |
| jsx3.gui.ToolbarButton | Sets the state of this button. |
| jsx3.gui.ToolbarButton | Sets the type of this button. |
| Methods Inherited From jsx3.gui.Form |
|---|
| doKeyBinding, doReset, getDisabledBackgroundColor, getDisabledColor, getEnabled, getKeyBinding, getRequired, getValidationState, getValue, setDisabledBackgroundColor, setDisabledColor, setEnabled, setKeyBinding, setRequired, setValidationState, setValue |
| Methods Inherited From jsx3.gui.Block |
|---|
| getBackground, getBackgroundColor, getBorder, getCSSOverride, getClassName, getColor, getCursor, getDimensions, getDisplay, getFontName, getFontSize, getFontWeight, getHeight, getIndex, getLeft, getMargin, getOverflow, getPadding, getRelativePosition, getTagName, getText, getTextAlign, getTip, getTop, getVisibility, getWidth, getZIndex, hideMask, setBackground, setBackgroundColor, setBorder, setCSSOverride, setClassName, setColor, setCursor, setDimensions, setDisplay, setFontName, setFontSize, setFontWeight, setHeight, setIndex, setLeft, setMargin, setOverflow, setPadding, setRelativePosition, setTagName, setText, setTextAlign, setTip, setTop, setVisibility, setWidth, setZIndex, showMask |
| Methods Inherited From jsx3.gui.Interactive |
|---|
| doEvent, getCanDrag, getCanDrop, getCanMove, getCanSpy, getEvent, getEvents, getMenu, hasEvent, registerHotKey, removeEvent, removeEvents, setCanDrag, setCanDrop, setCanMove, setCanSpy, setEvent, setMenu, setSpyStyles, showSpy |
| Methods Inherited From jsx3.gui.Painted |
|---|
| focus, getAbsolutePosition, getAttribute, getAttributes, getDynamicProperty, getRendered, insertHTML, onAfterPaint, paintChild, paintChildren, recalcBox, removeAttribute, removeAttributes, repaint, setAttribute, setDynamicProperty |
| Methods Inherited From jsx3.util.EventDispatcher |
|---|
| publish, subscribe, unsubscribe, unsubscribeAll |
| Methods Inherited From jsx3.lang.Object |
|---|
| clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf |
| Field Detail |
|---|
| Constructor Detail |
|---|
TYPENORMAL, or TYPECHECK,
TYPERADIO.| Method Detail |
|---|
doExecute() to invoke the EXECUTE model event programmatically.EXECUTE model event of this toolbar button.EXECUTE model event of this toolbar button. Note that because the model event is invoked
programmatically rather than by user interaction the objEVENT event parameter will be
null if the objEvent parameter is undefined. If this is a radio button its state is
set to on. If this is a check button, its state is toggled.objEVENT.
jsx3.gui.Form.STATEVALID or jsx3.gui.Form.STATEINVALID. jsx3.Boolean.TRUE or jsx3.Boolean.FALSE.
null if this
button is not a radio button.STATEOFF. Radio and check
buttons may return STATEOFF or STATEON.STATEON or STATEOFF. TYPENORMAL, or TYPECHECK, or TYPERADIO.
jsx3.Boolean.TRUE or jsx3.Boolean.FALSE.CHANGE model event only under the deprecated 3.0 model event protocol.
STATEON or STATEOFF.TYPENORMAL, or TYPECHECK, TYPERADIO.