Difference between revisions of "TabMailExtension"
From OpenKM Documentation
(Created page with '== Methods == getTabText() set(GWTMail folder) setVisibleButtons(boolean visible) String getExtensionUUID() == getTabText == Used by OpenKM to get the tab text. == set(GWTM…') |
|||
(6 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(GWTMail mail) == | + | === set(GWTMail mail) === |
Any time there's some mail selected ( in browser ) is executed this method by OpenKM in order to refreshing mail tab panel information. | Any time there's some mail selected ( in browser ) is executed this method by OpenKM in order to refreshing mail 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 TabMailExample extends TabMailExtension { | public class TabMailExample extends TabMailExtension { | ||
− | |||
VerticalPanel vPanel; | VerticalPanel vPanel; | ||
Line 35: | Line 29: | ||
public void set(GWTMail mail) { | public void set(GWTMail mail) { | ||
// TODO Auto-generated method stub | // TODO Auto-generated method stub | ||
− | |||
} | } | ||
Line 43: | Line 36: | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
</source> | </source> | ||
− | [[Category: | + | [[Category: Extension Guide]] |
Latest revision as of 07:27, 24 September 2012
Methods
getTabText
Used by OpenKM to get the tab text.
set(GWTMail mail)
Any time there's some mail selected ( in browser ) is executed this method by OpenKM in order to refreshing mail tab panel information.
setVisibleButtons(visible)
Show or hide buttons ( for example in trash view normally edit button should not be visible ).
Example
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
}
}