- 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++) {
|
||||
ADTabLabel tabLabel = (ADTabLabel) items[i];
|
||||
Button button = new Button();
|
||||
button.setDynamicProperty("Title", tabLabel.description);
|
||||
Text text = new Text(tabLabel.label);
|
||||
button.appendChild(text);
|
||||
int s = tabbox.getSelectedIndex();
|
||||
|
|
|
@ -47,11 +47,17 @@ public class ADTabListModel extends AbstractListModel implements ListitemRendere
|
|||
public static class ADTabLabel {
|
||||
public String label;
|
||||
public int tabLevel;
|
||||
public String description;
|
||||
|
||||
public ADTabLabel(String label, int tabLevel) {
|
||||
this.label = label;
|
||||
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 {
|
||||
|
|
|
@ -39,6 +39,7 @@ import org.zkoss.zul.Div;
|
|||
public class CompositeADTab extends AbstractADTab
|
||||
{
|
||||
/** Logger */
|
||||
@SuppressWarnings("unused")
|
||||
private static CLogger log = CLogger.getCLogger (CompositeADTab.class);
|
||||
|
||||
private List<ADTabListModel.ADTabLabel> tabLabelList = new ArrayList<ADTabListModel.ADTabLabel>();
|
||||
|
@ -70,7 +71,7 @@ public class CompositeADTab extends AbstractADTab
|
|||
tabPanel.setParent(div);
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue