|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.teamserver.web.model.IlrUICommandModelDelegate
public class IlrUICommandModelDelegate
An implementation of a command model which delegates its calls to another command model.
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 Summary | |
---|---|
IlrUICommandModelDelegate(IlrUICommandModel delegate)
|
Method Summary | |
---|---|
String |
action()
Action to execute when the command is triggered (button or link clicked). |
String |
getDescription()
Gets the description for the command. |
String |
getDescriptionStyleClass()
Gets the CSS class to use when displaying the description of the object. |
String |
getHref()
Gets the destination URL or an anchor point. |
String |
getIcon()
Gets the icon to display for the command. |
String |
getIconStyleClass()
Gets the CSS class to use when displaying the icon of the object using css rule. |
String |
getKey()
Gets the key name of the command. |
String |
getOnclick()
Gets the JavaScript code to execute when the command is clicked on the browser. |
String |
getStyleClass()
Gets the CSS class for the graphical object. |
String |
getTarget()
Gets the window or frame at which to target content |
String |
getTitle()
Gets the title of the graphical object. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrUICommandModelDelegate(IlrUICommandModel delegate)
Method Detail |
---|
public boolean isRendered()
IlrUICommandModel
isRendered
in interface IlrUICommandModel
public boolean isEnabled()
IlrUICommandModel
If the object is a button, it will be grayed out when the isEnabled
method returns false.
isEnabled
in interface IlrUICommandModel
public String action()
IlrUICommandModel
action
in interface IlrUICommandModel
public String getKey()
IlrUICommandModel
getKey
in interface IlrUICommandModel
public String getTitle()
IlrUICommandModel
getTitle
in interface IlrUICommandModel
public String getStyleClass()
IlrUICommandModel
getStyleClass
in interface IlrUICommandModel
public String getDescription()
IlrUICommandModel
In the Decision Center console, it will be displayed below the links (cf Configure page).
getDescription
in interface IlrUICommandModel
public String getTooltip()
IlrUICommandModel
getTooltip
in interface IlrUICommandModel
public String getIcon()
IlrUICommandModel
getIcon
in interface IlrUICommandModel
public String getOnclick()
IlrUICommandModel
getOnclick
in interface IlrUICommandModel
public String getHref()
IlrUICommandModel
getHref
in interface IlrUICommandModel
public String getTarget()
IlrUICommandModel
getTarget
in interface IlrUICommandModel
public String getDescriptionStyleClass()
IlrUICommandModel
getDescriptionStyleClass
in interface IlrUICommandModel
public String getIconStyleClass()
IlrUICommandModel
getIconStyleClass
in interface IlrUICommandModel
public boolean isTitleRendered()
IlrUICommandModel
isTitleRendered
in interface IlrUICommandModel
IlrUICommandModel.getTitle()
public boolean isIconRendered()
IlrUICommandModel
isIconRendered
in interface IlrUICommandModel
IlrUICommandModel.getIcon()
public boolean isDisabledOnNoSelection()
IlrUICommandModel
isDisabledOnNoSelection
in interface IlrUICommandModel
public boolean isDisabledOnOneSelection()
IlrUICommandModel
isDisabledOnOneSelection
in interface IlrUICommandModel
public boolean isDisabledOnTwoSelection()
IlrUICommandModel
isDisabledOnTwoSelection
in interface IlrUICommandModel
public boolean isDisabledOnMultiSelection()
IlrUICommandModel
isDisabledOnMultiSelection
in interface IlrUICommandModel
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |