Skip to content
Other versions

Loading…

TabDocumentComunicator

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