Difference between revisions of "TabDocumentExtension"

From OpenKM Documentation
Jump to: navigation, search
Line 1: Line 1:
 
== Methods ==
 
== Methods ==
 
  getTabText()
 
  getTabText()
set(GWTDocument doc)
 
setVisibleButtons(boolean visible)
 
  
  
 
== getTabText ==
 
== getTabText ==
 
Used by OpenKM to get the tab text.
 
Used by OpenKM to get the tab text.
 
 
== set(GWTDocument doc) ==
 
Any time there's some document selected ( changed in browser ) is executed this method by OpenKM in order to refreshing tab document panel information.
 
 
 
== setVisibleButtons(boolean visible) ==
 
Some buttons might not be visible, for example in trash view.
 
  
  

Revision as of 16:17, 14 June 2010

Methods

getTabText()


getTabText

Used by OpenKM to get the tab text.


Example

public class TabDocumentExample extends TabDocumentExtension {
	
	VerticalPanel vPanel;
        String tabText = "Tab example";
	
	public TabDocumentExample() {
		HTML html = new HTML("Content tab example");
		vPanel = new VerticalPanel();
		vPanel.add(html);
		
		initWidget(vPanel);
	}

	@Override
	public String getTabText() {
		return tabText;
	}
}