Difference between revisions of "WorkspaceComunicator"

From OpenKM Documentation
Jump to: navigation, search
 
Line 5: Line 5:
 
* GWTWorkspace getWorkspace()
 
* GWTWorkspace getWorkspace()
 
* getTabExtensionIndex(TabWorkspaceExtension widget)
 
* getTabExtensionIndex(TabWorkspaceExtension widget)
 +
* String getAppVersion()
  
 
== Example ==
 
== Example ==

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");
}