public class ControlSetConfig extends ControlConfig
Modifier and Type | Field and Description |
---|---|
private static int |
ATTR_MASK_HONOR_FORMAT
Bitwise mask to mark HONOR FORMAT atribute usage.
|
private static int |
ATTR_MASK_ITEMS_SET_WHEN_REALIZED
Bitwise mask to mark ITEMS SET WHEN REALIZED atribute usage.
|
private static int |
ATTR_MASK_SORT
Bitwise mask to mark SORT atribute usage.
|
char |
delimiter
The character value to separate the items inside the item string.
|
java.lang.String |
format
The string representing the inner data format for the items.
|
boolean |
honorFormat
Tell widget that format should be honored.
|
int |
itemId
item id generator
|
ControlSetItem[] |
items
Array of items
|
boolean |
itemsSetWhenRealized
Value of the "realized' flag when items' type (pairs/labels) was set
|
double |
listHeightChars
The height of the list widget.
|
double |
listWidthChars
The width of the list widget.
|
java.lang.String |
mousePointer
MOUSE-POINTER attribute
|
ControlSetItem[] |
newAddedItems
Array of new added items
|
int |
numItems
number of items, -1 mean uninitialized
|
java.lang.Boolean |
pairs
Set to true if items defined as pairs, default value must be null to denote the pairs is undecided
|
private static long |
serialVersionUID |
boolean |
sort
true to force items to be sorted. |
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 |
---|---|
|
ControlSetConfig()
Default constructor (only used in de-serialization).
|
protected |
ControlSetConfig(int id)
Create a new config and associate it with the given widget.
|
protected |
ControlSetConfig(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.
|
private void |
init()
Initialize this config.
|
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
private static final long serialVersionUID
public char delimiter
public boolean sort
true
to force items to be sorted.public java.lang.String format
public ControlSetItem[] items
public ControlSetItem[] newAddedItems
public boolean honorFormat
public boolean itemsSetWhenRealized
public java.lang.Boolean pairs
public int itemId
public double listHeightChars
public double listWidthChars
public java.lang.String mousePointer
public int numItems
private static final int ATTR_MASK_SORT
private static final int ATTR_MASK_HONOR_FORMAT
private static final int ATTR_MASK_ITEMS_SET_WHEN_REALIZED
public ControlSetConfig()
protected ControlSetConfig(int id)
id
- The ID of the widget to which this configuration belongs.protected ControlSetConfig(WidgetId 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.private void init()