TabFolderExtension

Add a new tab at the bottom right  (usually the Properties, Notes and Security tabs are shown) in the folder tab section.

Methods

methodDescription

getTabText()

Used by OpenKM to get the tab text.

set(GWTFolder folder)

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

setVisibleButtons(boolean visible)

Show or hide buttons (for example, in the trash view the edit button is usually 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.GWTFolder;
import com.openkm.frontend.client.extension.widget.tabfolder.TabFolderExtension;

public class TabFolderExample extends TabFolderExtension {

    VerticalPanel vPanel;

    public TabFolderExample() {
        vPanel = new VerticalPanel();
        vPanel.add(new HTML("hello world"));

        initWidget(vPanel);
    }

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

    @Override
    public void set(GWTFolder doc) {
    }

    @Override
    public void setVisibleButtons(boolean visible) {
    }
}
Table of contents [ Hide Show ]