Difference between revisions of "TabFolderExtension"
From OpenKM Documentation
(Created page with '== Methods == getTabText() set(GWTFolder folder) setVisibleButtons(boolean visible) == getTabText == Used by OpenKM to get the tab text. == set(GWTFolder folder) == Any ti…') |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Methods == | == Methods == | ||
− | + | === getTabText === | |
− | |||
− | |||
− | |||
− | |||
− | == getTabText == | ||
Used by OpenKM to get the tab text. | Used by OpenKM to get the tab text. | ||
− | + | === set(GWTFolder folder) === | |
− | == set(GWTFolder folder) == | ||
Any time there's some folder selected ( in tree or browser ) is executed this method by OpenKM in order to refreshing folder tab panel information. | Any time there's some folder selected ( in tree or browser ) is executed this method by OpenKM in order to refreshing folder tab panel information. | ||
+ | === setVisibleButtons(visible) === | ||
+ | Show or hide buttons ( for example in trash view normally edit button should not be visible ). | ||
== Example == | == Example == | ||
<source lang="java"> | <source lang="java"> | ||
public class TabFolderExample extends TabFolderExtension { | public class TabFolderExample extends TabFolderExtension { | ||
− | |||
VerticalPanel vPanel; | VerticalPanel vPanel; | ||
Line 32: | Line 27: | ||
@Override | @Override | ||
− | public void set(GWTFolder | + | public void set(GWTFolder folder) { |
// TODO Auto-generated method stub | // TODO Auto-generated method stub | ||
Line 41: | Line 36: | ||
// TODO Auto-generated method stub | // TODO Auto-generated method stub | ||
} | } | ||
+ | |||
} | } | ||
</source> | </source> | ||
− | [[Category: | + | [[Category: Extension Guide]] |
Latest revision as of 07:29, 24 September 2012
Contents
Methods
getTabText
Used by OpenKM to get the tab text.
set(GWTFolder folder)
Any time there's some folder selected ( in tree or browser ) is executed this method by OpenKM in order to refreshing folder tab panel information.
setVisibleButtons(visible)
Show or hide buttons ( for example in trash view normally edit button should not be visible ).
Example
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 folder) {
// TODO Auto-generated method stub
}
@Override
public void setVisibleButtons(boolean visible) {
// TODO Auto-generated method stub
}
}