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

Public Member Functions

String getCharset ()
 
void setCharset (String charset)
 
void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (Charset value)
 
- Public Member Functions inherited from org.turro.zkoss.input.GenericCombobox< V >
 GenericCombobox ()
 
getObjectValue ()
 
void setObjectValue (V value)
 
boolean isAllowNotInModelValues ()
 
void setAllowNotInModelValues (boolean allowNotInModelValues)
 
void refreshModel ()
 
abstract String getTextFromObject (V value)
 
Object getRelatedEntity ()
 
void setRelatedEntity (Object relatedEntity)
 
void render (Comboitem item, Object data, int index) throws Exception
 

Detailed Description

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

Definition at line 29 of file CharsetCombobox.java.

Member Function Documentation

◆ getCharset()

String org.turro.zkoss.text.CharsetCombobox.getCharset ( )

Definition at line 31 of file CharsetCombobox.java.

31  {
32  Charset c = getObjectValue();
33  if(c != null) {
34  return c.displayName();
35  }
36  return null;
37  }
Here is the call graph for this function:

◆ getTextFromObject()

String org.turro.zkoss.text.CharsetCombobox.getTextFromObject ( Charset  value)

Definition at line 55 of file CharsetCombobox.java.

55  {
56  return value.displayName();
57  }

◆ populateList()

void org.turro.zkoss.text.CharsetCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

Reimplemented from org.turro.zkoss.input.GenericCombobox< V >.

Definition at line 46 of file CharsetCombobox.java.

46  {
47  for(String s : Charset.availableCharsets().keySet()) {
48  if(s.toUpperCase().contains(value.toUpperCase())) {
49  list.add(Charset.availableCharsets().get(s));
50  }
51  }
52  }

◆ setCharset()

void org.turro.zkoss.text.CharsetCombobox.setCharset ( String  charset)

Definition at line 39 of file CharsetCombobox.java.

39  {
40  if(!Strings.isBlank(charset)) {
41  setObjectValue(Charset.forName(charset));
42  }
43  }
Here is the call graph for this function:

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