- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 46 of file PagingGrid.java.
◆ addDetailColumn() [1/2]
void org.turro.zkoss.grid.PagingGrid.addDetailColumn |
( |
| ) |
|
◆ addDetailColumn() [2/2]
void org.turro.zkoss.grid.PagingGrid.addDetailColumn |
( |
HtmlBasedComponent |
caption | ) |
|
Definition at line 189 of file PagingGrid.java.
190 Column c =
new Column();
192 if(caption !=
null) {
193 c.appendChild(caption);
Columns getColumns(boolean create)
◆ clearColumns()
void org.turro.zkoss.grid.PagingGrid.clearColumns |
( |
| ) |
|
◆ clearEmptyGroups()
void org.turro.zkoss.grid.PagingGrid.clearEmptyGroups |
( |
| ) |
|
Definition at line 220 of file PagingGrid.java.
223 Iterator<Component> it = (Iterator<Component>) rows.getChildren().iterator();
224 while(it.hasNext()) {
225 Row row = (Row) it.next();
226 if(row instanceof Group) {
227 Group group = (Group) row;
228 if(group.getItemCount() == 0) {
Rows getRows(boolean create)
◆ clearRows()
void org.turro.zkoss.grid.PagingGrid.clearRows |
( |
| ) |
|
◆ createFoot()
Foot org.turro.zkoss.grid.PagingGrid.createFoot |
( |
| ) |
|
◆ exportToPdf()
void org.turro.zkoss.grid.PagingGrid.exportToPdf |
( |
| ) |
|
Definition at line 275 of file PagingGrid.java.
277 ByteArrayOutputStream out =
new ByteArrayOutputStream();
278 PdfExporter exporter =
new PdfExporter();
279 exporter.export(
this, out);
280 AMedia amedia =
new AMedia(
"GridReport.pdf",
"pdf",
"application/pdf", out.toByteArray());
281 Filedownload.save(amedia);
283 }
catch (Exception ex) {
284 Logger.getLogger(PagingGrid.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ getColumns()
Columns org.turro.zkoss.grid.PagingGrid.getColumns |
( |
boolean |
create | ) |
|
Definition at line 236 of file PagingGrid.java.
237 Columns cols = super.getColumns();
238 if(create && cols ==
null) {
239 cols =
new Columns();
240 cols.setSizable(
true);
◆ getFoot()
Foot org.turro.zkoss.grid.PagingGrid.getFoot |
( |
boolean |
create | ) |
|
◆ getMaxResults()
int org.turro.zkoss.grid.PagingGrid.getMaxResults |
( |
| ) |
|
◆ getPagingMold()
String org.turro.zkoss.grid.PagingGrid.getPagingMold |
( |
| ) |
|
◆ getRefineValue()
String org.turro.zkoss.grid.PagingGrid.getRefineValue |
( |
| ) |
|
◆ getRowCount()
int org.turro.zkoss.grid.PagingGrid.getRowCount |
( |
| ) |
|
◆ getRows()
Rows org.turro.zkoss.grid.PagingGrid.getRows |
( |
boolean |
create | ) |
|
◆ getVarColumns()
String org.turro.zkoss.grid.PagingGrid.getVarColumns |
( |
| ) |
|
◆ getVarColumnsList()
Collection<String> org.turro.zkoss.grid.PagingGrid.getVarColumnsList |
( |
String |
defaultCols | ) |
|
Definition at line 178 of file PagingGrid.java.
179 return varColumns ==
null ?
180 (defaultCols ==
null ?
new ArrayList<String>() :
181 Arrays.asList(defaultCols.split(
"\\s*\\,\\s*"))) :
182 Arrays.asList(varColumns.split(
"\\s*\\,\\s*"));
◆ isDefaultBehavior()
boolean org.turro.zkoss.grid.PagingGrid.isDefaultBehavior |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.zkoss.grid.PagingGrid.isEmpty |
( |
| ) |
|
◆ isHeadersVisible()
boolean org.turro.zkoss.grid.PagingGrid.isHeadersVisible |
( |
| ) |
|
◆ openDetails()
void org.turro.zkoss.grid.PagingGrid.openDetails |
( |
| ) |
|
Definition at line 198 of file PagingGrid.java.
199 for(Component row :
getRows().getChildren()) {
200 Detail d = ((Row)row).getDetailChild();
203 Events.postEvent(
new Event(Events.ON_OPEN, d));
◆ refine()
void org.turro.zkoss.grid.PagingGrid.refine |
( |
| ) |
|
Definition at line 81 of file PagingGrid.java.
84 I_.get(
"Refine search"),
86 new InputField(
"Text", refineValue, null, 0)
89 public Object execute(Context context) {
90 InputField[] fields = (InputField[]) context.get(
"fields");
91 if(fields.length > 0) {
92 for(InputField f : fields) {
93 if(
"Text".equals(f.getLabel())) {
void setRefineValue(String value)
◆ setColumns() [1/2]
void org.turro.zkoss.grid.PagingGrid.setColumns |
( |
int |
columns | ) |
|
Definition at line 53 of file PagingGrid.java.
55 Columns cols =
new Columns();
56 for(
int i = 0; i < columns; i++) {
57 Column col =
new Column();
59 cols.appendChild(col);
◆ setColumns() [2/2]
void org.turro.zkoss.grid.PagingGrid.setColumns |
( |
String |
hflexs | ) |
|
Definition at line 64 of file PagingGrid.java.
66 String hfs[] = hflexs.split(
",");
67 Columns cols =
new Columns();
68 for(
int i = 0; i < hfs.length; i++) {
69 Column col =
new Column();
70 if(hfs[i].startsWith(
"right-")) {
71 col.setAlign(
"right");
72 col.setHflex(hfs[i].substring(6));
76 cols.appendChild(col);
◆ setDefaultBehavior()
void org.turro.zkoss.grid.PagingGrid.setDefaultBehavior |
( |
boolean |
defaultBehavior | ) |
|
Definition at line 107 of file PagingGrid.java.
108 this.defaultBehavior = defaultBehavior;
◆ setHeadersVisible()
void org.turro.zkoss.grid.PagingGrid.setHeadersVisible |
( |
boolean |
value | ) |
|
◆ setMaxResults()
void org.turro.zkoss.grid.PagingGrid.setMaxResults |
( |
int |
maxResults | ) |
|
◆ setPagingMold()
void org.turro.zkoss.grid.PagingGrid.setPagingMold |
( |
String |
pagingMold | ) |
|
◆ setRefineValue()
void org.turro.zkoss.grid.PagingGrid.setRefineValue |
( |
String |
value | ) |
|
◆ setRowCount()
void org.turro.zkoss.grid.PagingGrid.setRowCount |
( |
int |
rows | ) |
|
Definition at line 141 of file PagingGrid.java.
142 if(defaultBehavior) {
144 if(rows > maxResults) {
148 setPagingPosition(
"bottom");
149 getPagingChild().setMold(pagingMold);
152 setAutopaging(
false);
156 setPageSize((
int) (maxResults * 0.80));
157 setPagingPosition(
"both");
158 getPagingChild().setMold(pagingMold);
◆ setVarColumns()
void org.turro.zkoss.grid.PagingGrid.setVarColumns |
( |
String |
varColumns | ) |
|
The documentation for this class was generated from the following file: