- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 32 of file ContainerTab.java.
◆ ContainerTab()
org.turro.zul.frame.ContainerTab.ContainerTab |
( |
| ) |
|
◆ addContent() [1/3]
void org.turro.zul.frame.ContainerTab.addContent |
( |
PortalContainer |
container | ) |
|
Definition at line 79 of file ContainerTab.java.
80 Tab tab =
new Tab(container.getLabel());
81 tab.setClosable(
true);
82 tabs.appendChild(tab);
83 Tabpanel panel =
new Tabpanel();
84 panel.setSclass(
"bbcontpanel");
85 panels.appendChild(panel);
88 panel.appendChild(
new Toolbar());
89 panel.appendChild(container);
90 setSelectedPanel(panel);
91 selections.push(panel);
92 container.afterCompose();
93 tab.addEventListener(Events.ON_CLOSE,
new EventListener() {
95 public void onEvent(Event event)
throws Exception {
96 Tabpanel panel = ((Tab) event.getTarget()).getLinkedPanel();
97 selections.remove(panel);
◆ addContent() [2/3]
void org.turro.zul.frame.ContainerTab.addContent |
( |
String |
label, |
|
|
String |
src |
|
) |
| |
◆ addContent() [3/3]
void org.turro.zul.frame.ContainerTab.addContent |
( |
String |
label, |
|
|
String |
src, |
|
|
Map< String, Object > |
dynProps |
|
) |
| |
Definition at line 48 of file ContainerTab.java.
49 Tab tab =
new Tab(label);
50 tab.setClosable(
true);
51 tabs.appendChild(tab);
52 Tabpanel panel =
new Tabpanel();
53 panel.setSclass(
"bbcontpanel");
54 panels.appendChild(panel);
55 Include inc =
new Include(src);
57 inc.setHeight(
"100%");
59 if(dynProps !=
null) {
60 for(Map.Entry<String, Object> entry : dynProps.entrySet()) {
61 if(entry.getValue() !=
null) {
62 inc.setDynamicProperty(entry.getKey(), entry.getValue());
66 panel.appendChild(inc);
67 setSelectedPanel(panel);
68 selections.push(panel);
69 tab.addEventListener(Events.ON_CLOSE,
new EventListener() {
71 public void onEvent(Event event)
throws Exception {
72 Tabpanel panel = ((Tab) event.getTarget()).getLinkedPanel();
73 selections.remove(panel);
◆ closeSelected()
void org.turro.zul.frame.ContainerTab.closeSelected |
( |
| ) |
|
Definition at line 110 of file ContainerTab.java.
111 Tabpanel panel = getSelectedPanel();
113 Tab tab = panel.getLinkedTab();
114 tabs.removeChild(tab);
115 panels.removeChild(panel);
116 selections.remove(panel);
118 selectDefaultPanel();
◆ invalidateSelected()
void org.turro.zul.frame.ContainerTab.invalidateSelected |
( |
| ) |
|
Definition at line 103 of file ContainerTab.java.
104 Tabpanel panel = getSelectedPanel();
106 panel.getFirstChild().invalidate();
◆ setSelectedLabel()
void org.turro.zul.frame.ContainerTab.setSelectedLabel |
( |
String |
text | ) |
|
Definition at line 121 of file ContainerTab.java.
122 Tabpanel panel = getSelectedPanel();
124 Tab tab = panel.getLinkedTab();
◆ setSelectedTooltiptext()
void org.turro.zul.frame.ContainerTab.setSelectedTooltiptext |
( |
String |
text | ) |
|
Definition at line 129 of file ContainerTab.java.
130 Tabpanel panel = getSelectedPanel();
132 Tab tab = panel.getLinkedTab();
133 tab.setTooltiptext(text);
The documentation for this class was generated from the following file: