Package widgets
Class OptionIntField
- All Implemented Interfaces:
Comparable<Object>
,FieldListener
O
OptionIntField
representa um intField com uma faixa de valores aceitos pré-definidos.- Author:
- horacio
-
Field Summary
Fields inherited from class systextil.nxj.datatypes.Nullable
containingDataView, name
Fields inherited from interface systextil.nxj.FieldListener
EMPTY
-
Constructor Summary
ConstructorsConstructorDescriptionOptionIntField(DataViewController controller, String nameField, Integer... valores)
Construtor utilizado para validação de valores aceitos pelo campos. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validar()
The validar event is invoked whenever input is accepted on the field (in add/update/delete mode).Methods inherited from class systextil.nxj.FieldController
afterField, backgroundColor, backgroundColor, beforeField, clearAddExp, clearFindExp, displayAndRestart, initField, onDataAccept, onSearchRangeAccept, requestFocus, requestFocus, searchRanges, setListener, setNullIfNotValid, setStippled, stopForInput, stopForInput, updateable, updateable, visible, visible, whenValueChanges
-
Constructor Details
-
OptionIntField
Construtor utilizado para validação de valores aceitos pelo campos.
OOptionIntField
iráOptionIntField#validar()
se o valor do campo está na faixa devalores
passados.- Parameters:
controller
- umDataViewController
onde estão sendo criados os fields.nameField
- uma String com o nome do campo que será referenciado no fomulário.valores
- faixa de valores inteiros validos.
-
-
Method Details
-
validar
Description copied from class:FieldController
The validar event is invoked whenever input is accepted on the field (in add/update/delete mode). Use this event to validate if the input is valid.- Specified by:
validar
in interfaceFieldListener
- Overrides:
validar
in classFieldController<Integer>
- Throws:
Exception
- when the validation fails
-