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

Public Member Functions

double getEstimated ()
 
void setEstimated (double estimated)
 
double getValue ()
 
void setValue (double value)
 
boolean isCalculated ()
 
- Public Member Functions inherited from org.turro.zkoss.input.OverrideInput
void updateStatus ()
 
void afterCompose ()
 

Protected Member Functions

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

Detailed Description

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

Definition at line 28 of file OverrideDouble.java.

Member Function Documentation

◆ getEditor()

InputElement org.turro.zkoss.input.OverrideDouble.getEditor ( )
protected

Reimplemented from org.turro.zkoss.input.OverrideInput.

Definition at line 51 of file OverrideDouble.java.

51  {
52  if(editor == null) {
53  editor = new Doublebox(value != 0.0 ?
54  value : calculated);
55  }
56  return editor;
57  }
Here is the caller graph for this function:

◆ getEstimated()

double org.turro.zkoss.input.OverrideDouble.getEstimated ( )

Definition at line 33 of file OverrideDouble.java.

33  {
34  return calculated;
35  }

◆ getValue()

double org.turro.zkoss.input.OverrideDouble.getValue ( )

Definition at line 41 of file OverrideDouble.java.

41  {
42  return editor.getValue();
43  }
Here is the caller graph for this function:

◆ isCalculated()

boolean org.turro.zkoss.input.OverrideDouble.isCalculated ( )

Reimplemented from org.turro.zkoss.input.OverrideInput.

Definition at line 60 of file OverrideDouble.java.

60  {
61  return editor.getValue().compareTo(calculated) == 0;
62  }
Here is the caller graph for this function:

◆ resetValue()

void org.turro.zkoss.input.OverrideDouble.resetValue ( )
protected

Reimplemented from org.turro.zkoss.input.OverrideInput.

Definition at line 65 of file OverrideDouble.java.

65  {
66  editor.setValue(calculated);
67  }

◆ setEditorValue()

void org.turro.zkoss.input.OverrideDouble.setEditorValue ( )
protected

Reimplemented from org.turro.zkoss.input.OverrideInput.

Definition at line 70 of file OverrideDouble.java.

70  {
71  getEditor();
72  editor.setValue(value != 0.0 ?
73  value : calculated);
74  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setEstimated()

void org.turro.zkoss.input.OverrideDouble.setEstimated ( double  estimated)

Definition at line 37 of file OverrideDouble.java.

37  {
38  this.calculated = estimated;
39  }
Here is the caller graph for this function:

◆ setValue()

void org.turro.zkoss.input.OverrideDouble.setValue ( double  value)

Definition at line 45 of file OverrideDouble.java.

45  {
46  this.value = value;
48  }
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: