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

Public Member Functions

void setJson (Jsons json)
 
String getProperty ()
 
void setProperty (String property)
 
- Public Member Functions inherited from org.turro.zkoss.input.CollectionListbox< Structure >
 CollectionListbox ()
 
 CollectionListbox (Collection< V > collection)
 
void updateCollection ()
 
void updateCollection (Collection< V > collection)
 
boolean isAllowNull ()
 
void setAllowNull (boolean allowNull)
 
Collection< V > getCollection ()
 
void setCollection (Collection< V > collection)
 
boolean isNullAtBottom ()
 
void setNullAtBottom (boolean nullAtBottom)
 
String getNullLabel ()
 
void setNullLabel (String nullLabel)
 

Protected Member Functions

String convertToString (Structure v)
 
- Protected Member Functions inherited from org.turro.zkoss.input.CollectionListbox< Structure >
void populateList ()
 
boolean equals (V value, V obj)
 
abstract String convertToString (V v)
 
void beforeAppend (Listitem li)
 

Additional Inherited Members

- Static Public Attributes inherited from org.turro.zkoss.input.CollectionListbox< Structure >
static final String ITEM_SEPARATOR
 

Detailed Description

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

Definition at line 30 of file JsonListbox.java.

Member Function Documentation

◆ convertToString()

String org.turro.zkoss.input.JsonListbox.convertToString ( Structure  v)
protected

Definition at line 53 of file JsonListbox.java.

53  {
54  return v.getString(property);
55  }

◆ getProperty()

String org.turro.zkoss.input.JsonListbox.getProperty ( )

Definition at line 44 of file JsonListbox.java.

44  {
45  return property;
46  }

◆ setJson()

void org.turro.zkoss.input.JsonListbox.setJson ( Jsons  json)

Definition at line 34 of file JsonListbox.java.

34  {
35  List<Structure> items = new ArrayList<>();
36  Structure array = json.getStructure();
37  int size = array.asArray().size();
38  for(int i = 0; i < size; i++) {
39  items.add(array.getObject(i));
40  }
41  updateCollection(items);
42  }
Here is the call graph for this function:

◆ setProperty()

void org.turro.zkoss.input.JsonListbox.setProperty ( String  property)

Definition at line 48 of file JsonListbox.java.

48  {
49  this.property = property;
50  }

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