Package com.adobe.xfa.data
Class DataWindow
java.lang.Object
com.adobe.xfa.Obj
com.adobe.xfa.data.DataWindow
- All Implemented Interfaces:
Peer
-
Field Summary
Fields inherited from interface com.adobe.xfa.ut.Peer
ATTR_CHANGED, CHILD_ADDED, CHILD_REMOVED, DESCENDENT_ADDED, DESCENDENT_ATTR_CHANGED, DESCENDENT_REMOVED, DESCENDENT_VALUE_CHANGED, PARENT_CHANGED, PERMS_LOCK_CLEARED, PERMS_LOCK_SET, PROTO_ATTR_CHANGED, PROTO_CHILD_ADDED, PROTO_CHILD_REMOVED, PROTO_DESCENDENT_ADDED, PROTO_DESCENDENT_ATTR_CHANGED, PROTO_DESCENDENT_REMOVED, PROTO_DESCENDENT_VALUE_CHANGED, PROTO_VALUE_CHANGED, UPDATED, VALUE_CHANGED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecordGroup(DataNode dataGroup) intReturn the current record number.Returns the atomic name of this element's class.Gets the name of this object's class.getScriptProperty(String sPropertyName) voidgotoRecord(int newRecord) Move the current record to a specific record.booleanDetermine if the data window is currently in a defined (valid) state.booleanisRecordGroup(DataNode dataGroup) Determine if a data group is a record.booleanvoidmoveCurrentRecord(int recordOffset) Move the current record by an amount relative to the current record.record(int recordOffset) Return a record relative to the current record.intrecordAbsIndex(int recordOffset) intDetermine the number of records after the current record in this window.intDetermine the number of records before the current record in this window.booleanremoveRecordGroup(DataNode dataGroup) voidvoidsetScriptProperty(String sPropertyName, Arg propertyValue) voidMethods inherited from class com.adobe.xfa.Obj
addPeer, addPeeredNode, clearPeers, deafen, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, notifyPeers, peerRemoved, removePeer, removePeeredNode, sendMessenge, setClass, setClassTag, setScriptProperty, unDeafen, unMute, updateFromPeer, validateUsage, validateUsageFailedIsFatal
-
Constructor Details
-
DataWindow
public DataWindow()
-
-
Method Details
-
addRecordGroup
-
currentRecordNumber
public int currentRecordNumber()Return the current record number.- Returns:
- the current record number.
-
getClassAtom
Description copied from class:ObjReturns the atomic name of this element's class.- Overrides:
getClassAtomin classObj- Returns:
- the class name as an interned string.
-
getClassName
Description copied from class:ObjGets the name of this object's class. Overriden by derived classes such as Element that have a local name that may be returned instead.- Overrides:
getClassNamein classObj- Returns:
- the class name.
-
getScriptProperty
-
getScriptTable
- Overrides:
getScriptTablein classObj
-
gotoRecord
public void gotoRecord(int newRecord) Move the current record to a specific record.- Parameters:
newRecord- the absolute record number.
-
isDefined
public boolean isDefined()Determine if the data window is currently in a defined (valid) state. A data window is in this state if the current record index indicates a valid record. A data window is not defined if there are no records, or if the current record index has been positioned beyond the end of the records.- Returns:
- true if dataWindow is defined, false otherwise.
-
isRecordGroup
Determine if a data group is a record.- Parameters:
dataGroup- the data group in question.- Returns:
- true if dataGroup is a data group, false otherwise.
-
isUpToDate
public boolean isUpToDate() -
moveCurrentRecord
public void moveCurrentRecord(int recordOffset) Move the current record by an amount relative to the current record.- Parameters:
recordOffset- the number of records from the current record, positive or negative, by which the current record should move.
-
record
Return a record relative to the current record.- Parameters:
recordOffset- the number of records from the current record, positive or negative (0 returns current record).- Returns:
- the requested record.
-
recordAbsIndex
public int recordAbsIndex(int recordOffset) -
recordsAfter
public int recordsAfter()Determine the number of records after the current record in this window.- Returns:
- the number of records after the current record.
-
recordsBefore
public int recordsBefore()Determine the number of records before the current record in this window.- Returns:
- the number of records before the current record.
-
removeRecordGroup
-
resetRecordDepth
public void resetRecordDepth() -
setScriptProperty
-
updateAfterLoad
public void updateAfterLoad()
-