TabDocument Extension

Add a new tab at bottom right  ( usually there are shown properties, notes, security, history, and preview tabs ) in the document tab section.

Methods

methodDescription

getTabText()

Used by OpenKM to get the tab text.

set(GWTDocument doc)

Each time there's some document selected ( in browser ) is executed this method by OpenKM to refreshing document tab panel information.  

setVisibleButtons(boolean visible)

Shows or hides buttons ( for example in trash view usually edit button should not be visible ).

Basic sample

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;
	}
 
}