public class HandleFieldRef extends handle
All writing is done to both the DMO and the local handle
's private value
.
On instantiation, the current field value is saved in the handle
's private
value
, and this instance will be used for reading until set(com.goldencode.p2j.util.WrappedResource)
or
setUnknown()
is called again.
This usage is OK
Modifier and Type | Field and Description |
---|---|
private FieldReference |
fieldRef
The field referenced by this instance.
|
Constructor and Description |
---|
HandleFieldRef(DataModelObject dmo,
java.lang.String property)
Constructor.
|
HandleFieldRef(DataModelObject dmo,
java.lang.String property,
int index)
Constructor.
|
HandleFieldRef(DataModelObject dmo,
java.lang.String property,
int64 index)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
init(DataModelObject dmo)
Initialize this instance.
|
void |
set(WrappedResource value)
Set the value of this instance as a
WrappedResource . |
void |
setUnknown()
Sets the state of this instance's
unknown value flag or state to true . |
_isValid, _isValidEvent, _isValidEvent, assign, assign, assign, assign, assign, buildExternalResource, compareTo, defaultFormatString, duplicate, fromResourceId, fromString, fromString, get, getResource, getResourceId, hashCode, instantiateUnknown, invalidAttribute, isExternalResource, isHandleTypeOf, isUnknown, isValid, isValidEvent, isValidEvent, readExternal, readOnlyError, removeResource, resourceId, toString, toString, toStringExport, toStringMessage, unwrap, unwrapADMData, unwrapAsync, unwrapAsyncRequestCount, unwrapAutoReturnElement, unwrapAutoZapElement, unwrapBlank, unwrapBox, unwrapBrowse, unwrapBrowseColumn, unwrapBrowseElement, unwrapBuffer, unwrapBufferField, unwrapButton, unwrapClipboard, unwrapColorTable, unwrapCommonField, unwrapCommonListWidget, unwrapCommonProcedure, unwrapConnectable, unwrapConnectableServer, unwrapControlFrame, unwrapDatabaseInfo, unwrapDeblank, unwrapDereferenceable, unwrapDirectManipulation, unwrapDisableRedraw, unwrapDown, unwrapDroppable, unwrapDynamicResource, unwrapEditor, unwrapEmailSender, unwrapEnabled, unwrapEncoding, unwrapError, unwrapErrorStatus, unwrapFieldGroup, unwrapFile, unwrapFileInfo, unwrapFirstLastProcedure, unwrapFontTable, unwrapFrame, unwrapFwdReport, unwrapFWDTimer, unwrapImageSupport, unwrapImageWidgetSupport, unwrapIndexed, unwrapIndexInformation, unwrapInnerLines, unwrapInstantiatingProcedure, unwrapIterableResource, unwrapLabels, unwrapLastEvent, unwrapLocalName, unwrapLogManager, unwrapMaxCharsElement, unwrapMenu, unwrapMenuItem, unwrapMnemonic, unwrapMultiple, unwrapNamespaceURI, unwrapNumEntries, unwrapNumItems, unwrapOrientation, unwrapPasswordField, unwrapProcedure, unwrapProfiler, unwrapQuery, unwrapQueryAssociable, unwrapRadioSet, unwrapRcodeInfo, unwrapRectangle, unwrapRemotable, unwrapReplace, unwrapResultListHandler, unwrapSaxAttributes, unwrapSaxEntity, unwrapSaxReader, unwrapSaxWriter, unwrapScrollbarHorizontalElement, unwrapScrollbarVerticalElement, unwrapSelectableText, unwrapSelectionList, unwrapSensitive, unwrapServer, unwrapSession, unwrapSizeable, unwrapSlider, unwrapSOAPEntity, unwrapSOAPFault, unwrapSOAPHeader, unwrapSOAPHeaderEntry, unwrapSocket, unwrapSocketListener, unwrapSortedElement, unwrapSslServerAttribute, unwrapSubType, unwrapTempTable, unwrapTopOnly, unwrapTree, unwrapType, unwrapUniqueID, unwrapWidget, unwrapWindow, unwrapWriteProtectable, unwrapXCommon, unwrapXDocument, unwrapXEntity, unwrapXmlData, unwrapXmlSchema, unwrapXNodeRef, unwrapXY, writeExternal
calcFormatLength, deepCopy, elementsOfType, equals, formatLength, generateDefault, generateUnknown, getTypeName, incompatibleTypesOnConversion, initializeDefaultExtent, instantiateDefault, instantiateDefaultExtent, isUnknownValue, maximum, minimum, notUnknownValue, sameType
changed, checkUndoable, checkUndoable, checkUndoable, isGlobal, isUndoable, markUndoable, popBlock, rollback, setGlobal
private final FieldReference fieldRef
public HandleFieldRef(DataModelObject dmo, java.lang.String property)
dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.public HandleFieldRef(DataModelObject dmo, java.lang.String property, int64 index)
dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.index
- Index to pass to property's getter method at resolve time.public HandleFieldRef(DataModelObject dmo, java.lang.String property, int index)
dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.index
- Index to pass to property's getter method at resolve time.public void set(WrappedResource value)
WrappedResource
.
Also updates the fieldRef
with the new state of this handle instance.
public void setUnknown()
unknown value
flag or state to true
.
Warning: the data stored in this instance may be invalid after calling this method.
Also updates the fieldRef
with the new state of this handle instance.
setUnknown
in class handle
private void init(DataModelObject dmo)
dmo
- Proxy for record whose field is being accessed.