TabDocumentComunicator

Use to retrieve tab document data.

Methods

methodreturntypeDescription

getSelectedTab()

int

read

Get the selected tab id.

getDocument()

GWTDocument

read Retrieve the GWT Document object from selected document of the user interface.

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.

getKeywords()

Collection<String>

read Retrieve a list of keywords from selected document of the user interface.

getNotes()

Collection<GWTNote>

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.

setRefreshingStyle()

void

write Change panel style to refreshing value.

unsetRefreshingStyle()

 void write Change panel style to default value.

refreshPreviewDocument()

void

read Force refreshing preview tab.

isWidgetExtensionVisible(Widget widget)

boolean

read Return true when the widget is visible in document tabs.

Sample

int selectedTab = TabDocumentComunicator.getSelectedTab();
if (selectedTab==0) {
  Window.alert("First tab enabled");
} else {
  Window.alert("Other tab");
}
Table of contents [ Hide Show ]