Difference between revisions of "TabDocumentComunicator"
From OpenKM Documentation
Line 6: | Line 6: | ||
* boolean isVisibleButton() | * boolean isVisibleButton() | ||
* refreshPreviewDocument() | * refreshPreviewDocument() | ||
+ | * boolean isWidgetExtensionVisible(Widget widget) | ||
== Write Methods == | == Write Methods == |
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");
}