Difference between revisions of "TabRecordExtension"
From OpenKM Documentation
(Created page with '== Methods == === getTabText === Used by OpenKM to get the tab text. === set(GWTRecord record) === Any time there's some record selected ( in browser ) is executed this method b…') |
|||
Line 5: | Line 5: | ||
=== set(GWTRecord record) === | === set(GWTRecord record) === | ||
Any time there's some record selected ( in browser ) is executed this method by OpenKM in order to refreshing record tab panel information. | Any time there's some record selected ( in browser ) is executed this method by OpenKM in order to refreshing record tab panel information. | ||
− | |||
=== setVisibleButtons(visible) === | === setVisibleButtons(visible) === |
Revision as of 07:27, 24 September 2012
Contents
Methods
getTabText
Used by OpenKM to get the tab text.
set(GWTRecord record)
Any time there's some record selected ( in browser ) is executed this method by OpenKM in order to refreshing record tab panel information.
setVisibleButtons(visible)
Show or hide buttons ( for example in trash view normally edit button should not be visible ).
Example
public class TabRecordExample extends TabRecordExtension {
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(GWTRecord record) {
// TODO Auto-generated method stub
}
@Override
public void setVisibleButtons(boolean visible) {
// TODO Auto-generated method stub
}
}