Skip to content
Other versions

Loading…

TabDocumentExtension

method Description
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 ).
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;
}
}