BrightSide Workbench Full Report + Source Code
org.turro.zul.convocation.AttendeesGrid Class Reference
Inheritance diagram for org.turro.zul.convocation.AttendeesGrid:
Collaboration diagram for org.turro.zul.convocation.AttendeesGrid:

Public Member Functions

void setConvocation (Convocation convocation)
 
void addAttendeesByEntity (boolean deep)
 
void addContact (Contact contact)
 
void addContacts ()
 
void pasteContacts ()
 
void refresh ()
 
- Public Member Functions inherited from org.turro.zkoss.grid.PagingGrid
void setColumns (int columns)
 
void setColumns (String hflexs)
 
void refine ()
 
boolean isDefaultBehavior ()
 
void setDefaultBehavior (boolean defaultBehavior)
 
String getRefineValue ()
 
void setRefineValue (String value)
 
int getMaxResults ()
 
void setMaxResults (int maxResults)
 
String getPagingMold ()
 
void setPagingMold (String pagingMold)
 
int getRowCount ()
 
void setRowCount (int rows)
 
void setHeadersVisible (boolean value)
 
boolean isHeadersVisible ()
 
String getVarColumns ()
 
void setVarColumns (String varColumns)
 
Collection< String > getVarColumnsList (String defaultCols)
 
void addDetailColumn ()
 
void addDetailColumn (HtmlBasedComponent caption)
 
void openDetails ()
 
boolean isEmpty ()
 
void clearColumns ()
 
void clearRows ()
 
void clearEmptyGroups ()
 
Columns getColumns (boolean create)
 
Rows getRows (boolean create)
 
Foot getFoot (boolean create)
 
Foot createFoot ()
 
void exportToPdf ()
 

Detailed Description

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

Definition at line 58 of file AttendeesGrid.java.

Member Function Documentation

◆ addAttendeesByEntity()

void org.turro.zul.convocation.AttendeesGrid.addAttendeesByEntity ( boolean  deep)

Definition at line 68 of file AttendeesGrid.java.

68  {
69  convocation.addAttendeesByEntity(deep);
70  addRows();
71  Events.postEvent(new Event(Events.ON_CHANGE));
72  }
void addAttendeesByEntity(boolean deep)
Here is the call graph for this function:

◆ addContact()

void org.turro.zul.convocation.AttendeesGrid.addContact ( Contact  contact)

Definition at line 74 of file AttendeesGrid.java.

74  {
75  if(contact != null) {
76  convocation.addContact(contact);
77  addRows();
78  Events.postEvent(new Event(Events.ON_CHANGE));
79  }
80  }
void addContact(Contact contact)
Here is the call graph for this function:

◆ addContacts()

void org.turro.zul.convocation.AttendeesGrid.addContacts ( )

Definition at line 82 of file AttendeesGrid.java.

82  {
83  final GenericFilterListbox<Contact> contacts = new GenericFilterListbox<>(
84  new ContactFilter(), new ContactFilterGrid(), new ContactListbox());
85 
86  contacts.show(I_.get("Contacts"), "800px", "600px", new Command() {
87  @Override
88  public Object execute(Context context) {
89  if(contacts != null) {
90  for(Contact contact : contacts.getObjectValues()) {
91  convocation.addContact(contact);
92  }
93  refresh();
94  Events.postEvent(new Event(Events.ON_CHANGE));
95  }
96  return null;
97  }
98  });
99  }
Here is the call graph for this function:

◆ pasteContacts()

void org.turro.zul.convocation.AttendeesGrid.pasteContacts ( )

Definition at line 101 of file AttendeesGrid.java.

101  {
102  List<Contact> contacts = (List<Contact>) Framework.getClipboard().get("bbf_clip_contact");
103  if(contacts != null) {
104  for(Contact contact : contacts) {
105  Connector email = contact.getConnectorMap().get(IUser.CONNECTOR_EMAIL);
106  if(email != null && !Strings.isBlank(email.getValue())) {
107  convocation.addContact(contact);
108  }
109  }
110  Framework.getClipboard().remove("bbf_clip_contact");
111  addRows();
112  }
113  }
Here is the call graph for this function:

◆ refresh()

void org.turro.zul.convocation.AttendeesGrid.refresh ( )

Definition at line 115 of file AttendeesGrid.java.

115  {
116  addRows();
117  }
Here is the caller graph for this function:

◆ setConvocation()

void org.turro.zul.convocation.AttendeesGrid.setConvocation ( Convocation  convocation)

Definition at line 62 of file AttendeesGrid.java.

62  {
63  this.convocation = convocation;
64  addColumns();
65  addRows();
66  }

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