Difference between revisions of "WorkspaceComunicator"

From OpenKM Documentation
Jump to: navigation, search
(Created page with '== Read Methods == int getSelectedTab() == Example == <source lang="java"> int tab = WorkspaceComunicator.getSelectedTab(); if (tab==0) { Window.alert("First tab enabled"); }…')
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Read Methods ==
 
== Read Methods ==
int getSelectedTab()
+
* int getSelectedTab()
 
+
* changeSelectedTab(int selectedTab)
 +
* int getSelectedWorkspace()
 +
* GWTWorkspace getWorkspace()
 +
* getTabExtensionIndex(TabWorkspaceExtension widget)
 +
* String getAppVersion()
  
 
== Example ==
 
== Example ==
Line 13: Line 17:
 
</source>
 
</source>
  
 
+
[[Category: Extension Guide]]
[[Category: OpenKM plugin extensions]]
 

Latest revision as of 16:55, 8 December 2011

Read Methods

  • int getSelectedTab()
  • changeSelectedTab(int selectedTab)
  • int getSelectedWorkspace()
  • GWTWorkspace getWorkspace()
  • getTabExtensionIndex(TabWorkspaceExtension widget)
  • String getAppVersion()

Example

int tab = WorkspaceComunicator.getSelectedTab();
if (tab==0) {
  Window.alert("First tab enabled");
} else {
  Window.alert("Other stack");
}