Difference between revisions of "TabWorkspaceExtension"
From OpenKM Documentation
(→Example) |
(→Methods) |
||
Line 2: | Line 2: | ||
=== getTabText === | === getTabText === | ||
Used by OpenKM to get the tab text. | Used by OpenKM to get the tab text. | ||
+ | |||
+ | === setTab(TabBar tabBar, int tabIndex) === | ||
+ | Used by openkm to set tabBar and tab index. | ||
=== getExtensionUUID() === | === getExtensionUUID() === |
Revision as of 16:07, 8 October 2013
Contents
Methods
getTabText
Used by OpenKM to get the tab text.
setTab(TabBar tabBar, int tabIndex)
Used by openkm to set tabBar and tab index.
getExtensionUUID()
Return the unique extension id
Example
public class TabWorkspaceExample extends TabWorkspaceExtension {
private VerticalPanel vPanel;
/**
* TabWorkspaceExample
*/
public TabWorkspaceExample() {
vPanel = new VerticalPanel();
vPanel.add(new HTML("new workspace example"));
vPanel.setStyleName("okm-Input");
initWidget(vPanel);
}
@Override
public String getTabText() {
return "tab workspace";
}
@Override
public void setTab(TabBar tabBar, int tabIndex) {
}
@Override
public String getExtensionUUID() {
return String.valueOf("44f94470-d097-11df-bd3b-0800200c9a66");
}
}