Difference between revisions of "TabDocumentExtension"
From OpenKM Documentation
Line 36: | Line 36: | ||
public String getTabText() { | public String getTabText() { | ||
return tabText; | return tabText; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 56: | Line 47: | ||
// TODO Auto-generated method stub | // TODO Auto-generated method stub | ||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
} | } |
Revision as of 12:43, 3 June 2010
Contents
Methods
getTabText() set(GWTDocument doc) setVisibleButtons(boolean visible)
getTabText
Used by OpenKM to get the tab text.
set(GWTDocument doc)
Any time there's some document selected ( changed in browser ) executed this method by OpenKM in order to refreshing document panel information.
setVisibleButtons(boolean visible)
Some buttons might not be visible, for example in trash view.
Example
public class TabDocumentExample extends TabDocumentExtension {
VerticalPanel vPanel;
String lang = "en-GB";
String tabText = "Tab example";
public TabDocumentExample() {
HTML html = new HTML("Content tab example");
vPanel = new VerticalPanel();
vPanel.add(html);
initWidget(vPanel);
}
@Override
public String getTabText() {
return tabText;
}
@Override
public void set(GWTDocument doc) {
// TODO Auto-generated method stub
}
@Override
public void setVisibleButtons(boolean visible) {
// TODO Auto-generated method stub
}
}