Difference between revisions of "TabDocumentExtension"
From OpenKM Documentation
Line 1: | Line 1: | ||
== Methods == | == Methods == | ||
getTabText() | getTabText() | ||
− | + | String getExtensionUUID() | |
== getTabText == | == getTabText == | ||
Used by OpenKM to get the tab text. | Used by OpenKM to get the tab text. | ||
+ | == getExtensionUUID() == | ||
+ | Return unique extension id | ||
== Example == | == Example == | ||
Line 26: | Line 28: | ||
return tabText; | return tabText; | ||
} | } | ||
+ | |||
+ | @Override | ||
+ | public String getExtensionUUID() { | ||
+ | return String.valueOf("d9dab640-d098-11df-bd3b-0800200c9a66"); | ||
+ | } | ||
} | } | ||
</source> | </source> | ||
[[Category: OpenKM plugin extensions]] | [[Category: OpenKM plugin extensions]] |
Revision as of 16:59, 5 October 2010
Methods
getTabText() String getExtensionUUID()
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");
}
}