Difference between revisions of "TabDocumentComunicator"

From OpenKM Documentation
Jump to: navigation, search
Line 11: Line 11:
 
  addCategory(GWTFolder category)
 
  addCategory(GWTFolder category)
 
  removeCategory(String UUID)
 
  removeCategory(String UUID)
 +
 +
 +
== Example ==
 +
<source lang="java">
 +
int selectedTab = TabDocumentComunicator.getSelectedTab();
 +
if (selectedTab==0) {
 +
  Window.alert("First tab enabled");
 +
} else {
 +
Window.alert("Other tab than first");
 +
}
 +
</source>
  
 
[[Category: OpenKM plugin extensions]]
 
[[Category: OpenKM plugin extensions]]

Revision as of 15:37, 2 June 2010

Read Methods

int getSelectedTab()
GWTDocument getDocument()
Collection<String> getKeywords()
Collection<GWTNote> getNotes()

Write Methods

addKeyword(String keyword)
removeKeyword(String keyword)
addCategory(GWTFolder category)
removeCategory(String UUID)


Example

int selectedTab = TabDocumentComunicator.getSelectedTab();
if (selectedTab==0) {
  Window.alert("First tab enabled");
} else {
Window.alert("Other tab than first");
}