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, nameFields 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 TypeMethodDescriptionvoidvalidar()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.
OOptionIntFieldiráOptionIntField#validar()se o valor do campo está na faixa devalorespassados.- Parameters:
controller- umDataViewControlleronde 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:FieldControllerThe 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:
validarin interfaceFieldListener- Overrides:
validarin classFieldController<Integer>- Throws:
Exception- when the validation fails
-