public class IlrUICommandModelDelegate extends java.lang.Object implements IlrUICommandModel
Use this class when you want to redefine a few methods from an existing command model. For instance, you could redefine the delete button of the TableToolbarBean the following way:
public class MyTableToolbarBean extends TableToolbarBean {
public MyTableToolbarBean() {
setDelete(new IlrUICommandModelDelegate(getDelete()) {
public boolean isRendered() {
return ManagerBean.getInstance().getSession().isUserInRole("anEditorRole");
}
});
}
}
| Constructor and Description |
|---|
IlrUICommandModelDelegate(IlrUICommandModel delegate) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
action()
Action to execute when the command is triggered (button or link clicked).
|
java.lang.String |
getDescription()
Gets the description for the command.
|
java.lang.String |
getDescriptionStyleClass()
Gets the CSS class to use when displaying the description of the object.
|
java.lang.String |
getHref()
Gets the destination URL or an anchor point.
|
java.lang.String |
getIcon()
Gets the icon to display for the command.
|
java.lang.String |
getIconStyleClass()
Gets the CSS class to use when displaying the icon of the object using css rule.
|
java.lang.String |
getKey()
Gets the key name of the command.
|
java.lang.String |
getOnclick()
Gets the JavaScript code to execute when the command is clicked on the browser.
|
java.lang.String |
getStyleClass()
Gets the CSS class for the graphical object.
|
java.lang.String |
getTarget()
Gets the window or frame at which to target content
|
java.lang.String |
getTitle()
Gets the title of the graphical object.
|
java.lang.String |
getTooltip()
Gets the tooltip to display for the command.
|
boolean |
isDisabledOnMultiSelection()
Tells whether the command is disabled or not on multi selection.
|
boolean |
isDisabledOnNoSelection()
Tells whether the command is disabled or not on no selection.
|
boolean |
isDisabledOnOneSelection()
Tells whether the command is disabled or not on one selection.
|
boolean |
isDisabledOnTwoSelection()
Tells whether the command is disabled or not on two selections.
|
boolean |
isEnabled()
Tells whether the associated graphical object must be enabled or not.
|
boolean |
isIconRendered()
Tells whether the title is rendered or not.
|
boolean |
isRendered()
Tells whether the associated graphical object must be displayed or not.
|
boolean |
isTitleRendered()
Tells whether the title is rendered or not.
|
public IlrUICommandModelDelegate(IlrUICommandModel delegate)
public boolean isRendered()
IlrUICommandModelisRendered in interface IlrUICommandModelpublic boolean isEnabled()
IlrUICommandModel
If the object is a button, it will be grayed out when the isEnabled
method returns false.
isEnabled in interface IlrUICommandModelpublic java.lang.String action()
IlrUICommandModelaction in interface IlrUICommandModelpublic java.lang.String getKey()
IlrUICommandModelgetKey in interface IlrUICommandModelpublic java.lang.String getTitle()
IlrUICommandModelgetTitle in interface IlrUICommandModelpublic java.lang.String getStyleClass()
IlrUICommandModelgetStyleClass in interface IlrUICommandModelpublic java.lang.String getDescription()
IlrUICommandModelIn the Decision Center console, it will be displayed below the links (cf Configure page).
getDescription in interface IlrUICommandModelpublic java.lang.String getTooltip()
IlrUICommandModelgetTooltip in interface IlrUICommandModelpublic java.lang.String getIcon()
IlrUICommandModelgetIcon in interface IlrUICommandModelpublic java.lang.String getOnclick()
IlrUICommandModelgetOnclick in interface IlrUICommandModelpublic java.lang.String getHref()
IlrUICommandModelgetHref in interface IlrUICommandModelpublic java.lang.String getTarget()
IlrUICommandModelgetTarget in interface IlrUICommandModelpublic java.lang.String getDescriptionStyleClass()
IlrUICommandModelgetDescriptionStyleClass in interface IlrUICommandModelpublic java.lang.String getIconStyleClass()
IlrUICommandModelgetIconStyleClass in interface IlrUICommandModelpublic boolean isTitleRendered()
IlrUICommandModelisTitleRendered in interface IlrUICommandModelIlrUICommandModel.getTitle()public boolean isIconRendered()
IlrUICommandModelisIconRendered in interface IlrUICommandModelIlrUICommandModel.getIcon()public boolean isDisabledOnNoSelection()
IlrUICommandModelisDisabledOnNoSelection in interface IlrUICommandModelpublic boolean isDisabledOnOneSelection()
IlrUICommandModelisDisabledOnOneSelection in interface IlrUICommandModelpublic boolean isDisabledOnTwoSelection()
IlrUICommandModelisDisabledOnTwoSelection in interface IlrUICommandModelpublic boolean isDisabledOnMultiSelection()
IlrUICommandModelisDisabledOnMultiSelection in interface IlrUICommandModel© Copyright IBM Corp. 1987, 2017