Package com.iizix.prop.vs
Class VSRow
java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizix.prop.vs.VSComponent
com.iizix.prop.vs.VSRow
- All Implemented Interfaces:
EventListener
,IFocusComp
,IMessageBox
,ICustomDataProvider
,IGProp<GProp<?>[]>
,IPropCnr
,IVSComponent
,IVSComponentListener
,IVSComponentState
,Cloneable
- Direct Known Subclasses:
EditorVSRow
The VirtualSpace Row property class holds the property name, value and optionally has a parent and/or property listener(s).
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.gyro.IMessageBox
IMessageBox.Icon
Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState
IVSComponentState.State
Field Summary
Fields inherited from class com.iizix.prop.vs.VSComponent
EMPTY_LISTENERS, statesMap
Fields inherited from class com.iizix.prop.PropCnr
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
Fields inherited from class com.iizix.prop.GProp
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
Fields inherited from interface com.iizix.prop.IGProp
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_INCLUDE_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
Fields inherited from interface com.iizix.gyro.IMessageBox
ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNING
Fields inherited from interface com.iizix.prop.vs.IVSComponent
ATOM_IGNORE_UI_FOCUS, ERROR, INFORMATION, NONE, WARNING
Constructor Summary
ConstructorDescriptionVSRow()
Creates a VirtualSpace Row property with the specified name with a null value.Creates a VirtualSpace Row property with the specified name with a null value.VSRow
(Atom propertyAtom, VSColumnHeader[] columns) Creates a VirtualSpace Row property with the specified name.Creates a VirtualSpace Row property with the specified name.Creates a VirtualSpace Row property with the specified name.Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the VirtualSpace Row.Creates a new field with a unique name that then can be added to this row.createField
(Value value) Creates a new field with a unique name that then can be added to this row.void
ensureFieldCount
(int columnIndex, IComplexOperation op) Ensures that the row contains fields up to the specified field.int
Gets the column count.getColumnHeader
(int columnIndex) Gets the headers columns for the header row.Gets the headers columns for the header row.Gets the focus message for "Component is disabled" but for the component in question.Gets the focus message for "Component is hidden" but for the component in question.getField
(int columnIndex) Gets the field at specified column index.int
Gets the count of fields in this row.getFieldOfColumn
(String columnName) Gets the field of the specified column.VSField[]
Gets the fields for the row.int
getInsertIndex
(int columnIndex) Gets the insert position for a FIELD OR COLUMN property.int
Gets the row index of this field in the table.getTable()
Gets the table of the row.getValue
(int columnIndex) Gets the value at specified column index.int
Gets the count of values in this row.getValueOfColumn
(String columnName) Gets the value of specified column name.Value[]
Gets the values of for the row.void
insertField
(VSField field, int columnIndex, IComplexOperation op) Inserts a field to a row that may not have the fields before defined.boolean
Checks if this is the column header row and not a row in the table.void
onParentStateChanged
(IVSComponent parent, IVSComponentState.State state, boolean on) Called when the column changes state.final boolean
Use of index for the property container is enabled.Methods inherited from class com.iizix.prop.vs.VSComponent
addListener, areFree, areFree, canRequestFocus, convertLoadedProp, couldRequestFocusIfVirtualized, forbiddenGetCustomDataMap, getClientSessionGyro, getComponentListeners, getDescription, getNonVirtualized, getVirtualSpace, initPropCnr, invokeOnVSCreateTree, isFree, isFree, onEventSelf, onFocusGained, onFocusLost, onListenerChanged, onPrepare, onPropDispose, onRemoteEvent, onVirtualContainerCreated, paramString, removeListener, virtualize
Methods inherited from class com.iizix.prop.PropCnr
__transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, 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, getPredefinedProps, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropRemoved, onPropTreeInitialized, onReferenceEvent, onVirtualizationCompleted, prepare, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, 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, shouldSerializeToXML, toElementString, toNativeValue0, usePropHashMap, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree
Methods inherited from class com.iizix.prop.GProp
addPropError, addPropListener, appendProp, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, 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, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getReferencePropNameNoAssert, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParentNoAssert, getTreeLock, hasChanged, hasCircularReferencesError, 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, isPropRootLoading, isPropRootTreeModificationsAllowed, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, isSibling, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onPropInvalidateCache, onPropParentChanged, onPropValueSet, paramString, 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, warning, warning, warning
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.iizix.prop.ICustomDataProvider
getCustomData, putCustomData, putCustomDataIfAbsent
Methods inherited from interface com.iizix.gyro.IFocusComp
requestFocus, requestFocus, requestFocusEx, requestFocusEx
Methods inherited from interface com.iizix.prop.IGProp
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasCircularReferencesError, 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, isSibling, list, list, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onPropTreeInitialized, 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, warning, warning, warning
Methods inherited from interface com.iizix.gyro.IMessageBox
messageBox, messageBox, messageBox
Methods inherited from interface com.iizix.prop.IPropCnr
addProp, addProp, addProp2, addProp2, canRequestFocus, canRequestFocus, containsProp, containsProp, 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, 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, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, 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, validateClassInstances
Methods inherited from interface com.iizix.prop.vs.IVSComponent
getAction, getAction2, getActionNull, getActionNull2, getField, getField2, getFieldNull, getFieldNull2, getGroup, getGroup2, getGroupNull, getGroupNull2, getTable, getTable2, getTableNull, getTableNull2, getVirtualizedVirtualSpace, getVSComponent, getVSComponent2, getVSComponentNull, getVSComponentNull2, getVSRef, isEnabled, isEnabledInParent, isReadOnly, isReadOnlyInParent, isSelected, isVisible, isVisibleInParent, messageBox, setEnabled, setEnabled, setIgnoreFocusFromUI, setReadOnly, setReadOnly, setSelected, setSelected, setVirtualizeSupportFocus, setVirtualizeSupportFocus, setVisible, setVisible, shouldIgnoreFocusFromUI
Constructor Details
VSRow
public VSRow()Creates a VirtualSpace Row property with the specified name with a null value.VSRow
Creates a VirtualSpace Row property with the specified name with a null value.- Parameters:
propertyAtom
- The property atom.
VSRow
Creates a VirtualSpace Row property with the specified name.- Parameters:
propertyAtom
- The property atom.fields
- The fields of the row.- Throws:
PropException
- as structural changes in containers on client is prohibited.
VSRow
Creates a VirtualSpace Row property with the specified name.- Parameters:
propertyAtom
- The property atom.values
- The values of the row.- Throws:
PropException
- as structural changes in containers on client is prohibited.
VSRow
Creates a VirtualSpace Row property with the specified name.- Parameters:
propertyAtom
- The property atom.columns
- The columns of the table.- Throws:
PropException
- as structural changes in containers on client is prohibited.
Method Details
usesPropIndex
public final boolean usesPropIndex()Use of index for the property container is enabled.- Specified by:
usesPropIndex
in interfaceIPropCnr
- Overrides:
usesPropIndex
in classPropCnr
- Returns:
- true for this container.
createField
Creates a new field with a unique name that then can be added to this row.- Returns:
- A new field, initialized with a value or not depending on if the value is null.
createField
Creates a new field with a unique name that then can be added to this row.- Parameters:
value
- A value to initialize the field with, null for uninitialized field.- Returns:
- A new field, initialized with a value or not depending on if the value is null.
ensureFieldCount
Ensures that the row contains fields up to the specified field.- Parameters:
columnIndex
- The column index.op
- The complex operation, null for no complex-operation-support.
insertField
Inserts a field to a row that may not have the fields before defined.- Parameters:
field
- The field to insert.columnIndex
- The column index.op
- The complex operation, null for no complex-operation-support.
getInsertIndex
public int getInsertIndex(int columnIndex) Gets the insert position for a FIELD OR COLUMN property.- Parameters:
columnIndex
- The column index.- Returns:
- The insert index, or -1 for failure.
clone
Clones the VirtualSpace Row.- Overrides:
clone
in classVSComponent
getComponentIsHidden
Gets the focus message for "Component is hidden" but for the component in question.- Specified by:
getComponentIsHidden
in classVSComponent
getComponentIsDisabled
Gets the focus message for "Component is disabled" but for the component in question.- Specified by:
getComponentIsDisabled
in classVSComponent
onParentStateChanged
Called when the column changes state.- Parameters:
parent
- The parent who's state was changed.state
- The state change, possible values PARENT_ENABLED, PARENT_READONLY, PARENT_VISIBLE.on
- New state.
getTable
Gets the table of the row.- Returns:
- The VirtualSpace Table instance, or null if row is not added to a table.
isColumnHeader
public boolean isColumnHeader()Checks if this is the column header row and not a row in the table.getRowIndex
public int getRowIndex()Gets the row index of this field in the table.- Returns:
- The row index, or
-1
if the field is not inside a table, or-2
if this field in a header field.
getColumnCount
public int getColumnCount()Gets the column count.- Returns:
- The count of columns, i.e. the count of children (the fields or column headers).
getColumnHeaders
Gets the headers columns for the header row.- Returns:
- The array of VSColumnHeader, empty array if it's not a header row (i.e.
isColumnHeader()
returnsfalse
).
getColumnHeader
Gets the headers columns for the header row.- Parameters:
columnIndex
- The index of the column.- Returns:
- The column of requested index, null if it's not a header row (i.e.
isColumnHeader()
returnsfalse
), or the column index is out of range.
getFields
Gets the fields for the row.- Returns:
- The array of VSFields, empty array if it's a header row (
isColumnHeader()
returnstrue
).
getFieldCount
public int getFieldCount()Gets the count of fields in this row.- Returns:
- The number of fields properties found. This value is sometimes not the same as the column width of the table, typically when editing a table in the Designer.
getField
Gets the field at specified column index.- Parameters:
columnIndex
- The column index.- Returns:
- The field found, or null for none.
getFieldOfColumn
Gets the field of the specified column.Note: the method
getField(int)
is faster if you know the column index.- Parameters:
columnName
- The column name.- Returns:
- The field, or null if the column or field is not found, or if called on the column header row instance.
getValues
Gets the values of for the row.- Returns:
- An array of Value's. If null Value's are encountered (i.e. the row is not initialized properly), the String Value null is used.
getValueCount
public int getValueCount()Gets the count of values in this row.- Returns:
- The number of row values found. This value is sometimes not the same as the column width of the table, typically when editing a table in the Designer.
getValue
Gets the value at specified column index.- Parameters:
columnIndex
- The column index.- Returns:
- The value found, or null for none.
getValueOfColumn
Gets the value of specified column name.Note: the method
getValue(int)
is faster if you know the column index.- Parameters:
columnName
- The column name.- Returns:
- The value found, or null for none.