BrightSide Workbench Full Report + Source Code
org.turro.zkoss.input.GenericOverloadCombobox< V > Class Template Referenceabstract
Inheritance diagram for org.turro.zkoss.input.GenericOverloadCombobox< V >:
Collaboration diagram for org.turro.zkoss.input.GenericOverloadCombobox< V >:

Public Member Functions

 GenericOverloadCombobox (String value)
 
 GenericOverloadCombobox ()
 
V getObjectValue ()
 
void setObjectValue (V value)
 
boolean isAllowNotInModelValues ()
 
void setAllowNotInModelValues (boolean allowNotInModelValues)
 
void refreshModel ()
 
abstract void populateList (String value, LinkedList list, int nRows)
 
abstract V getObjectFromText (String text)
 
abstract String getTextFromObject (V value)
 

Detailed Description

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

Definition at line 29 of file GenericOverloadCombobox.java.

Constructor & Destructor Documentation

◆ GenericOverloadCombobox() [1/2]

Definition at line 34 of file GenericOverloadCombobox.java.

34  {
35  super(value);
36  createModel(value);
37  }

◆ GenericOverloadCombobox() [2/2]

Definition at line 39 of file GenericOverloadCombobox.java.

39  {
40  createModel("");
41  }

Member Function Documentation

◆ getObjectFromText()

abstract V org.turro.zkoss.input.GenericOverloadCombobox< V >.getObjectFromText ( String  text)
abstract
Here is the caller graph for this function:

◆ getObjectValue()

Definition at line 43 of file GenericOverloadCombobox.java.

43  {
44  V value = getObjectFromText(getText());
45  getSelectedItem();
46  if(value == null && allowNotInModelValues && currentValue != null) {
47  if(getText().equals(getTextFromObject(currentValue))) {
48  value = currentValue;
49  }
50  }
51  return value;
52  }
abstract String getTextFromObject(V value)
Here is the call graph for this function:

◆ getTextFromObject()

abstract String org.turro.zkoss.input.GenericOverloadCombobox< V >.getTextFromObject ( V  value)
abstract
Here is the caller graph for this function:

◆ isAllowNotInModelValues()

boolean org.turro.zkoss.input.GenericOverloadCombobox< V >.isAllowNotInModelValues ( )

Definition at line 62 of file GenericOverloadCombobox.java.

62  {
63  return allowNotInModelValues;
64  }

◆ populateList()

abstract void org.turro.zkoss.input.GenericOverloadCombobox< V >.populateList ( String  value,
LinkedList  list,
int  nRows 
)
abstract

◆ refreshModel()

Definition at line 70 of file GenericOverloadCombobox.java.

70  {
71  Constraint c = getConstraint();
72  setConstraint((Constraint) null);
73  createModel(getText());
74  setConstraint(c);
75  }

◆ setAllowNotInModelValues()

void org.turro.zkoss.input.GenericOverloadCombobox< V >.setAllowNotInModelValues ( boolean  allowNotInModelValues)

Definition at line 66 of file GenericOverloadCombobox.java.

66  {
67  this.allowNotInModelValues = allowNotInModelValues;
68  }

◆ setObjectValue()

void org.turro.zkoss.input.GenericOverloadCombobox< V >.setObjectValue ( V  value)

Definition at line 54 of file GenericOverloadCombobox.java.

54  {
55  Constraint c = getConstraint();
56  setConstraint((Constraint) null);
57  currentValue = value;
58  setText(value != null ? getTextFromObject(value) : null);
59  setConstraint(c);
60  }
Here is the call graph for this function:

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