TabDocument Extension

Add a new tab at the bottom right (usually there are properties, notes, security, history, and preview tabs shown) 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";
    }
}
Table of contents [ Hide Show ]