Difference between revisions of "TabWorkspaceExtension"
From OpenKM Documentation
(Created page with '== Methods == getTabText() == getTabText == Used by OpenKM to get the tab text. == Example == <source lang="java"> public class TabWorkspaceExample extends TabWorkspaceExtens…') |
|||
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 the unique extension id | ||
== Example == | == Example == | ||
Line 27: | Line 30: | ||
public String getTabText() { | public String getTabText() { | ||
return "tab workspace"; | return "tab workspace"; | ||
+ | } | ||
+ | |||
+ | @Override | ||
+ | public String getExtensionUUID() { | ||
+ | return String.valueOf("44f94470-d097-11df-bd3b-0800200c9a66"); | ||
} | } | ||
} | } |
Revision as of 16:44, 5 October 2010
Methods
getTabText()
String getExtensionUUID()
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");
}
}