ToolBarButton Extension
Adds a new toolbar icon. Usually toolbar icons are OpenKM features like create folder, delete, upload new file, etc.
Methods
method | Description |
---|---|
checkPermissions(GWTNode node, GWTNode nodeParent, int originPanel) |
Checks the button permissions based on the selected node grants to enable or disable the button. |
checkPermissions(GWTDocument doc, GWTNode node) |
Checks the button permissions based on selected document grants to enable or disable the button. |
checkPermissions(GWTMail mail, GWTNode node) |
Checks the button permissions based on the selected folder grants to enable or disable the button. |
checkPermissions(GWTRecord record, GWTNode node); |
Checks the button permissions based on the selected record node grants to enable or disable the button. |
isEnabled() |
Returns a boolean value indicating if the button is enabled or disabled. |
enable(boolean enable) |
Enables or disables button. |
getExtensionUUID() |
Returns the unique extension id |
Sample
public class ToolBarButton extends ToolBarButtonExtension {
public ToolBarButton(Image image, String title, ClickHandler handler) {
super(image, title, handler);
}
@Override
public void checkPermissions(GWTNode node, GWTnode nodeParent, int originPanel) {
// TODO Auto-generated method stub
}
@Override
public void checkPermissions(GWTDocument doc, GWTNode node) {
// TODO Auto-generated method stub
}
@Override
public void checkPermissions(GWTMail mail, GWTNode node) {
// TODO Auto-generated method stub
}
@Override
public void checkPermissions(GWTRecord record, GWTNode node) {
// TODO Auto-generated method stub
}
@Override
public void enable(boolean enable) {
// TODO Auto-generated method stub
}
@Override
public boolean isEnabled() {
// TODO Auto-generated method stub
return false;
}
@Override
public String getExtensionUUID() {
return "9f84b330-d096-11df-bd3b-0800200c9a66";
}
}