Field Summary |
public static
| classInfo: Object |
| A static class information object
|
|
public
| delay: Number |
| Repeater delay to first repeat in ms
|
|
public
| interval: Number |
| Repeater interval in ms
|
|
public
| offset: Object |
| The amount (x and y values) to displace the Text and Icon when the button is in its down state.
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
public
| tabStop: Boolean |
| Is this control a tabstop
|
|
|
|
| Fields inherited from class xp.system.UIControl__layout, allowDrop, autoLayout, bindingDefaultValue, bindingFormatter, bindingPath, bindingSource, bindingType, bindingValidator, border, causesValidation, classInfo, clickOnENTER, clickOnSPACE, container, context, data, disableAcceptButton, disableCancelButton, enableBGMouseEvents, enableDblClickEvent, enableKeyDownEvents, enableKeyEvents, enableKeyUpEvents, enableMouseWheelEvents, formatterOptions, horizontalAlignment, index, isBinding, itemId, logEnabled, parent, parentContainer, parentForm, percentageHeight, percentageWidth, styleClass, tabIndex, tabStop, tooltip, tree, verticalAlignment |
|
Property Summary |
public
| dialogResult (read, write) |
| Sets the buttons dialogResult
|
|
public
| isCancel: Boolean (read, write) |
| Controls whther this is the cancel button that will be fire when escape is pressed*
|
|
public
| isDefault: Boolean (read, write) |
| Controls whther this is the default button that will be fire when enter is pressed*
|
|
public
| mode: String (read, write) |
| Controls the button behavior
|
|
|
| Properties inherited from class xp.controls.TextBasefont, fontBold, fontColor, fontEmbed, fontFamily, fontItalic, fontName, fontSize, fontStyle, fontUnderline, fontWeight, text, textAlign, textDecoration, textWrap |
|
| Properties inherited from class xp.system.UIControlalpha, autosize, background, backgroundVisible, bindings, borderBrush, borderRadius, borderShadow, borderStyle, borderThickness, bottom, dataSource, enableMouseEvents, focusManager, height, id, isEnabled, isFocused, isMouseOver, isPressed, isSelected, isValid, layout, left, margin, maxHeight, maxWidth, measuredHeight, measuredMinHeight, measuredMinWidth, measuredWidth, minHeight, minWidth, padding, readOnly, resources, right, styleName, top, triggers, visible, width, x, y |
|
Constructor |
public
| Button (
)
|
| expose enable property
|
|
Method Summary |
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public static
| newInstance (
owner, instanceId, depth, initObj
) |
| Creates a new Instance of this class
|
|
public
| notifyDefault (
v: Boolean
) |
| Notifies a control that it is the default button so that its appearance and behavior is adjusted accordingly. This method is called by a parent form to make a control the default button. Default buttons are set to have an extra thick border.
|
|
public
| performClick (
) |
| Generates a Click event for the control.
|
|
public
| performPress (
) |
| Generates a Press event for the control.
|
|
|
|
| Methods inherited from class xp.system.UIControladdBinding, addBindings, addEventListener, addPropertyTrigger, applyStyle, beginDeferUpdate, canUpdate, centerContent, checkState, containsFocus, destroy, destroyObject, drawFocus, endDeferUpdate, findFocusFromObject, findFocusInChildren, getBinding, getBounds, getCenter, getClass, getFocus, getFocusManager, getFocusRect, getLocation, getPropertyValue, getSize, getStateName, getTrigger, globalToLocalPoint, invalidate, invalidateLayout, invalidateSize, invalidateSizeAndLayout, invalidChild, isChild, isMouseDirectlyOver, isParent, localToGlobalPoint, localToLocalPoint, measure, mouseWheel, move, onChildFocus, onKillFocus, onSetFocus, processEnterKey, processEscapeKey, processTabKey, redraw, refresh, removeEventListener, routeEvent, setBounds, setFocus, setLocation, setPropertyValue, setSize, setValueChanged, update, validate |
|
|