TabRecord Extension

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

Methods

methodDescription

getTabText()

Used by OpenKM to get the tab text.

set(GWTRecord record)

Each time a record is selected (in the browser), OpenKM executes this method to refresh the record tab panel information.

setVisibleButtons(boolean visible)

Shows or hides buttons (for example, in the trash view the edit button is normally not visible).

 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.bean.GWTRecord;
import com.openkm.frontend.client.extension.widget.tabrecord.TabRecordExtension;

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
    }
}
Table of contents [ Hide Show ]