Package widgets
Class DoubleFieldAcumulavel
- All Implemented Interfaces:
Comparable<Object>,FieldListener,Acumulavel
Classe de um campo Float que acumula os valores de um outro campo Float, com o intuito de exibir o valor total. Note
que este campo deve não pode ter a propriedade multi-value, e que o outro campo deve obrigatóriamente ter a
propriedade multi-value. Para fazer este widget funcionar é necessário adicionar o metodo
resetar no
evento onClearToFind de seu FormController, e o método acumular no evento
onFind-
Field Summary
Fields inherited from class systextil.nxj.datatypes.Nullable
containingDataView, nameFields inherited from interface systextil.nxj.FieldListener
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDoubleFieldAcumulavel(DataViewController controller, String name, DoubleField campoAcumular) -
Method Summary
Methods inherited from class systextil.nxj.field.DoubleField
set, valueMethods 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, validar, visible, visible, whenValueChanges
-
Constructor Details
-
DoubleFieldAcumulavel
public DoubleFieldAcumulavel(DataViewController controller, String name, DoubleField campoAcumular)
-
-
Method Details
-
resetar
public void resetar()Reseta este campo para o valor default (zero)- Specified by:
resetarin interfaceAcumulavel
-
acumular
public void acumular()Adicina o valor do outro campo ao valor atual deste campo- Specified by:
acumularin interfaceAcumulavel
-