BrightSide Workbench Full Report + Source Code
org.turro.zkoss.filter.GenericFilterListbox< E > Class Template Reference
Inheritance diagram for org.turro.zkoss.filter.GenericFilterListbox< E >:
Collaboration diagram for org.turro.zkoss.filter.GenericFilterListbox< E >:

Public Member Functions

 GenericFilterListbox (Filter< E > filter, FilterGrid filterGrid, CollectionListbox< E > entities)
 
void setMultiple (boolean multiple)
 
void setCheckmark (boolean checkmark)
 
void setSelectFirst (boolean selectFirst)
 
void afterCompose ()
 
Collection< E > getObjectValues ()
 
getObjectValue ()
 
void show (String title, String width, String height, Command command)
 

Detailed Description

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

Definition at line 40 of file GenericFilterListbox.java.

Constructor & Destructor Documentation

◆ GenericFilterListbox()

Definition at line 47 of file GenericFilterListbox.java.

47  {
48  this.filter = filter;
49  this.filterGrid = filterGrid;
50  this.entities = entities;
51  }

Member Function Documentation

◆ afterCompose()

void org.turro.zkoss.filter.GenericFilterListbox< E >.afterCompose ( )

Definition at line 66 of file GenericFilterListbox.java.

66  {
67  entities.setMultiple(multiple);
68  entities.setCheckmark(checkmark);
69  entities.setSelectFirst(selectFirst);
70  entities.setVflex(true);
71  Button search = new Button(I_.get("Search"), Images.getImage("search"));
72  search.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
73  @Override
74  public void onEvent(Event event) throws Exception {
75  if(filterGrid.hasValues()) {
76  entities.updateCollection(filter.getObjectValues(filterGrid.getValues()));
77  }
78  }
79  });
80  appendChild(filterGrid);
81  filterGrid.afterCompose();
82  Hbox hbox = new Hbox();
83  hbox.setHflex("true");
84  hbox.setPack("end");
85  hbox.setStyle("padding:10px");
86  hbox.setSpacing("15px");
87  hbox.appendChild(search);
88  appendChild(hbox);
89  appendChild(entities);
90  entities.afterCompose();
91  }
Here is the call graph for this function:

◆ getObjectValue()

Definition at line 97 of file GenericFilterListbox.java.

97  {
98  return entities.getObjectValue();
99  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getObjectValues()

Collection<E> org.turro.zkoss.filter.GenericFilterListbox< E >.getObjectValues ( )

Definition at line 93 of file GenericFilterListbox.java.

93  {
94  return entities.getObjectValues();
95  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCheckmark()

void org.turro.zkoss.filter.GenericFilterListbox< E >.setCheckmark ( boolean  checkmark)

Definition at line 57 of file GenericFilterListbox.java.

57  {
58  this.checkmark = checkmark;
59  }
Here is the caller graph for this function:

◆ setMultiple()

void org.turro.zkoss.filter.GenericFilterListbox< E >.setMultiple ( boolean  multiple)

Definition at line 53 of file GenericFilterListbox.java.

53  {
54  this.multiple = multiple;
55  }
Here is the caller graph for this function:

◆ setSelectFirst()

void org.turro.zkoss.filter.GenericFilterListbox< E >.setSelectFirst ( boolean  selectFirst)

Definition at line 61 of file GenericFilterListbox.java.

61  {
62  this.selectFirst = selectFirst;
63  }
Here is the caller graph for this function:

◆ show()

void org.turro.zkoss.filter.GenericFilterListbox< E >.show ( String  title,
String  width,
String  height,
Command  command 
)

Definition at line 101 of file GenericFilterListbox.java.

101  {
102  SelectionDialog.getComponent(
103  Framework.getCurrent().getPage(),
104  title, this, width, height, command);
105  }
Here is the call graph for this function:
Here is the caller graph for this function:

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