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 TypeClassDescriptionclass
A BeepException deve ser usada em substituiçao a funçãoCriaArqBeep
, muito comum em telas de espedição. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static String
static String
static String
protected ContainerData
static String
static String
static String
static String
static String
org.apache.log4j.Logger
static String
static String
static String
static String
static String
static String
static String
static String
static 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 TypeMethodDescriptionboolean
void
addAllowed(boolean allowed)
void
afterAdd()
The afterAdd event is invoked after the database INSERT that is performed on behalf of an ADD_UPDATE operation.void
The afterDelete event is invoked after a DELETE operation is performed.void
afterField(String fieldName)
Executa o método afterField de um campo.void
The afterFind event is invoked after a FIND operation is performed.void
The afterUpdate event is invoked after the database UADD/PDATE that is performed on behalf of an ADD_UPDATE operation.void
The afterUpdate event is invoked after the database UPDATE that is performed on behalf of an ADD_UPDATE operation.backgroundColor(String fieldName)
void
backgroundColor(String fieldName, String color)
void
The beforeAdd event is invoked before a database INSERT is performed on behalf of an ADD_UPDATE operation.void
The beforeDelete event is invoked before a DELETE operation is performed.void
beforeField(String fieldName)
Executa o método beforeField de um campo.void
The beforeFind event is invoked before a FIND operation is performed.void
The beforeRecord event is called before a stored record is made current in the selected set.void
The beforeSave event is invoked before a database UPDATE is performed on behalf of an ADD_UPDATE operation.void
The beforeUpdate event is invoked before a database UPDATE is performed on behalf of an ADD_UPDATE operation.void
clearAddExp(String fieldName, String exp)
void
clearFindExp(String fieldName, String exp)
int
boolean
void
deleteAllowed(boolean allowed)
void
void
displayToMessageBox(br.com.intersys.systextil.global.TagException e)
Mostra uma mensagem para o usuáriovoid
displayToMessageBox(String tag)
Mostra uma mensagem para o usuárioboolean
void
findAllowed(boolean allowed)
br.com.intersys.systextil.connection.Amount
Obté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.AppConnection
getConn()
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.boolean
void
The initDataView event is called when the form containing the data view is initializing.void
Executa o método initField de um campo.boolean
boolean
boolean
Verifica se uma variavelNullable
é nulaboolean
Verifica se uma variavelNullable
de outro formulário é nulavoid
The onClearToAdd event is called when a CLEAR_TO_ADD operation is performed on the data view.void
The onClearToFind event is called when a CLEAR_TO_FIND operation is performed on the data view.void
onDataAccept(String fieldName)
Executa o método onDataAccept de um campo.void
onFind()
The onFind event is invoked on each row retrieved by a FIND operation.void
onLeave()
The onLeave event is called when focus moves to a field in another dataview.void
The onNextRecord event is called when a NEXT_RECORD, NEXT_SET, or LAST_RECORD operation is performed.void
The onPreviousRecord event is called when a PREVIOUS_RECORD, PREVIOUS_SET, or FIRST_RECORD operation is performed.void
onSearchRangeAccept(String fieldName)
Executa o método onSearchRangeAccept de um campo.void
positionToRecord(int recordNumber)
void
queueCommand(String command)
void
queueNextField(String fieldName)
int
void
registerField(String name, FieldListener fieldListener)
Adiciona umFieldListener
pelo nome a esse DataViewvoid
void
void
searchRanges(String fieldName, String ranges)
void
Atribui valor a um campo ou variável do formulário.void
Atribui valor a um campo ou variável do formulário.void
Atribui valor a um campo ou variável do formulário.void
Atribui valor a um campo ou variável do formulário.void
Atribui valor a um campo ou variável do formulário.void
Atribui valor a um campo ou variável do formulário.void
Atribui valor a um campo ou variável do formulário.void
Atribui valor a um campo ou variável do formulário.void
Atribui o valor null para uma variavel Nullablevoid
setStippled(String fieldName, boolean stippled)
void
sqlOptionalCondition(String sqlOptionalCondition)
void
sqlOrderByClause(String sqlOrderByClause)
boolean
stopForInput(String fieldName)
void
stopForInput(String fieldName, boolean canStop)
boolean
updateable(String fieldName)
void
updateable(String fieldName, boolean updateable)
boolean
void
updateAllowed(boolean allowed)
void
void
Executa o método validar de um campo.boolean
void
void
whenValueChanges(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
- umContainerData
controller
- umFormController
representando 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 variavelNullable
de 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:
afterAdd
in interfaceDataViewListener
- Throws:
Exception
- when an error occurred
-
afterDelete
The afterDelete event is invoked after a DELETE operation is performed.- Specified by:
afterDelete
in interfaceDataViewListener
- Throws:
Exception
- when an error occurred
-
afterFind
The afterFind event is invoked after a FIND operation is performed.- Specified by:
afterFind
in 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:
afterSave
in 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:
afterUpdate
in 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:
beforeAdd
in interfaceDataViewListener
- Throws:
Exception
- when an error occurred
-
beforeDelete
The beforeDelete event is invoked before a DELETE operation is performed.- Specified by:
beforeDelete
in interfaceDataViewListener
- Throws:
Exception
- when an error occurred
-
beforeFind
The beforeFind event is invoked before a FIND operation is performed.- Specified by:
beforeFind
in 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:
beforeRecord
in 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:
beforeSave
in 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:
beforeUpdate
in interfaceDataViewListener
- Throws:
Exception
- when an error occurred
-
initDataView
The initDataView event is called when the form containing the data view is initializing.- Specified by:
initDataView
in 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:
onClearToAdd
in 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:
onClearToFind
in interfaceDataViewListener
- Throws:
Exception
- when an error occurred
-
onFind
The onFind event is invoked on each row retrieved by a FIND operation.- Specified by:
onFind
in interfaceDataViewListener
- Throws:
Exception
- when an error occurred
-
onLeave
The onLeave event is called when focus moves to a field in another dataview.- Specified by:
onLeave
in 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:
onNextRecord
in 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:
onPreviousRecord
in 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 umFieldListener
pelo 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
-