BrightSide Workbench Full Report + Source Code
org.turro.contacts.zul.fields.FieldLabel Class Reference
Inheritance diagram for org.turro.contacts.zul.fields.FieldLabel:
Collaboration diagram for org.turro.contacts.zul.fields.FieldLabel:

Public Member Functions

void setFieldValue (FieldValue fieldValue)
 
void setFieldDef (FieldDef fieldDef)
 
void setFieldDefLabel (FieldDef fieldDef)
 
- Public Member Functions inherited from org.turro.zkoss.label.LabelExtended
LabelExtended setFormat (String format)
 
int getMaxChars ()
 
LabelExtended setCSS (String style)
 
LabelExtended setMaxChars (int maxChars)
 
LabelExtended setString (String value)
 
LabelExtended setResourceValue (String resourceValue)
 
LabelExtended setEnum (Enum e)
 
LabelExtended setDate (Date date)
 
LabelExtended setDateTime (Date date)
 
LabelExtended setBoolean (boolean value)
 
LabelExtended setBoolean (String value)
 
LabelExtended setDouble (double value)
 
LabelExtended setLong (long value)
 
boolean isShowTooltip ()
 
LabelExtended setShowTooltip (boolean showTooltip)
 
int getWordWrap ()
 
LabelExtended setWordWrap (int wordWrap)
 
void setValue (String value)
 

Detailed Description

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

Definition at line 30 of file FieldLabel.java.

Member Function Documentation

◆ setFieldDef()

void org.turro.contacts.zul.fields.FieldLabel.setFieldDef ( FieldDef  fieldDef)

Definition at line 47 of file FieldLabel.java.

47  {
48  setValue(I_.get(fieldDef.getTabKey()) +
49  " : " +
50  I_.get(fieldDef.getLabelKey()));
51  }
Here is the call graph for this function:

◆ setFieldDefLabel()

void org.turro.contacts.zul.fields.FieldLabel.setFieldDefLabel ( FieldDef  fieldDef)

Definition at line 53 of file FieldLabel.java.

53  {
54  setValue(I_.get(fieldDef.getLabelKey()));
55  }
Here is the call graph for this function:

◆ setFieldValue()

void org.turro.contacts.zul.fields.FieldLabel.setFieldValue ( FieldValue  fieldValue)

Definition at line 32 of file FieldLabel.java.

32  {
33  FieldDef fd = fieldValue.getFieldDef();
34  if(fd.getJavaClass().equals(String.class)) {
35  setValue(I_.get(fieldValue.getValue()));
36  } else if(fd.getJavaClass().equals(Long.class)) {
37  setValue(fieldValue.getValue());
38  } else if(fd.getJavaClass().equals(Double.class)) {
39  setValue(fieldValue.getValue());
40  } else if(fd.getJavaClass().equals(Date.class)) {
41  setDate((Date) fieldValue.getObjectValue());
42  } else if(fd.getJavaClass().equals(Boolean.class)) {
43  setBoolean(fieldValue.getValue());
44  }
45  }
LabelExtended setBoolean(boolean value)
LabelExtended setDate(Date date)
Here is the call graph for this function:

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