ilog.rules.teamserver.web.components.property.renderers

Class IlrPropertyEditorRenderer

  • java.lang.Object
    • javax.faces.render.Renderer
      • ilog.rules.webc.jsf.renderers.IlrBaseRenderer
        • ilog.rules.teamserver.web.components.property.renderers.IlrPropertyEditorRenderer
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object convert(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value) 
      protected IlxWTextField createTextField(IlrPropertyEditor editor, javax.faces.context.FacesContext context) 
      void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
      This JSF method decodes a component.
      void encodeAsEditor(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
      Encodes the component in editing mode.
      void encodeAsViewer(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
      Encodes the component in viewing mode.
      void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
      Encodes the beginning of the component.
      void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
      Encodes the children of a component.
      void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
      Encodes the end of the component.
      protected void encodeValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
      Encodes the value of the property.
      void encodeValueField(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, boolean checkPermission)
      Encodes the value field.
      protected java.lang.String getId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, org.eclipse.emf.ecore.EStructuralFeature property)
      The value returned by getId is used in encodeValueField(FacesContext, UIComponent, boolean) to encode the input HTML tag that will hold the property value.
      protected java.lang.String getValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, org.eclipse.emf.ecore.EStructuralFeature property)
      Override this method to return the new value for the element property.
      protected java.lang.Object throwEmptyValueError(org.eclipse.emf.ecore.EStructuralFeature feature) 
      protected java.lang.Object throwInvalidCharacterError(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String value, ilog.rules.res.model.IlrFormatException e) 
      protected java.lang.Object throwInvalidValueError(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String value) 
      • Methods inherited from class ilog.rules.webc.jsf.renderers.IlrBaseRenderer

        convertClientId, displayButton, displayButton, encodeRecursive, getImagesDir, getImagesLocation, getMyForm
      • Methods inherited from class javax.faces.render.Renderer

        getConvertedValue, getRendersChildren
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EMPTY_VALUE_NOT_VALID

        public static final java.lang.String EMPTY_VALUE_NOT_VALID
        See Also:
        Constant Field Values
      • INVALID_CHARACTER

        public static final java.lang.String INVALID_CHARACTER
        See Also:
        Constant Field Values
      • ComplexExpression

        protected java.lang.String ComplexExpression
    • Constructor Detail

      • IlrPropertyEditorRenderer

        public IlrPropertyEditorRenderer()
    • Method Detail

      • getValue

        protected java.lang.String getValue(javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent component,
                                org.eclipse.emf.ecore.EStructuralFeature property)
        Override this method to return the new value for the element property.

        This method is used in decode(javax.faces.context.FacesContext, javax.faces.component.UIComponent). This default implementation returns the value stored in the request parameter map for the key:

           component.getParent().getClientId(context) 
             + "_" + component.getClientId(context) 
             + "_" + property.getName()
          
        See the JSF documentation for more information.
        Parameters:
        context - The context.
        component - The component.
        property - The property.
        Returns:
        The new value for the property of the element.
      • convert

        public java.lang.Object convert(javax.faces.context.FacesContext context,
                               javax.faces.component.UIComponent component,
                               java.lang.String value)
                                 throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • throwEmptyValueError

        protected java.lang.Object throwEmptyValueError(org.eclipse.emf.ecore.EStructuralFeature feature)
      • throwInvalidValueError

        protected java.lang.Object throwInvalidValueError(org.eclipse.emf.ecore.EStructuralFeature feature,
                                              java.lang.String value)
      • throwInvalidCharacterError

        protected java.lang.Object throwInvalidCharacterError(org.eclipse.emf.ecore.EStructuralFeature feature,
                                                  java.lang.String value,
                                                  ilog.rules.res.model.IlrFormatException e)
      • getId

        protected java.lang.String getId(javax.faces.context.FacesContext context,
                             javax.faces.component.UIComponent component,
                             org.eclipse.emf.ecore.EStructuralFeature property)
        The value returned by getId is used in encodeValueField(FacesContext, UIComponent, boolean) to encode the input HTML tag that will hold the property value. This value is then used in getValue(FacesContext, UIComponent, EStructuralFeature) to retrieve the value of this property.
        Parameters:
        context - The context.
        component - The component.
        property - The property.
      • encodeBegin

        public void encodeBegin(javax.faces.context.FacesContext facesContext,
                       javax.faces.component.UIComponent component)
                         throws java.io.IOException
        Encodes the beginning of the component. This default implementation does nothing.
        Overrides:
        encodeBegin in class javax.faces.render.Renderer
        Throws:
        java.io.IOException - if there is a problem writing to a stream.
        Parameters:
        facesContext - The context.
        component - The component.
      • encodeChildren

        public void encodeChildren(javax.faces.context.FacesContext facesContext,
                          javax.faces.component.UIComponent component)
                            throws java.io.IOException
        Encodes the children of a component. This default implementation does nothing.
        Overrides:
        encodeChildren in class javax.faces.render.Renderer
        Throws:
        java.io.IOException - if there is a problem writing to a stream.
        Parameters:
        facesContext - The context.
        component - The component.
      • encodeEnd

        public void encodeEnd(javax.faces.context.FacesContext context,
                     javax.faces.component.UIComponent component)
                       throws java.io.IOException
        Encodes the end of the component. This default implementation encodes the whole component.
        Overrides:
        encodeEnd in class javax.faces.render.Renderer
        Throws:
        java.io.IOException - if there is a problem writing to a stream.
        Parameters:
        context - The context.
        component - The component.
      • encodeAsViewer

        public void encodeAsViewer(javax.faces.context.FacesContext facesContext,
                          javax.faces.component.UIComponent component)
                            throws java.io.IOException,
                                   IlrApplicationException
        Encodes the component in viewing mode. This method is used to display rule details.
        Throws:
        java.io.IOException - if there is a problem writing to a stream.
        IlrApplicationException - if there is a business exception on the server.
        Parameters:
        facesContext - The context to use.
        component - The component.
      • encodeAsEditor

        public void encodeAsEditor(javax.faces.context.FacesContext context,
                          javax.faces.component.UIComponent component)
                            throws java.io.IOException,
                                   IlrApplicationException
        Encodes the component in editing mode. This will typically be used when editing a rule.
        Throws:
        java.io.IOException
        IlrApplicationException
        Parameters:
        context -
        component -

© Copyright IBM Corp. 1987, 2017