public class VSColumnHeader extends VSComponent implements IVSMessageComponent, IPatternOwner
IVSComponentState.State
IMessageBox.Icon
Modifier and Type | Field and Description |
---|---|
static VSField[] |
EMPTY_CELLS
Empty cells.
|
static IVSColumnListener[] |
EMPTY_LISTENERS
Empty list of listeners.
|
statesMap
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2
ERROR, INFORMATION, NONE, PN_IGNORE_UI_FOCUS, WARNING
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNING
Constructor and Description |
---|
VSColumnHeader()
Creates a VirtualSpace Column Header property with the specified name with a null value.
|
VSColumnHeader(Atom propertyAtom)
Creates a VirtualSpace Column Header property with the specified name with a null value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(IVSColumnListener listener)
Adds a new listener to the VS table column.
|
protected void |
addPredefinedProps()
Adds the predefined properties for this container.
|
VSColumnHeader |
clone()
Clones the VirtualSpace Column Header.
|
VSField |
createEmptyField()
Creates an empty field for this column, depending on defined types, null attributes, etc.
|
VSField |
createEmptyField(Atom fieldName)
Creates an empty field for this column, depending on defined types, null attributes, etc.
|
Value |
createEmptyValue()
Creates an empty Value for the column type.
|
protected FieldActors |
createFieldActors()
Creates a new instance of the field actors, overridden for the Editor.
|
VSField |
createUninitializedField()
Creates a new UNNAMED uninitialized field.
|
VSField |
createUninitializedField(Atom fieldName)
Creates a new uninitialized field.
|
FieldActors |
getActors()
Gets the field actors container.
|
VSField[] |
getCells()
Gets the cells of the column in the table.
|
int |
getColumnIndex()
Gets the column index of this column header in the table.
|
IVSColumnListener[] |
getColumnListeners()
Gets the listeners of the VS table column events.
|
String |
getComponentIsDisabled()
Gets the focus message for "Component is hidden" but for the component in question.
|
String |
getComponentIsHidden()
Gets the focus message for "Component is hidden" but for the component in question.
|
String |
getPattern()
Gets the pattern used by the value formatter.
|
PlainKString |
getPatternPlainKString()
Gets the pattern used by the value formatter.
|
PatternProp |
getPatternProp()
Gets the pattern property.
|
protected void |
getPredefinedProps()
Gets potential references to predefined properties for this container.
|
VSTable |
getTable()
Gets the table of the header.
|
Value.Type |
getValueType()
Gets the value type of the column.
|
String |
getValueTypeString()
Gets the value type string of the column.
|
boolean |
isNullAllowed()
Checks if the column is nullable.
|
boolean |
isValueTypeValid()
Verifies if the value type is defined and valid.
|
protected void |
onListenerChanged(IVSColumnListener listener)
Called when a listener is added or removed.
|
void |
onParentStateChanged(IVSComponent parent,
IVSComponentState.State state,
boolean stateValue)
Invokes the parent state notification function for the component.
|
boolean |
removeListener(IVSColumnListener listener)
Removes a listener from the VS table column.
|
int |
setCells(VSCellData[] cells)
Sets an entire column of cells at once.
|
boolean |
setNullAllowed(boolean isNullable)
Sets the column nullable flag.
|
boolean |
shouldIgnoreFocusFromUI()
Checks if this component should ignore focus requests from the UI.
|
addListener, areFree, areFree, canRequestFocus, couldRequestFocusIfVirtualized, forbiddenGetCustomDataMap, getClientSessionGyro, getComponentListeners, getDescription, getNonVirtualized, getVirtualSpace, initPropCnr, isFree, isFree, onEventSelf, onFocusGained, onFocusLost, onListenerChanged, onPrepare, onPropDispose, onRemoteEvent, onVirtualizationCompleted, onVirtualized, removeListener
__transferChildProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, doVirtualizePropCnr, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getReferences, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isSibling, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropRemoved, onPropTreeInitialized, onReferenceEvent, paramString, prepare, removeAllProps, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocus, requestFocusEx, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree, virtualize
addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, extendsClone, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onPropInvalidateCache, onPropParentChanged, onPropValueSet, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
getClass, hashCode, notify, notifyAll, wait, wait, wait
clearMessage, getMessage, getMessageCategory, getMessageString, isValid, setErrorMessage, setMessage, setMessage
getAction, getAction2, getActionNull, getActionNull2, getDescription, getField, getField2, getFieldNull, getFieldNull2, getGroup, getGroup2, getGroupNull, getGroupNull2, getNonVirtualized, getTable, getTable2, getTableNull, getTableNull2, getVirtualizedVirtualSpace, getVirtualSpace, getVSComponent, getVSComponent2, getVSComponentNull, getVSComponentNull2, getVSRef, isEnabled, isEnabledInParent, isReadOnly, isReadOnlyInParent, isSelected, isVisible, isVisibleInParent, messageBox, setEnabled, setEnabled, setIgnoreFocusFromUI, setReadOnly, setReadOnly, setSelected, setSelected, setVirtualizeSupportFocus, setVirtualizeSupportFocus, setVisible, setVisible
onFocusGained, onFocusLost, requestFocus, requestFocus, requestFocusEx, requestFocusEx
addProp, addProp, addProp2, addProp2, canRequestFocus, canRequestFocus, canRequestFocus, containsProp, containsProp, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, enablePropCommunication, enablePropHashMap, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsError, getExtendsName, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getString, getString, getString, getString, hasFocus, initializeExtendsFramework, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsRoot, isPropAddRemoveAllowed, isPropExtended, isSibling, removeAllProps, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, requestFocus, requestFocusEx, setBool, setBool, setBool, setBool, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, usePropHashMap, usesPropIndex, validateClassInstances
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getParent, getParent, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getReferences, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, list, list, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPropTreeInitialized, onRemoteEvent, removePropError, removePropListener, renameProp, resolveRuntimeReferences, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toElementString, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, validatePropType, validatePropValue, verify, verifyHasPropertyItem, warning, warning, warning
forbiddenGetCustomDataMap, getCustomData, putCustomData, putCustomDataIfAbsent
messageBox, messageBox
public static final IVSColumnListener[] EMPTY_LISTENERS
public static final VSField[] EMPTY_CELLS
public VSColumnHeader()
public VSColumnHeader(Atom propertyAtom)
propertyAtom
- the property atom.public VSColumnHeader clone()
clone
in class VSComponent
public String getComponentIsHidden()
getComponentIsHidden
in class VSComponent
public String getComponentIsDisabled()
getComponentIsDisabled
in class VSComponent
public boolean shouldIgnoreFocusFromUI()
shouldIgnoreFocusFromUI
in interface IVSComponent
public FieldActors getActors()
protected FieldActors createFieldActors()
protected void addPredefinedProps() throws PropException
The method should add properties to create or get reference to using the maybeAddProp
method. When the PropCnr instance is cloned, the method getPredefinedProps()
is called in order for the subclass to be able to retrieve the new instances to these
properties, if stored in instance variables.
addPredefinedProps
in class PropCnr
PropException
- for property exceptions.protected void getPredefinedProps()
The method should get reference to using the getProp(...)
methods.
This allows the subclass to be able to retrieve the new instances to the properties created
during addPredefinedProps()
if stored in instance variables.
getPredefinedProps
in class PropCnr
public void onParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean stateValue)
onParentStateChanged
in interface IVSComponentListener
parent
- The parent who's state was changed.state
- The state that changed.stateValue
- The new state value.public boolean addListener(IVSColumnListener listener)
listener
- The listener for VS table column events.public boolean removeListener(IVSColumnListener listener)
listener
- The existing listener for VS table column events.protected void onListenerChanged(IVSColumnListener listener)
public IVSColumnListener[] getColumnListeners()
public Value createEmptyValue()
public VSField createUninitializedField()
public VSField createUninitializedField(Atom fieldName)
fieldName
- The field name.public VSField createEmptyField()
public VSField createEmptyField(Atom fieldName)
fieldName
- The field name.public int getColumnIndex()
-1
if the column header is not inside a table.public String getValueTypeString()
Enum.name()
, or "<undefined>" if not defined.public Value.Type getValueType()
getValueType
in interface IPatternOwner
Value
.T_* values, or -1 if not defined.public boolean isValueTypeValid()
public boolean setNullAllowed(boolean isNullable)
isNullable
- The nullable flag.public boolean isNullAllowed()
public PatternProp getPatternProp()
getPatternProp
in interface IPatternOwner
public String getPattern()
PlainKString
contains tags.public PlainKString getPatternPlainKString()
public VSTable getTable()
public int setCells(VSCellData[] cells)
Failure will occur if the column value type is not defined.
cells
- The cells to set.public VSField[] getCells()
If empty cells (i.e. null or not present) are encountered in the column, an empty cells is created without atom name (atom name is null).
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.