TabFolder Communicator

Used to retrieve tab folder data.

Methods

methodreturntypeDescription

getSelectedTab()

int

read

Gets the selected tab ID.

getFolder()

GWTFolder

read Retrieves the GWT folder object from the selected folder of the user interface.
isVisibleButton()

boolean

read Returns true when buttons are enabled on this view.

addKeyword(String keyword)

void write Adds a keyword to the selected folder of the user interface.

removeKeyword(String keyword)

void write Deletes a keyword from the selected folder of the user interface.

addCategory(GWTFolder category)

void write Adds a category to the selected folder of the user interface.

removeCategory(String uuid)

void write Deletes a category from the selected folder of the user interface.

getKeywords()

Collection<String>

read Retrieves a list of keywords from the selected folder of the user interface. 
 

getNotes()

Collection<GWTNote>

read Retrieves a list of notes from the selected folder of the user interface.

isWidgetExtensionVisible(Widget widget)

boolean

read Returns true when the widget is visible in folder tabs.

Sample

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