TabDocumentComunicator
Methods
Section titled “Methods”| method | return | type | Description |
|---|---|---|---|
| getSelectedTab() | int | read | Get the selected tab id. |
| getDocument() | GWTDocument | read | Retrieve the GWT Document object from selected document of the user interface. |
| getKeywords() | Collection |
read | Retrieve a list of keywords from selected document of the user interface. |
| Collection |
getNotes() | read | Retrieve a list of notes from selected document of the user interface. |
| isVisibleButton() | boolean | read | Return true when buttons are enabled on this view. |
| refreshPreviewDocument() | void | read | Force refreshing preview tab. |
| isWidgetExtensionVisible(Widget widget) | boolean | read | Return true when the widget is visible in document tabs. |
| addKeyword(String keyword) | void | write | Add a keyword to the selected document of the user interface. |
| removeKeyword(String keyword) | void | write | Delete a keyword to the selected document of the user interface. |
| addCategory(GWTFolder category) | void | write | Add a category to the selected document of the user interface. |
| removeCategory(String uuid) | void | write | Delete a category to the selected document of the user interface. |
| setRefreshingStyle() | void | write | Change panel style to refreshing value. |
| unsetRefreshingStyle() | void | write | Change panel style to default value. |
Sample
Section titled “Sample”int selectedTab = TabDocumentComunicator.getSelectedTab();if (selectedTab==0) { Window.alert("First tab enabled");} else { Window.alert("Other tab");}