◆ addRows()
void org.turro.hierarchy.HierarchyGrid.addRows |
( |
| ) |
|
|
protected |
Definition at line 51 of file HierarchyGrid.java.
53 rows.getChildren().clear();
55 breakdown =
new TreeMap<Hierarchical, Boolean>();
57 for(Hierarchical value : items) {
Rows getRows(boolean create)
void setRowCount(int rows)
◆ changeBreakdownState()
void org.turro.hierarchy.HierarchyGrid.changeBreakdownState |
( |
Hierarchical |
value | ) |
|
|
protected |
◆ getBreakdownImage()
String org.turro.hierarchy.HierarchyGrid.getBreakdownImage |
( |
Hierarchical |
value | ) |
|
|
protected |
Definition at line 125 of file HierarchyGrid.java.
127 return "/_zul/images/breakdown-open.png";
129 return "/_zul/images/breakdown-closed.png";
◆ getNameLayout()
Hlayout org.turro.hierarchy.HierarchyGrid.getNameLayout |
( |
final Hierarchical |
value | ) |
|
|
protected |
Definition at line 101 of file HierarchyGrid.java.
102 Hlayout hbox =
new Hlayout();
103 Space s =
new Space();
104 s.setWidth(getLevel(value) * 15 +
"px");
107 if(value.children() !=
null && !value.children().isEmpty()) {
108 Toolbarbutton bd =
new Toolbarbutton();
110 bd.addEventListener(Events.ON_CLICK,
new EventListener() {
112 public void onEvent(Event event)
throws Exception {
117 hbox.appendChild(bd);
void changeBreakdownState(Hierarchical value)
String getBreakdownImage(Hierarchical value)
◆ isShowBreakdown()
boolean org.turro.hierarchy.HierarchyGrid.isShowBreakdown |
( |
Hierarchical |
value | ) |
|
|
protected |
◆ isVisible()
boolean org.turro.hierarchy.HierarchyGrid.isVisible |
( |
Hierarchical |
value | ) |
|
|
protected |
Definition at line 141 of file HierarchyGrid.java.
142 Hierarchical tmp = (Hierarchical) value.parent();
147 tmp = (Hierarchical) tmp.parent();
◆ refreshRows()
void org.turro.hierarchy.HierarchyGrid.refreshRows |
( |
| ) |
|
|
protected |
Definition at line 89 of file HierarchyGrid.java.
90 for(Object row :
getRows().getChildren()) {
91 if(row instanceof Row) {
92 if(((Row) row).getValue() instanceof Hierarchical) {
93 ((Row) row).setVisible(
isVisible((Hierarchical) ((Row) row).getValue()));
94 ((Row) row).getChildren().clear();
95 refreshValue((Row) row, (Hierarchical) ((Row) row).getValue());
abstract void refreshValue(Row row, Hierarchical value)
boolean isVisible(Hierarchical value)
◆ refreshValue()
abstract void org.turro.hierarchy.HierarchyGrid.refreshValue |
( |
Row |
row, |
|
|
Hierarchical |
value |
|
) |
| |
|
abstractprotected |
◆ setCollection()
void org.turro.hierarchy.HierarchyGrid.setCollection |
( |
Collection< Hierarchical > |
items, |
|
|
int |
showBreakdownLevel |
|
) |
| |
The documentation for this class was generated from the following file: