- tab help not shown
This commit is contained in:
parent
2c7d243929
commit
abf98bcc72
|
@ -72,6 +72,7 @@ public class ADButtonTabList extends Panel implements IADTabList, EventListener
|
||||||
for (int i = 0; i < items.length; i++) {
|
for (int i = 0; i < items.length; i++) {
|
||||||
ADTabLabel tabLabel = (ADTabLabel) items[i];
|
ADTabLabel tabLabel = (ADTabLabel) items[i];
|
||||||
Button button = new Button();
|
Button button = new Button();
|
||||||
|
button.setDynamicProperty("Title", tabLabel.description);
|
||||||
Text text = new Text(tabLabel.label);
|
Text text = new Text(tabLabel.label);
|
||||||
button.appendChild(text);
|
button.appendChild(text);
|
||||||
int s = tabbox.getSelectedIndex();
|
int s = tabbox.getSelectedIndex();
|
||||||
|
|
|
@ -47,11 +47,17 @@ public class ADTabListModel extends AbstractListModel implements ListitemRendere
|
||||||
public static class ADTabLabel {
|
public static class ADTabLabel {
|
||||||
public String label;
|
public String label;
|
||||||
public int tabLevel;
|
public int tabLevel;
|
||||||
|
public String description;
|
||||||
|
|
||||||
public ADTabLabel(String label, int tabLevel) {
|
public ADTabLabel(String label, int tabLevel) {
|
||||||
this.label = label;
|
this.label = label;
|
||||||
this.tabLevel = tabLevel;
|
this.tabLevel = tabLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ADTabLabel(String label, int tabLevel, String description) {
|
||||||
|
this(label,tabLevel);
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void render(Listitem item, Object data) throws Exception {
|
public void render(Listitem item, Object data) throws Exception {
|
||||||
|
|
|
@ -39,7 +39,8 @@ import org.zkoss.zul.Div;
|
||||||
public class CompositeADTab extends AbstractADTab
|
public class CompositeADTab extends AbstractADTab
|
||||||
{
|
{
|
||||||
/** Logger */
|
/** Logger */
|
||||||
private static CLogger log = CLogger.getCLogger (CompositeADTab.class);
|
@SuppressWarnings("unused")
|
||||||
|
private static CLogger log = CLogger.getCLogger (CompositeADTab.class);
|
||||||
|
|
||||||
private List<ADTabListModel.ADTabLabel> tabLabelList = new ArrayList<ADTabListModel.ADTabLabel>();
|
private List<ADTabListModel.ADTabLabel> tabLabelList = new ArrayList<ADTabListModel.ADTabLabel>();
|
||||||
|
|
||||||
|
@ -70,7 +71,7 @@ public class CompositeADTab extends AbstractADTab
|
||||||
tabPanel.setParent(div);
|
tabPanel.setParent(div);
|
||||||
tabPanel.setVisible(false);
|
tabPanel.setVisible(false);
|
||||||
|
|
||||||
ADTabListModel.ADTabLabel tabLabel = new ADTabListModel.ADTabLabel(gTab.getName(), gTab.getTabLevel());
|
ADTabListModel.ADTabLabel tabLabel = new ADTabListModel.ADTabLabel(gTab.getName(), gTab.getTabLevel(),gTab.getDescription());
|
||||||
tabLabelList.add(tabLabel);
|
tabLabelList.add(tabLabel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue