BrightSide Workbench Full Report + Source Code
org.turro.zkoss.input.OverrideInput Class Referenceabstract
Inheritance diagram for org.turro.zkoss.input.OverrideInput:
Collaboration diagram for org.turro.zkoss.input.OverrideInput:

Public Member Functions

void updateStatus ()
 
abstract boolean isCalculated ()
 
void afterCompose ()
 

Protected Member Functions

abstract InputElement getEditor ()
 
abstract void resetValue ()
 
abstract void setEditorValue ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 37 of file OverrideInput.java.

Member Function Documentation

◆ afterCompose()

void org.turro.zkoss.input.OverrideInput.afterCompose ( )

Definition at line 53 of file OverrideInput.java.

53  {
54  setSclass("z-valign-middle");
55  setValign("middle");
56  setSpacing("5px");
57  InputElement editor = getEditor();
58  editor.addEventListener(Events.ON_CHANGE, new EventListener<Event>() {
59  @Override
60  public void onEvent(Event event) throws Exception {
61  information.setValue(isCalculated() ? I_.get("Calculated") : I_.get("Manual"));
62  }
63  });
64  appendChild(editor);
65  information = LabelTypes.getSoftLabel(isCalculated() ? I_.get("Calculated") : I_.get("Manual"));
66  appendChild(information);
67  reset = new Button();
68  reset.setTooltiptext(I_.get("Reset value"));
69  reset.setImage(Images.getImage("synchronize"));
70  reset.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
71  @Override
72  public void onEvent(Event event) throws Exception {
73  resetValue();
74  information.setValue(isCalculated() ? I_.get("Calculated") : I_.get("Manual"));
75  }
76  });
77  appendChild(reset);
78  }
abstract InputElement getEditor()
Here is the call graph for this function:

◆ getEditor()

abstract InputElement org.turro.zkoss.input.OverrideInput.getEditor ( )
abstractprotected

Reimplemented in org.turro.zkoss.input.OverrideDouble.

Here is the caller graph for this function:

◆ isCalculated()

abstract boolean org.turro.zkoss.input.OverrideInput.isCalculated ( )
abstract

Reimplemented in org.turro.zkoss.input.OverrideDouble.

Here is the caller graph for this function:

◆ resetValue()

abstract void org.turro.zkoss.input.OverrideInput.resetValue ( )
abstractprotected

◆ setEditorValue()

abstract void org.turro.zkoss.input.OverrideInput.setEditorValue ( )
abstractprotected

Reimplemented in org.turro.zkoss.input.OverrideDouble.

Here is the caller graph for this function:

◆ updateStatus()

void org.turro.zkoss.input.OverrideInput.updateStatus ( )

Definition at line 42 of file OverrideInput.java.

42  {
44  information.setValue(isCalculated() ? I_.get("Calculated") : I_.get("Manual"));
45  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: