Difference between revisions of "TabWorkspaceExtension"
From OpenKM Documentation
Line 1: | Line 1: | ||
+ | {{TOCright}} __TOC__ | ||
+ | |||
== Methods == | == Methods == | ||
− | + | === getTabText === | |
− | |||
− | |||
− | == getTabText == | ||
Used by OpenKM to get the tab text. | Used by OpenKM to get the tab text. | ||
− | == getExtensionUUID() == | + | === getExtensionUUID() === |
Return the unique extension id | Return the unique extension id | ||
Line 12: | Line 11: | ||
<source lang="java"> | <source lang="java"> | ||
public class TabWorkspaceExample extends TabWorkspaceExtension { | public class TabWorkspaceExample extends TabWorkspaceExtension { | ||
− | |||
private VerticalPanel vPanel; | private VerticalPanel vPanel; | ||
Line 39: | Line 37: | ||
</source> | </source> | ||
− | [[Category: | + | [[Category: Extension Guide]] |
Revision as of 13:20, 2 December 2010
Methods
getTabText
Used by OpenKM to get the tab text.
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 String getExtensionUUID() {
return String.valueOf("44f94470-d097-11df-bd3b-0800200c9a66");
}
}