Constructor Summary | |
---|---|
Public | Echo.Sync.Button() Creates a new Echo. |
Class Field Summary | |
---|---|
Internal | _defaultIconTextMargin Default margin between icon and text elements. |
Internal | _prototypeButton Prototype DOM hierarchy for a rendered button. |
Class Method Summary | |
---|---|
Internal | _createPrototypeButton() Creates the prototype DOM hierarchy for a rendered button. |
Instance Method Summary | |
---|---|
Public, Virtual | doAction() Processes a user action (i. |
Public, Virtual | renderContent() Renders the content (e. |
Public, Virtual | setPressedState() Enables/disables pressed appearance of button. |
Public, Virtual | setRolloverState() Enables/disables rollover appearance of button. |
Internal | _addEventListeners() Registers event listeners on the button. |
Public | getFocusFlags() |
Internal | _processBlur() Processes a focus blur event. |
Internal | _processClick() Processes a mouse click event. |
Internal | _processFocus() Processes a focus event. |
Internal | _processInitEvent() The Initial focus/mouse rollover listener. |
Internal | _processKeyPress() Processes a key press event. |
Internal | _processPress() Processes a mouse button press event, displaying the button's pressed appearance. |
Internal | _processRelease() Processes a mouse button release event on the button, displaying the button's normal appearance. |
Internal | _processRolloverEnter() Processes a mouse roll over event, displaying the button's rollover appearance. |
Internal | _processRolloverExit() Processes a mouse roll over exit event, displaying the button's normal appearance. |
Public | renderAdd() |
Internal | _renderButtonText() Renders the button text. |
Internal | _renderButtonIcon() Renders the button icon. |
Public | renderDispose() |
Public | renderFocus() |
Public | renderUpdate() |
Internal | _renderFocusStyle() Enables/disables focused appearance of button. |
Methods inherited from class Echo.Render.ComponentSync |
renderAdd , renderDispose , renderUpdate |
doAction()
on supported Echo.Component
.
this._div
).
pressedState
(Boolean)
- the new pressed state.rolloverState
(Boolean)
- the new rollover state.doAction()
in the case of enter being pressed.
element
- the element which should contain the text.text
- the text to renderelemnt
- the element which should contain the icon.icon
- the icon property to renderfocusState
(Boolean)
- the new focus state.