Difference between revisions of "TabDocumentComunicator"

From OpenKM Documentation
Jump to: navigation, search
Line 1: Line 1:
 
== Read Methods ==
 
== Read Methods ==
int getSelectedTab()
+
* int getSelectedTab()
GWTDocument getDocument()
+
* GWTDocument getDocument()
Collection<String> getKeywords()
+
* Collection<String> getKeywords()
Collection<GWTNote> getNotes()
+
* Collection<GWTNote> getNotes()
boolean isVisibleButton()
+
* boolean isVisibleButton()
  
 
== Write Methods ==
 
== Write Methods ==
addKeyword(String keyword)
+
* addKeyword(String keyword)
removeKeyword(String keyword)
+
* removeKeyword(String keyword)
addCategory(GWTFolder category)
+
* addCategory(GWTFolder category)
removeCategory(String UUID)
+
* removeCategory(String UUID)
setRefreshingStyle()
+
* setRefreshingStyle()
unsetRefreshingStyle()
+
* unsetRefreshingStyle()
  
 
== Example ==
 
== Example ==
Line 24: Line 24:
 
</source>
 
</source>
  
[[Category: OpenKM plugin extensions]]
+
[[Category: Extension Guide]]

Revision as of 14:37, 2 December 2010

Read Methods

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

Write Methods

  • addKeyword(String keyword)
  • removeKeyword(String keyword)
  • addCategory(GWTFolder category)
  • removeCategory(String UUID)
  • setRefreshingStyle()
  • unsetRefreshingStyle()

Example

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