TabMail Extension
Adds a new tab at bottom right ( usually there are shown properties, notes, security and preview tabs ) in mail tab section.
Methods
method | Description |
---|---|
getTabText() |
Used by OpenKM to get the tab text. |
set(GWTMail mail) |
Each time there's a mail selected ( in a browser ) it is executed this method by OpenKM to refresh mail tab panel information. |
setVisibleButtons(boolean visible) |
Shows or hide buttons ( for example in trash view usually edit button should not be 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.GWTMail;
import com.openkm.frontend.client.extension.widget.tabmail.TabMailExtension;
public class TabMailExample extends TabMailExtension {
VerticalPanel vPanel;
public TabMailExample() {
vPanel = new VerticalPanel();
vPanel.add(new HTML("hello world"));
initWidget(vPanel);
}
@Override
public String getTabText() {
return "New folder tab";
}
@Override
public void set(GWTMail mail) {
// TODO Auto-generated method stub
}
@Override
public void setVisibleButtons(boolean visible) {
// TODO Auto-generated method stub
}
}