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

Public Member Functions

 DaysOfMonthListbox ()
 
void selectItemByText (String value)
 
String getStringValues ()
 
- Public Member Functions inherited from org.turro.zkoss.input.CollectionListbox< Integer >
 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)
 

Static Public Member Functions

static String getStringValues (Collection< Integer > values)
 

Protected Member Functions

String convertToString (Integer v)
 
- Protected Member Functions inherited from org.turro.zkoss.input.CollectionListbox< Integer >
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< Integer >
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 DaysOfMonthListbox.java.

Constructor & Destructor Documentation

◆ DaysOfMonthListbox()

org.turro.zkoss.input.DaysOfMonthListbox.DaysOfMonthListbox ( )

Definition at line 32 of file DaysOfMonthListbox.java.

32  {
33  TreeSet<Integer> days = new TreeSet<Integer>();
34  for(int d = 1; d <= 31; d++) {
35  days.add(d);
36  }
37  setCollection(days);
38  setMultiple(true);
39  setCheckmark(true);
40  setSelectFirst(false);
41  }
Here is the call graph for this function:

Member Function Documentation

◆ convertToString()

String org.turro.zkoss.input.DaysOfMonthListbox.convertToString ( Integer  v)
protected

Definition at line 44 of file DaysOfMonthListbox.java.

44  {
45  return v.toString();
46  }

◆ getStringValues() [1/2]

String org.turro.zkoss.input.DaysOfMonthListbox.getStringValues ( )

Definition at line 57 of file DaysOfMonthListbox.java.

57  {
58  return getStringValues(getObjectValues());
59  }
Here is the caller graph for this function:

◆ getStringValues() [2/2]

static String org.turro.zkoss.input.DaysOfMonthListbox.getStringValues ( Collection< Integer >  values)
static

Definition at line 61 of file DaysOfMonthListbox.java.

61  {
62  PhraseBuilder pb = new PhraseBuilder();
63  for(Integer i : values) {
64  pb.addWord(i.toString());
65  pb.addPendingSeparator(", ");
66  }
67  return pb.toString();
68  }

◆ selectItemByText()

void org.turro.zkoss.input.DaysOfMonthListbox.selectItemByText ( String  value)

Definition at line 48 of file DaysOfMonthListbox.java.

48  {
49  String[] va = value == null ? null : value.split(",");
50  ArrayList<Integer> ali = new ArrayList<Integer>();
51  for(String v : va) {
52  ali.add(Integer.valueOf(v.trim()));
53  }
54  setObjectValues(ali);
55  }
Here is the caller graph for this function:

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