Difference between revisions of "TabDocumentComunicator"

From OpenKM Documentation
Jump to: navigation, search
Line 5: Line 5:
 
* Collection<GWTNote> getNotes()
 
* Collection<GWTNote> getNotes()
 
* boolean isVisibleButton()
 
* boolean isVisibleButton()
 +
* refreshPreviewDocument()
  
 
== Write Methods ==
 
== Write Methods ==

Revision as of 15:20, 30 August 2011

Read Methods

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

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