Difference between revisions of "TabDocumentComunicator"

From OpenKM Documentation
Jump to: navigation, search
(Created page with ' Methods available in TabDocumentComunicator int getSelectedTab() GWTDocument getDocument() addKeyword(String keyword) removeKeyword(String keyword) Collection<String> get…')
 
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
== Read Methods ==
 +
* int getSelectedTab()
 +
* GWTDocument getDocument()
 +
* Collection<String> getKeywords()
 +
* Collection<GWTNote> getNotes()
 +
* boolean isVisibleButton()
 +
* refreshPreviewDocument()
 +
* boolean isWidgetExtensionVisible(Widget widget)
  
Methods available in TabDocumentComunicator
+
== Write Methods ==
+
* addKeyword(String keyword)
int getSelectedTab()
+
* removeKeyword(String keyword)
GWTDocument getDocument()
+
* addCategory(GWTFolder category)
addKeyword(String keyword)
+
* removeCategory(String UUID)
removeKeyword(String keyword)
+
* setRefreshingStyle()
Collection<String> getKeywords()
+
* unsetRefreshingStyle()
Collection<GWTNote> getNotes()
 
  
[[Category: OpenKM plugin extensions]]
+
== Example ==
 +
<source lang="java">
 +
int selectedTab = TabDocumentComunicator.getSelectedTab();
 +
if (selectedTab==0) {
 +
  Window.alert("First tab enabled");
 +
} else {
 +
  Window.alert("Other tab");
 +
}
 +
</source>
 +
 
 +
[[Category: Extension Guide]]

Latest revision as of 16:54, 17 January 2012

Read Methods

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

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