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.

Basic sample

package com.openkm.extension.frontend.client;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.openkm.frontend.client.extension.widget.tabdocument.TabDocumentExtension;

public class TabDocumentExample extends TabDocumentExtension {

    VerticalPanel vPanel;

    public TabDocumentExample() {
        vPanel = new VerticalPanel();
        vPanel.add(new HTML("Content tab example"));

        initWidget(vPanel);
    }

    @Override
    public String getTabText() {
        return "New document tab";
    }
}