BrightSide Workbench Full Report + Source Code
org.turro.zul.fieldit.ClassesListbox Class Reference
Inheritance diagram for org.turro.zul.fieldit.ClassesListbox:
Collaboration diagram for org.turro.zul.fieldit.ClassesListbox:

Public Member Functions

 ClassesListbox ()
 
void setObjectValue (Class javaClass)
 
Class getObjectValue ()
 

Detailed Description

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

Definition at line 35 of file ClassesListbox.java.

Constructor & Destructor Documentation

◆ ClassesListbox()

org.turro.zul.fieldit.ClassesListbox.ClassesListbox ( )

Definition at line 37 of file ClassesListbox.java.

37  {
38  appendItem(I_.get("String"), String.class.getName()).setSelected(true);
39  appendItem(I_.get("Long integer"), Long.class.getName());
40  appendItem(I_.get("Double"), Double.class.getName());
41  appendItem(I_.get("Date"), Date.class.getName());
42  appendItem(I_.get("Boolean"), Boolean.class.getName());
43  appendItem(I_.get("String list"), StringList.class.getName());
44  appendItem(I_.get("Auto fill list"), AutoFillList.class.getName());
45  }
Here is the call graph for this function:

Member Function Documentation

◆ getObjectValue()

Class org.turro.zul.fieldit.ClassesListbox.getObjectValue ( )

Definition at line 57 of file ClassesListbox.java.

57  {
58  if(getSelectedItem() != null) {
59  try {
60  return Class.forName((String) getSelectedItem().getValue());
61  } catch (ClassNotFoundException ex) {
62  Logger.getLogger(ClassesListbox.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
63  }
64  }
65  return null;
66  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setObjectValue()

void org.turro.zul.fieldit.ClassesListbox.setObjectValue ( Class  javaClass)

Definition at line 47 of file ClassesListbox.java.

47  {
48  if(javaClass != null) {
49  for(Listitem li : getItems()) {
50  if(((String) li.getValue()).equals(javaClass.getName())) {
51  li.setSelected(true);
52  }
53  }
54  }
55  }
Here is the caller graph for this function:

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