| Field Summary | |
|---|---|
| static int | Value for the state field indicating that the toggle button is off. |
| static int | Value for the state field indicating that the toggle button is on. |
| static int | Value for the type field indicating a normal button. |
| static int | Value for the type field indicating a toggle (2-state) button. |
| Constructor Summary | |
|---|---|
| void | init(strName : String, vntLeft : int | String, vntTop : int | String, vntWidth : int, vntHeight : int) The instance initializer. |
| Method Summary | |
|---|---|
| int | If this image button is of type TYPE_TOGGLE, then the state must be either STATE_ON
or required must be OPTIONAL to pass validation. |
| String | Returns the URI of the disabled image of this image button. |
| String | Returns the URI of the down image of this image button. |
| String | getImage() Returns the URI of the image of this image button. |
| String | Returns the URI of the on image of this image button. |
| String | Returns the URI of the over image of this image button. |
| int | getState() Returns the current state of this image button. |
| int | getType() Returns the type of this image button. |
| boolean | Returns true if the images of this image button are pre-fetched. |
| String | paint() Paints this image button. |
| jsx3.gui.ImageButton | setDisabledImage(strImage : String) Sets the URI of the disabled image of this image button. |
| jsx3.gui.ImageButton | setDownImage(strImage : String) Sets the URI of the down image of this image button. |
| jsx3.gui.ImageButton | Sets the URI of the image of this image button. |
| jsx3.gui.ImageButton | setOnImage(strImage : String) Sets the URI of the on image of this image button. |
| jsx3.gui.ImageButton | setOverImage(strImage : String) Sets the URI of the over image of this image button. |
| jsx3.gui.ImageButton | setPreFetch(bFetch : boolean) Sets whether if the images of this image button are pre-fetched. |
| jsx3.gui.ImageButton | Sets the current state of this image button and updates the displayed image accordingly. |
| jsx3.gui.ImageButton | Sets the type of this image 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 |
|---|
| Method Detail |
|---|
TYPE_TOGGLE, then the state must be either STATE_ON
or required must be OPTIONAL to pass validation.STATE_OFF or STATE_ON TYPE_NORMAL or TYPE_TOGGLE true if the images of this image button are pre-fetched.TYPE_TOGGLE and its state is STATE_ON.STATE_OFF or STATE_ONTYPE_NORMAL or TYPE_TOGGLE