public class ControlConfig extends BaseConfig
Modifier and Type | Field and Description |
---|---|
private static int |
ATTR_MASK_ATTR_SPACE
Bitwise mask to mark ATTR SPACE atribute usage.
|
private static int |
ATTR_MASK_AUTO_RESIZE
Bitwise mask to mark AUTO RESIZE atribute usage.
|
private static int |
ATTR_MASK_DROP_TARGET
Bitwise mask to mark DROP TARGET atribute usage.
|
private static int |
ATTR_MASK_FORCE_LABEL
Bitwise mask to mark FORCE LABEL atribute usage.
|
private static int |
ATTR_MASK_LABELS
Bitwise mask to mark LABELS atribute usage.
|
private static int |
ATTR_MASK_POSSIBLE_SIDE_LABEL
Bitwise mask to mark POSSIBLE SIDE LABEL atribute usage.
|
private static int |
ATTR_MASK_SELECTION_ACTIVE
Bitwise mask to mark SELECTION ACTIVE atribute usage.
|
boolean |
attrSpace
The ATTR-SPACE flag.
|
boolean |
autoResize
The Progress AUTO-RESIZE attribute.
|
java.lang.String |
clabel
The COLUMN-LABEL attribute.
|
java.lang.String |
dataType
The Progress DATA-TYPE attribute.
|
boolean |
dropTarget
DROP-TARGET attribute.
|
boolean |
forceLabel
Force setting of the label.
|
java.lang.String |
help
Help string used when widget becomes focused.
|
int |
index
Value of the INDEX attribute.
|
static int |
INVALID_SELECTION
Constant identifying the selection start or end was not set.
|
java.lang.String |
label
The LABEL attribute.
|
boolean |
labels
The NO-LABELS flag.
|
boolean |
possibleSideLabel
Flag indicating that this widget can accept a side-label.
|
boolean |
selectionActive
selection is active flag
|
int |
selectionEnd
SELECTION-END Attribute
|
int |
selectionStart
SELECTION-START Attribute
|
int |
sideLabelId
When set to a positive value, it represents the ID of the side-label widget.
|
java.lang.String |
untranslatedLabel
The untranslated LABEL value.
|
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 |
---|---|
|
ControlConfig()
Default constructor (only used in de-serialization).
|
protected |
ControlConfig(int id)
Create a new config and associate it with the given widget.
|
protected |
ControlConfig(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 |
setDynamicFormat(java.lang.String format)
Check the format string passed as an argument parsing it into
the default format for current
dataType ,
then call super implementation. |
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
getConfigManager, getDynamicColumnLabel, getDynamicFormat, getDynamicHelp, getDynamicLabel, getDynamicUntranslatedLabel, markFieldsDirty, setDynamicHeader, setDynamicHelp, setDynamicLabel, setDynamicLabels, setDynamicUntranslatedLabel, toString
public static final int INVALID_SELECTION
public boolean autoResize
public boolean labels
public boolean attrSpace
public java.lang.String dataType
public boolean forceLabel
public java.lang.String help
public java.lang.String label
public java.lang.String untranslatedLabel
public java.lang.String clabel
public int index
public boolean possibleSideLabel
public int sideLabelId
public boolean selectionActive
public int selectionEnd
public int selectionStart
public boolean dropTarget
private static final int ATTR_MASK_AUTO_RESIZE
private static final int ATTR_MASK_LABELS
private static final int ATTR_MASK_ATTR_SPACE
private static final int ATTR_MASK_FORCE_LABEL
private static final int ATTR_MASK_POSSIBLE_SIDE_LABEL
private static final int ATTR_MASK_SELECTION_ACTIVE
private static final int ATTR_MASK_DROP_TARGET
public ControlConfig()
protected ControlConfig(int id)
id
- The ID of the widget to which this configuration belongs.protected ControlConfig(WidgetId id)
id
- The ID of the widget to which this configuration belongs.public void applyConfig(WidgetConfig config)
applyConfig
in class BaseConfig
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 BaseConfig
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 BaseConfig
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.public void setDynamicFormat(java.lang.String format) throws ErrorConditionException
dataType
,
then call super implementation.setDynamicFormat
in class WidgetConfig
format
- The new value for the FORMAT attribute.ErrorConditionException