Class WmEditView

  • All Implemented Interfaces:
    EditView

    public class WmEditView
    extends Object
    implements EditView
    Contains a reference to a form view for a component.
    Author:
    arjans
    • Constructor Detail

      • WmEditView

        public WmEditView​(String viewLocation)
        Constructor for an EditView that sets the jsp location.
        Parameters:
        viewLocation - Relative path to the jsp
      • WmEditView

        public WmEditView​(String viewLocation,
                          String viewValue)
        Constructor for an EditView that sets the jsp location and fills in an identifying value.
        Parameters:
        viewLocation - Relative path to the jsp. This may be null, in which case the view is assumed to be 'empty'
        viewValue - Identifying value for EditView
      • WmEditView

        public WmEditView​(String viewLocation,
                          String viewValue,
                          boolean isTemplateView)
        Constructor for an EditView that sets the either the jsp location or the template name and fills in an identifying value.
        Parameters:
        viewLocation - Relative path to the jsp
        viewValue - Identifying value for EditView
        isTemplate - When true the location is the name of a template
    • Method Detail

      • getLocation

        public String getLocation()
        Returns the jsp location or template name of the EditView.
        Specified by:
        getLocation in interface EditView
        Returns:
        the jsp location or template name of the EditView.
      • setLocation

        public void setLocation​(String location)
        default setter
        Parameters:
        location - jsp location or template name of the EditView
      • getValue

        public String getValue()
        Returns the identifying value of the EditView.
        Specified by:
        getValue in interface EditView
        Returns:
        the identifying value of the EditView.
      • isViewByTemplate

        public boolean isViewByTemplate()
        Returns true if the location contains a template name.
        Specified by:
        isViewByTemplate in interface EditView
        Returns:
        true if the location contains a template name.
      • isViewByJsp

        public boolean isViewByJsp()
        Returns true if the location contains a relative path to a jsp.
        Specified by:
        isViewByJsp in interface EditView
        Returns:
        true if the location contains a relative path to a jsp.
      • isEmpty

        public boolean isEmpty()
        Returns true if this view is empty
        Specified by:
        isEmpty in interface EditView
        Returns:
        true if the view is empty, false otherwise