Difference between revisions of "TabDocumentExtension"
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 unique extension id | Return unique extension id | ||
Line 12: | Line 11: | ||
<source lang="java"> | <source lang="java"> | ||
public class TabDocumentExample extends TabDocumentExtension { | public class TabDocumentExample extends TabDocumentExtension { | ||
− | |||
VerticalPanel vPanel; | VerticalPanel vPanel; | ||
String tabText = "Tab example"; | String tabText = "Tab example"; | ||
Line 36: | Line 34: | ||
</source> | </source> | ||
− | [[Category: | + | [[Category: Extension Guide]] |
Revision as of 13:21, 2 December 2010
Methods
getTabText
Used by OpenKM to get the tab text.
getExtensionUUID()
Return unique extension id
Example
public class TabDocumentExample extends TabDocumentExtension {
VerticalPanel vPanel;
String tabText = "Tab example";
public TabDocumentExample() {
HTML html = new HTML("Content tab example");
vPanel = new VerticalPanel();
vPanel.add(html);
initWidget(vPanel);
}
@Override
public String getTabText() {
return tabText;
}
@Override
public String getExtensionUUID() {
return String.valueOf("d9dab640-d098-11df-bd3b-0800200c9a66");
}
}