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 TypeMethodDescriptionboolean
Indicates whether ADD operations are allowed in this data view.void
addAllowed(boolean allowed)
Set whether ADD operations are allowed in this data view.int
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).boolean
Indicates whether DELETE operations are allowed in this data view.void
deleteAllowed(boolean allowed)
Set whether DELETE operations are allowed in this data view.void
Performs a DELETE operation on the current record.boolean
Indicates whether FIND operations are allowed in this data view.void
findAllowed(boolean allowed)
Set whether FIND operations are allowed in this data view.boolean
Indicates whether the data view is in find mode.boolean
Indicates whether the current record is new (created by aDataViewController.onClearToAdd()
and not yet stored in the target table).boolean
Indicates whether the values in the current record are stored in persistent storage (the database or data source).void
positionToRecord(int recordNumber)
Positions to the specified record number (first record is 1, second record is 2, and so forth).void
queueCommand(String command)
Execute the specified event of the current DataView.void
queueNextField(String fieldName)
Moves the cursor to the specified fieldint
The number of records in the selected set.void
Rejects the current operation.void
Used in theDataViewController.onFind()
event section to reject a candidate record from being included in the selected set.void
sqlOptionalCondition(String sqlOptionalCondition)
An SQL WHERE clause fragment that will be included in the WHERE clause created by a FIND operation.void
sqlOrderByClause(String sqlOrderByClause)
The value of the SQL ORDER BY clause that is used for FIND operations.boolean
Indicates whether UPDATE operations are allowed in this data view.void
updateAllowed(boolean allowed)
Set whether UPDATE operations are allowed in this data view.void
Performs 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
-