ilog.rules.teamserver.web.model

Class IlrUICommandModelDelegate

  • java.lang.Object
    • ilog.rules.teamserver.web.model.IlrUICommandModelDelegate
  • All Implemented Interfaces:
    IlrUICommandModel, IlrUIModel, java.io.Serializable


    public class IlrUICommandModelDelegate
    extends java.lang.Object
    implements IlrUICommandModel
    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");
           }
         });
       }
     }
     
    See Also:
    Serialized Form
    • Method Summary

      Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

© Copyright IBM Corp. 1987, 2017