Package systextil.nxj
Interface ContainerData
- All Superinterfaces:
FieldData
- All Known Subinterfaces:
FormData
Expõe para as classes controller as operações disponíveis em um container
(data view) do NXJ.
Essa interface é implementada pela classe forms.systextil.ControleJavaDataView no NXJ,
e, teoricamente, uma classe java que implemente essa interface é capaz de controlar qualquer DataView
no NXJ.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether ADD operations are allowed in this data view.voidaddAllowed(boolean allowed)Set whether ADD operations are allowed in this data view.intThe index number of the record on which the data view is currently positioned (first record is 1, second record is 2, and so on).booleanIndicates whether DELETE operations are allowed in this data view.voiddeleteAllowed(boolean allowed)Set whether DELETE operations are allowed in this data view.voidPerforms a DELETE operation on the current record.booleanIndicates whether FIND operations are allowed in this data view.voidfindAllowed(boolean allowed)Set whether FIND operations are allowed in this data view.booleanIndicates whether the data view is in find mode.booleanIndicates whether the current record is new (created by aDataViewController.onClearToAdd()and not yet stored in the target table).booleanIndicates whether the values in the current record are stored in persistent storage (the database or data source).voidpositionToRecord(int recordNumber)Positions to the specified record number (first record is 1, second record is 2, and so forth).voidqueueCommand(String command)Execute the specified event of the current DataView.voidqueueNextField(String fieldName)Moves the cursor to the specified fieldintThe number of records in the selected set.voidRejects the current operation.voidUsed in theDataViewController.onFind()event section to reject a candidate record from being included in the selected set.voidsqlOptionalCondition(String sqlOptionalCondition)An SQL WHERE clause fragment that will be included in the WHERE clause created by a FIND operation.voidsqlOrderByClause(String sqlOrderByClause)The value of the SQL ORDER BY clause that is used for FIND operations.booleanIndicates whether UPDATE operations are allowed in this data view.voidupdateAllowed(boolean allowed)Set whether UPDATE operations are allowed in this data view.voidPerforms an ADD_UPDATE operation on the current record.Methods inherited from interface systextil.nxj.FieldData
backgroundColor, backgroundColor, clearAddExp, clearFindExp, getAmount, getBoolean, getDate, getDouble, getInt, getString, getTime, getTimestamp, isNull, isNull, searchRanges, set, set, set, set, set, set, set, set, setNull, setStippled, stopForInput, stopForInput, updateable, updateable, visible, visible
-
Method Details
-
inFindMode
boolean inFindMode()Indicates whether the data view is in find mode.- Returns:
- true if the dataView is in find mode or false otherwise
-
isCurrentRecordNew
boolean isCurrentRecordNew()Indicates whether the current record is new (created by aDataViewController.onClearToAdd()and not yet stored in the target table).- Returns:
- true if is new or false otherwise
-
isCurrentRecordStored
boolean isCurrentRecordStored()Indicates whether the values in the current record are stored in persistent storage (the database or data source).- Returns:
- true if is stored or false otherwise
-
rejectOperation
void rejectOperation()Rejects the current operation. -
rejectRecord
void rejectRecord()Used in theDataViewController.onFind()event section to reject a candidate record from being included in the selected set. -
queueNextField
Moves the cursor to the specified field- Parameters:
fieldName- the name of the field
-
addAllowed
boolean addAllowed()Indicates whether ADD operations are allowed in this data view.- Returns:
- true if is allowed or false otherwise
-
deleteAllowed
boolean deleteAllowed()Indicates whether DELETE operations are allowed in this data view.- Returns:
- true if is allowed or false otherwise
-
findAllowed
boolean findAllowed()Indicates whether FIND operations are allowed in this data view.- Returns:
- true if is allowed or false otherwise
-
updateAllowed
boolean updateAllowed()Indicates whether UPDATE operations are allowed in this data view.- Returns:
- true if is allowed or false otherwise
-
addAllowed
void addAllowed(boolean allowed)Set whether ADD operations are allowed in this data view.- Parameters:
allowed-
-
deleteAllowed
void deleteAllowed(boolean allowed)Set whether DELETE operations are allowed in this data view.- Parameters:
allowed-
-
findAllowed
void findAllowed(boolean allowed)Set whether FIND operations are allowed in this data view.- Parameters:
allowed-
-
updateAllowed
void updateAllowed(boolean allowed)Set whether UPDATE operations are allowed in this data view.- Parameters:
allowed-
-
recordCount
int recordCount()The number of records in the selected set. -
currentRecordNumber
int currentRecordNumber()The index number of the record on which the data view is currently positioned (first record is 1, second record is 2, and so on). -
positionToRecord
Positions to the specified record number (first record is 1, second record is 2, and so forth). Note that this operation does not trigger theDataViewController.onPreviousRecord()andDataViewController.onNextRecord()event sections.- Parameters:
recordNumber-- Throws:
Exception- when the recordNumber is invalid
-
sqlOptionalCondition
An SQL WHERE clause fragment that will be included in the WHERE clause created by a FIND operation.- Parameters:
sqlOptionalCondition-
-
sqlOrderByClause
The value of the SQL ORDER BY clause that is used for FIND operations.- Parameters:
sqlOrderByClause-
-
queueCommand
Execute the specified event of the current DataView.- Parameters:
command-
-
updateCurrentRecord
Performs an ADD_UPDATE operation on the current record.- Throws:
Exception
-
deleteCurrentRecord
Performs a DELETE operation on the current record.- Throws:
Exception
-