Package widgets
Class AmountFieldAcumulavel
java.lang.Object
systextil.nxj.datatypes.Nullable<T>
systextil.nxj.FieldController<br.com.intersys.systextil.connection.Amount>
systextil.nxj.field.AmountField
widgets.AmountFieldAcumulavel
- All Implemented Interfaces:
Comparable<Object>,FieldListener,Acumulavel
Classe de um campo Amount que acumula os valores de um outro campo Amount, 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 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
ConstructorsConstructorDescriptionAmountFieldAcumulavel(DataViewController controller, String name, AmountField campoAcumular) -
Method Summary
Methods inherited from class systextil.nxj.field.AmountField
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
-
AmountFieldAcumulavel
public AmountFieldAcumulavel(DataViewController controller, String name, AmountField 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
-