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, nameTable- 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- ATOM_IGNORE_UI_FOCUS, ERROR, INFORMATION, NONE, WARNING
- Constructor SummaryConstructorsConstructorDescription- VSRow()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 SummaryModifier and TypeMethodDescription- clone()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.- intGets 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.- intGets 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.- intGets 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.- intGets 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.- booleanChecks 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 booleanUse 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, isSibling, 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, 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, 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, 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, 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- 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 Details- VSRowpublic VSRow()Creates a VirtualSpace Row property with the specified name with a null value.
- VSRowCreates a VirtualSpace Row property with the specified name with a null value.- Parameters:
- propertyAtom- The property atom.
 
- VSRowCreates 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.
 
- VSRowCreates 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.
 
- VSRowCreates 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- usesPropIndexpublic final boolean usesPropIndex()Use of index for the property container is enabled.- Specified by:
- usesPropIndexin interface- IPropCnr
- Overrides:
- usesPropIndexin class- PropCnr
- Returns:
- true for this container.
 
- createFieldCreates 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.
 
- createFieldCreates 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.
 
- ensureFieldCountEnsures 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.
 
- insertFieldInserts 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.
 
- getInsertIndexpublic 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.
 
- cloneClones the VirtualSpace Row.- Overrides:
- clonein class- VSComponent
 
- getComponentIsHiddenGets the focus message for "Component is hidden" but for the component in question.- Specified by:
- getComponentIsHiddenin class- VSComponent
 
- getComponentIsDisabledGets the focus message for "Component is disabled" but for the component in question.- Specified by:
- getComponentIsDisabledin class- VSComponent
 
- onParentStateChangedCalled 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.
 
- getTableGets the table of the row.- Returns:
- The VirtualSpace Table instance, or null if row is not added to a table.
 
- isColumnHeaderpublic boolean isColumnHeader()Checks if this is the column header row and not a row in the table.
- getRowIndexpublic int getRowIndex()Gets the row index of this field in the table.- Returns:
- The row index, or -1if the field is not inside a table, or-2if this field in a header field.
 
- getColumnCountpublic int getColumnCount()Gets the column count.- Returns:
- The count of columns, i.e. the count of children (the fields or column headers).
 
- getColumnHeadersGets 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).
 
- getColumnHeaderGets 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.
 
- getFieldsGets the fields for the row.- Returns:
- The array of VSFields, empty array if it's a header row (isColumnHeader()returnstrue).
 
- getFieldCountpublic 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.
 
- getFieldGets the field at specified column index.- Parameters:
- columnIndex- The column index.
- Returns:
- The field found, or null for none.
 
- getFieldOfColumnGets 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.
 
- getValuesGets 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.
 
- getValueCountpublic 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.
 
- getValueGets the value at specified column index.- Parameters:
- columnIndex- The column index.
- Returns:
- The value found, or null for none.
 
- getValueOfColumnGets 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.