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
,java.lang.Cloneable
- Direct Known Subclasses:
EditorVSRow
public class VSRow extends VSComponent
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_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
ERROR, INFORMATION, NONE, PN_IGNORE_UI_FOCUS, WARNING
Constructor Summary
Constructors Constructor Description VSRow()
Creates a VirtualSpace Row property with the specified name with a null value.VSRow(Atom propertyAtom)
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.VSRow(Atom propertyAtom, VSField[] fields)
Creates a VirtualSpace Row property with the specified name.VSRow(Atom propertyAtom, Value[] values)
Creates a VirtualSpace Row property with the specified name.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VSRow
clone()
Clones the VirtualSpace Row.VSField
createField()
Creates a new field with a unique name that then can be added to this row.VSField
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
getColumnCount()
Gets the column count.VSColumnHeader
getColumnHeader(int columnIndex)
Gets the headers columns for the header row.VSColumnHeader[]
getColumnHeaders()
Gets the headers columns for the header row.java.lang.String
getComponentIsDisabled()
Gets the focus message for "Component is disabled" but for the component in question.java.lang.String
getComponentIsHidden()
Gets the focus message for "Component is hidden" but for the component in question.VSField
getField(int columnIndex)
Gets the field at specified column index.int
getFieldCount()
Gets the count of fields in this row.VSField
getFieldOfColumn(java.lang.String columnName)
Gets the field of the specified column.VSField[]
getFields()
Gets the fields for the row.int
getInsertIndex(int columnIndex)
Gets the insert position for a FIELD OR COLUMN property.int
getRowIndex()
Gets the row index of this field in the table.VSTable
getTable()
Gets the table of the row.Value
getValue(int columnIndex)
Gets the value at specified column index.int
getValueCount()
Gets the count of values in this row.Value
getValueOfColumn(java.lang.String columnName)
Gets the value of specified column name.Value[]
getValues()
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
isColumnHeader()
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.boolean
usesPropIndex()
Use of index for the property container is enabled.Methods inherited from class com.iizix.prop.vs.VSComponent
addListener, areFree, areFree, canRequestFocus, couldRequestFocusIfVirtualized, forbiddenGetCustomDataMap, getClientSessionGyro, getComponentListeners, getDescription, getNonVirtualized, getVirtualSpace, initPropCnr, isFree, isFree, onEventSelf, onFocusGained, onFocusLost, onListenerChanged, onPrepare, onPropDispose, onRemoteEvent, onVirtualizationCompleted, onVirtualized, removeListener
Methods inherited from class com.iizix.prop.PropCnr
__transferChildProps, addPredefinedProps, 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, 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, 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, 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, virtualize
Methods inherited from class com.iizix.prop.GProp
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, 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, 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
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, 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, 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, verifyHasPropertyItem, warning, warning, warning
Methods inherited from interface com.iizix.gyro.IMessageBox
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, isSibling, 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 Detail
VSRow
public VSRow()
Creates a VirtualSpace Row property with the specified name with a null value.
VSRow
public VSRow(Atom propertyAtom)
Creates a VirtualSpace Row property with the specified name with a null value.- Parameters:
propertyAtom
- The property atom.
VSRow
public VSRow(Atom propertyAtom, VSField[] fields) throws PropException
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
public VSRow(Atom propertyAtom, Value[] values) throws PropException
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
public VSRow(Atom propertyAtom, VSColumnHeader[] columns) throws PropException
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 Detail
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
public VSField 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
public VSField createField(Value value)
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
public void ensureFieldCount(int columnIndex, IComplexOperation op)
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
public void insertField(VSField field, int columnIndex, IComplexOperation op)
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
public VSRow clone()
Clones the VirtualSpace Row.- Overrides:
clone
in classVSComponent
getComponentIsHidden
public java.lang.String getComponentIsHidden()
Gets the focus message for "Component is hidden" but for the component in question.- Specified by:
getComponentIsHidden
in classVSComponent
getComponentIsDisabled
public java.lang.String getComponentIsDisabled()
Gets the focus message for "Component is disabled" but for the component in question.- Specified by:
getComponentIsDisabled
in classVSComponent
onParentStateChanged
public void onParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on)
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
public VSTable 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
public VSColumnHeader[] 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
public VSColumnHeader getColumnHeader(int columnIndex)
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
public VSField[] 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
public VSField getField(int columnIndex)
Gets the field at specified column index.- Parameters:
columnIndex
- The column index.- Returns:
- The field found, or null for none.
getFieldOfColumn
public VSField getFieldOfColumn(java.lang.String columnName)
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
public Value[] 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
public Value getValue(int columnIndex)
Gets the value at specified column index.- Parameters:
columnIndex
- The column index.- Returns:
- The value found, or null for none.
getValueOfColumn
public Value getValueOfColumn(java.lang.String columnName)
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.