Difference between revisions of "WorkspaceComunicator"

From OpenKM Documentation
Jump to: navigation, search
Line 3: Line 3:
 
  changeSelectedTab(int selectedTab)
 
  changeSelectedTab(int selectedTab)
 
  int getSelectedWorkspace()
 
  int getSelectedWorkspace()
 
+
GWTWorkspace getWorkspace()
  
 
== Example ==
 
== Example ==

Revision as of 11:30, 27 November 2010

Read Methods

int getSelectedTab()
changeSelectedTab(int selectedTab)
int getSelectedWorkspace()
GWTWorkspace getWorkspace()

Example

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