public class ButtonConfig extends ControlConfig
Modifier and Type | Field and Description |
---|---|
private static int |
ATTR_MASK_AUTO_END_KEY
Bitwise mask to mark AUTO END KEY atribute usage.
|
private static int |
ATTR_MASK_AUTO_GO
Bitwise mask to mark AUTO GO atribute usage.
|
private static int |
ATTR_MASK_CONVERT_3D
Bitwise mask to mark CONVERT 3D atribute usage.
|
private static int |
ATTR_MASK_FLAT_BUTTON
Bitwise mask to mark FLAT BUTTON atribute usage.
|
private static int |
ATTR_MASK_IS_DEFAULT
Bitwise mask to mark IS DEFAULT atribute usage.
|
private static int |
ATTR_MASK_NO_FOCUS
Bitwise mask to mark NO FOCUS atribute usage.
|
boolean |
autoEndKey
The Progress AUTO-END-KEY attribute.
|
boolean |
autoGo
The Progress AUTO-GO attribute.
|
boolean |
convert3D
Button NO-CONVERT-3D-COLORS flag and CONVERT-3D-COLORS attribute.
|
boolean |
flatButton
Button FLAT-BUTTON flag.
|
static int |
IMAGE_DISABLED
Insensitive image to load.
|
static int |
IMAGE_DOWN
Down image to load.
|
static int |
IMAGE_IMG
Image widget uses this.
|
static int |
IMAGE_UP
Up image to load.
|
ButtonImageDefinition |
imgDisabledDef
Button disabled (insensitive) image definition, re-assigned when button config changes
|
ButtonImageDefinition |
imgDownDef
Button down image definition, re-assigned when button config changes
|
ButtonImageDefinition |
imgUpDef
Button up image definition, re-assigned when button config changes
|
boolean |
isDefault
Means whether this button is default one or not.
|
java.lang.String |
mousePointer
MOUSE-POINTER attribute
|
boolean |
noFocus
Button NO-FOCUS flag.
|
static java.lang.String |
PREPACKAGED_INS_SUFFIX
Suffix for prepackaged images insensitive state.
|
attrSpace, autoResize, clabel, dataType, dropTarget, forceLabel, help, index, INVALID_SELECTION, label, labels, possibleSideLabel, selectionActive, selectionEnd, selectionStart, sideLabelId, untranslatedLabel
align, bgcolor, bgcolorRgb, captionFontSize, clientColumn, clientHeightChars, clientHeightPixels, clientRow, clientWidthChars, clientWidthPixels, clientX, clientY, column, dcolor, dynamic, fgcolor, fgcolorRgb, fixedHeight, fixedWidth, font, fontChanged, fontName, fontSize, fontStyle, frameColumnOffset, frameRowOffset, frameXOffset, frameYOffset, heightChars, heightPixels, initColumn, initHeightChars, initRow, initWidthChars, initX, initY, INV_COORD, locationChanged, movable, name, parentId, pfcolor, resizable, row, selected, sysbgcolor, sysfgcolor, systemParentId, tabStop, title, titleDColor, titleFont, tooltip, widgetPlaced, widthChars, widthPixels, x, y
cfgClass, contextHelpId, disableRedraw, enabled, frameDefValue, frameId, header, hidden, id, manualHightlight, menuKey, menuMouse, modified, popupMenuId, realized, selectable, state, visible, wasRealized, zorder
Modifier | Constructor and Description |
---|---|
|
ButtonConfig()
Default constructor (only used in deserialization).
|
protected |
ButtonConfig(int id)
Create a new config and associate it with the given widget.
|
|
ButtonConfig(WidgetId id)
Create a new config and associate it with the given widget.
|
Modifier and Type | Method and Description |
---|---|
void |
applyConfig(WidgetConfig config)
Set new values from the provided configuration instance.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
setDynamicFormat
getConfigManager, getDynamicColumnLabel, getDynamicFormat, getDynamicHelp, getDynamicLabel, getDynamicUntranslatedLabel, markFieldsDirty, setDynamicHeader, setDynamicHelp, setDynamicLabel, setDynamicLabels, setDynamicUntranslatedLabel, toString
public static final int IMAGE_IMG
public static final int IMAGE_UP
public static final int IMAGE_DOWN
public static final int IMAGE_DISABLED
public static final java.lang.String PREPACKAGED_INS_SUFFIX
public boolean autoEndKey
public boolean autoGo
public boolean isDefault
public ButtonImageDefinition imgUpDef
public ButtonImageDefinition imgDownDef
public ButtonImageDefinition imgDisabledDef
public boolean noFocus
public boolean flatButton
public boolean convert3D
public java.lang.String mousePointer
private static final int ATTR_MASK_AUTO_END_KEY
private static final int ATTR_MASK_AUTO_GO
private static final int ATTR_MASK_IS_DEFAULT
private static final int ATTR_MASK_NO_FOCUS
private static final int ATTR_MASK_FLAT_BUTTON
private static final int ATTR_MASK_CONVERT_3D
public ButtonConfig()
public ButtonConfig(WidgetId id)
id
- The ID of the widget to which this configuration belongs.protected ButtonConfig(int id)
id
- The ID of the widget to which this configuration belongs.public void applyConfig(WidgetConfig config)
applyConfig
in class ControlConfig
config
- The instance from which to take values.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class ControlConfig
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class ControlConfig
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.