Package systextil.nxj
Class DataViewController
java.lang.Object
systextil.nxj.DataViewController
- All Implemented Interfaces:
DataViewListener
- Direct Known Subclasses:
FormController
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA BeepException deve ser usada em substituiçao a funçãoCriaArqBeep, muito comum em telas de espedição. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Stringstatic Stringstatic Stringprotected ContainerDatastatic Stringstatic Stringstatic Stringstatic Stringstatic Stringorg.apache.log4j.Loggerstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic String -
Constructor Summary
ConstructorsConstructorDescriptionDataViewController(ContainerData data, FormController controller)Construtor que deve ser usado por todas as subclasses que representem um DataView do NXJ. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidaddAllowed(boolean allowed)voidafterAdd()The afterAdd event is invoked after the database INSERT that is performed on behalf of an ADD_UPDATE operation.voidThe afterDelete event is invoked after a DELETE operation is performed.voidafterField(String fieldName)Executa o método afterField de um campo.voidThe afterFind event is invoked after a FIND operation is performed.voidThe afterUpdate event is invoked after the database UADD/PDATE that is performed on behalf of an ADD_UPDATE operation.voidThe afterUpdate event is invoked after the database UPDATE that is performed on behalf of an ADD_UPDATE operation.backgroundColor(String fieldName)voidbackgroundColor(String fieldName, String color)voidThe beforeAdd event is invoked before a database INSERT is performed on behalf of an ADD_UPDATE operation.voidThe beforeDelete event is invoked before a DELETE operation is performed.voidbeforeField(String fieldName)Executa o método beforeField de um campo.voidThe beforeFind event is invoked before a FIND operation is performed.voidThe beforeRecord event is called before a stored record is made current in the selected set.voidThe beforeSave event is invoked before a database UPDATE is performed on behalf of an ADD_UPDATE operation.voidThe beforeUpdate event is invoked before a database UPDATE is performed on behalf of an ADD_UPDATE operation.voidclearAddExp(String fieldName, String exp)voidclearFindExp(String fieldName, String exp)intbooleanvoiddeleteAllowed(boolean allowed)voidvoiddisplayToMessageBox(br.com.intersys.systextil.global.TagException e)Mostra uma mensagem para o usuáriovoiddisplayToMessageBox(String tag)Mostra uma mensagem para o usuáriobooleanvoidfindAllowed(boolean allowed)br.com.intersys.systextil.connection.AmountObtém valor de um campo ou variável do formulário.getBoolean(String name)Obtém valor de um campo ou variável do formulário.br.com.intersys.systextil.connection.AppConnectiongetConn()Obtém valor de um campo ou variável do formulário.Obtém valor de um campo ou variável do formulário.Obtém valor de um campo ou variável do formulário.Obtém valor de um campo ou variável do formulário.Obtém valor de um campo ou variável do formulário.getTimestamp(String name)Obtém valor de um campo ou variável do formulário.booleanvoidThe initDataView event is called when the form containing the data view is initializing.voidExecuta o método initField de um campo.booleanbooleanbooleanVerifica se uma variavelNullableé nulabooleanVerifica se uma variavelNullablede outro formulário é nulavoidThe onClearToAdd event is called when a CLEAR_TO_ADD operation is performed on the data view.voidThe onClearToFind event is called when a CLEAR_TO_FIND operation is performed on the data view.voidonDataAccept(String fieldName)Executa o método onDataAccept de um campo.voidonFind()The onFind event is invoked on each row retrieved by a FIND operation.voidonLeave()The onLeave event is called when focus moves to a field in another dataview.voidThe onNextRecord event is called when a NEXT_RECORD, NEXT_SET, or LAST_RECORD operation is performed.voidThe onPreviousRecord event is called when a PREVIOUS_RECORD, PREVIOUS_SET, or FIRST_RECORD operation is performed.voidonSearchRangeAccept(String fieldName)Executa o método onSearchRangeAccept de um campo.voidpositionToRecord(int recordNumber)voidqueueCommand(String command)voidqueueNextField(String fieldName)intvoidregisterField(String name, FieldListener fieldListener)Adiciona umFieldListenerpelo nome a esse DataViewvoidvoidvoidsearchRanges(String fieldName, String ranges)voidAtribui valor a um campo ou variável do formulário.voidAtribui valor a um campo ou variável do formulário.voidAtribui valor a um campo ou variável do formulário.voidAtribui valor a um campo ou variável do formulário.voidAtribui valor a um campo ou variável do formulário.voidAtribui valor a um campo ou variável do formulário.voidAtribui valor a um campo ou variável do formulário.voidAtribui valor a um campo ou variável do formulário.voidAtribui o valor null para uma variavel NullablevoidsetStippled(String fieldName, boolean stippled)voidsqlOptionalCondition(String sqlOptionalCondition)voidsqlOrderByClause(String sqlOrderByClause)booleanstopForInput(String fieldName)voidstopForInput(String fieldName, boolean canStop)booleanupdateable(String fieldName)voidupdateable(String fieldName, boolean updateable)booleanvoidupdateAllowed(boolean allowed)voidvoidExecuta o método validar de um campo.booleanvoidvoidwhenValueChanges(String fieldName)Executa o método whenValueChanges de um campo.
-
Field Details
-
ADD_UPDATE
- See Also:
- Constant Field Values
-
CLEAR_TO_ADD
- See Also:
- Constant Field Values
-
CLEAR_TO_FIND
- See Also:
- Constant Field Values
-
DELETE
- See Also:
- Constant Field Values
-
CANCEL_ZOOM
- See Also:
- Constant Field Values
-
EXIT
- See Also:
- Constant Field Values
-
NEXT_FIELD
- See Also:
- Constant Field Values
-
NEXT_FORM
- See Also:
- Constant Field Values
-
PREVIOUS_FIELD
- See Also:
- Constant Field Values
-
PREVIOUS_FORM
- See Also:
- Constant Field Values
-
ZOOM
- See Also:
- Constant Field Values
-
FIND
- See Also:
- Constant Field Values
-
FIRST_RECORD
- See Also:
- Constant Field Values
-
LAST_RECORD
- See Also:
- Constant Field Values
-
NEXT_RECORD
- See Also:
- Constant Field Values
-
NEXT_SET
- See Also:
- Constant Field Values
-
PREVIOUS_RECORD
- See Also:
- Constant Field Values
-
PREVIOUS_SET
- See Also:
- Constant Field Values
-
containerData
-
log
public final org.apache.log4j.Logger log
-
-
Constructor Details
-
DataViewController
Construtor que deve ser usado por todas as subclasses que representem um DataView do NXJ.
No NXJ esse construtor não deve ser chamado diretamente, deve ser chamado o metodoFormController.createDataView(Class, ContainerData)do controller, conforme o exemplo abaixo:
controller.createDataView(ClaseDoSubForm.class, getContainerData());- Parameters:
data- umContainerDatacontroller- umFormControllerrepresentando o formulário NXJ em que esse DataView está
-
-
Method Details
-
getConn
public br.com.intersys.systextil.connection.AppConnection getConn()- Returns:
- a conexao do controller passado
-
displayToMessageBox
Mostra uma mensagem para o usuário -
displayToMessageBox
public void displayToMessageBox(br.com.intersys.systextil.global.TagException e)Mostra uma mensagem para o usuário -
set
Atribui valor a um campo ou variável do formulário. -
set
Atribui valor a um campo ou variável do formulário. -
set
Atribui valor a um campo ou variável do formulário. -
set
Atribui valor a um campo ou variável do formulário. -
set
Atribui valor a um campo ou variável do formulário. -
set
Atribui valor a um campo ou variável do formulário. -
set
Atribui valor a um campo ou variável do formulário. -
set
Atribui valor a um campo ou variável do formulário. -
setNull
Atribui o valor null para uma variavel Nullable -
isNull
Verifica se uma variavelNullableé nula -
isNull
Verifica se uma variavelNullablede outro formulário é nula -
getInt
Obtém valor de um campo ou variável do formulário. -
getString
Obtém valor de um campo ou variável do formulário. -
getDouble
Obtém valor de um campo ou variável do formulário. -
getAmount
Obtém valor de um campo ou variável do formulário. -
getDate
Obtém valor de um campo ou variável do formulário. -
getTime
Obtém valor de um campo ou variável do formulário. -
getBoolean
Obtém valor de um campo ou variável do formulário. -
getTimestamp
Obtém valor de um campo ou variável do formulário. -
afterAdd
The afterAdd event is invoked after the database INSERT that is performed on behalf of an ADD_UPDATE operation.- Specified by:
afterAddin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
afterDelete
The afterDelete event is invoked after a DELETE operation is performed.- Specified by:
afterDeletein interfaceDataViewListener- Throws:
Exception- when an error occurred
-
afterFind
The afterFind event is invoked after a FIND operation is performed.- Specified by:
afterFindin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
afterSave
The afterUpdate event is invoked after the database UADD/PDATE that is performed on behalf of an ADD_UPDATE operation.- Specified by:
afterSavein interfaceDataViewListener- Throws:
Exception- when an error occurred
-
afterUpdate
The afterUpdate event is invoked after the database UPDATE that is performed on behalf of an ADD_UPDATE operation.- Specified by:
afterUpdatein interfaceDataViewListener- Throws:
Exception- when an error occurred
-
beforeAdd
The beforeAdd event is invoked before a database INSERT is performed on behalf of an ADD_UPDATE operation.- Specified by:
beforeAddin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
beforeDelete
The beforeDelete event is invoked before a DELETE operation is performed.- Specified by:
beforeDeletein interfaceDataViewListener- Throws:
Exception- when an error occurred
-
beforeFind
The beforeFind event is invoked before a FIND operation is performed.- Specified by:
beforeFindin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
beforeRecord
The beforeRecord event is called before a stored record is made current in the selected set.- Specified by:
beforeRecordin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
beforeSave
The beforeSave event is invoked before a database UPDATE is performed on behalf of an ADD_UPDATE operation.- Specified by:
beforeSavein interfaceDataViewListener- Throws:
Exception- when an error occurred
-
beforeUpdate
The beforeUpdate event is invoked before a database UPDATE is performed on behalf of an ADD_UPDATE operation.- Specified by:
beforeUpdatein interfaceDataViewListener- Throws:
Exception- when an error occurred
-
initDataView
The initDataView event is called when the form containing the data view is initializing.- Specified by:
initDataViewin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
onClearToAdd
The onClearToAdd event is called when a CLEAR_TO_ADD operation is performed on the data view.- Specified by:
onClearToAddin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
onClearToFind
The onClearToFind event is called when a CLEAR_TO_FIND operation is performed on the data view.- Specified by:
onClearToFindin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
onFind
The onFind event is invoked on each row retrieved by a FIND operation.- Specified by:
onFindin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
onLeave
The onLeave event is called when focus moves to a field in another dataview.- Specified by:
onLeavein interfaceDataViewListener- Throws:
Exception- when an error occurred
-
onNextRecord
The onNextRecord event is called when a NEXT_RECORD, NEXT_SET, or LAST_RECORD operation is performed.- Specified by:
onNextRecordin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
onPreviousRecord
The onPreviousRecord event is called when a PREVIOUS_RECORD, PREVIOUS_SET, or FIRST_RECORD operation is performed.- Specified by:
onPreviousRecordin interfaceDataViewListener- Throws:
Exception- when an error occurred
-
inFindMode
public final boolean inFindMode() -
isCurrentRecordNew
public final boolean isCurrentRecordNew() -
isCurrentRecordStored
public final boolean isCurrentRecordStored() -
rejectOperation
public final void rejectOperation() -
rejectRecord
public final void rejectRecord() -
queueNextField
-
addAllowed
public boolean addAllowed() -
deleteAllowed
public boolean deleteAllowed() -
findAllowed
public boolean findAllowed() -
updateAllowed
public boolean updateAllowed() -
addAllowed
public void addAllowed(boolean allowed) -
deleteAllowed
public void deleteAllowed(boolean allowed) -
findAllowed
public void findAllowed(boolean allowed) -
updateAllowed
public void updateAllowed(boolean allowed) -
recordCount
public int recordCount() -
currentRecordNumber
public int currentRecordNumber() -
positionToRecord
- Throws:
Exception
-
sqlOptionalCondition
-
sqlOrderByClause
-
queueCommand
-
updateCurrentRecord
- Throws:
Exception
-
deleteCurrentRecord
- Throws:
Exception
-
registerField
Adiciona umFieldListenerpelo nome a esse DataView- Parameters:
name- o nome pelo qual o controller será usado (isto é, o nome do campo)fieldListener- o listener
-
beforeField
Executa o método beforeField de um campo.- Parameters:
fieldName- o nome do campo onde o método será executado- Throws:
Exception- caso algum erro ocorra
-
validar
Executa o método validar de um campo.- Parameters:
fieldName- o nome do campo onde o método será executado- Throws:
Exception- caso algum erro ocorra
-
afterField
Executa o método afterField de um campo.- Parameters:
fieldName- o nome do campo onde o método será executado- Throws:
Exception- caso algum erro ocorra
-
initField
Executa o método initField de um campo.- Parameters:
fieldName- o nome do campo onde o método será executado- Throws:
Exception- caso algum erro ocorra
-
onDataAccept
Executa o método onDataAccept de um campo.- Parameters:
fieldName- o nome do campo onde o método será executado- Throws:
Exception- caso algum erro ocorra
-
onSearchRangeAccept
Executa o método onSearchRangeAccept de um campo.- Parameters:
fieldName- o nome do campo onde o método será executado- Throws:
Exception- caso algum erro ocorra
-
whenValueChanges
Executa o método whenValueChanges de um campo.- Parameters:
fieldName- o nome do campo onde o método será executado- Throws:
Exception- caso algum erro ocorra
-
clearAddExp
-
clearFindExp
-
backgroundColor
-
backgroundColor
-
searchRanges
-
visible
-
visible
-
setStippled
-
stopForInput
-
stopForInput
-
updateable
-
updateable
-