TabRecord Extension

Adds a new tab at bottom right  ( usually there are shown properties, notes and security tabs ) in record tab section.

Methods

methodDescription

getTabText()

Used by OpenKM to get the tab text.

set(GWTRecord record)

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

setVisibleButtons(boolean visible)

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

 Sample

public class TabRecordExample extends TabRecordExtension {
	VerticalPanel vPanel;
 
	public TabRecordExample() {
		vPanel = new VerticalPanel();
		vPanel.add(new HTML("hello world"));
 
		initWidget(vPanel);
	}
 
	@Override
	public String getTabText() {
		return "New folder tab";
	}
 
	@Override
	public void set(GWTRecord record) {
		// TODO Auto-generated method stub
	}
 
	@Override
	public void setVisibleButtons(boolean visible) {
		// TODO Auto-generated method stub
	}
}