nl.gx.webmanager.springmvc.view
Class WmEditView

java.lang.Object
  extended by nl.gx.webmanager.springmvc.view.WmEditView
All Implemented Interfaces:
EditView

public class WmEditView
extends java.lang.Object
implements EditView

Contains a reference to a form view for a component.

Author:
arjans

Constructor Summary
WmEditView(java.lang.String viewLocation)
          Constructor for an EditView that sets the jsp location.
WmEditView(java.lang.String viewLocation, java.lang.String viewValue)
          Constructor for an EditView that sets the jsp location and fills in an identifying value.
WmEditView(java.lang.String viewLocation, java.lang.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.
 
Method Summary
 java.lang.String getLocation()
          Returns the jsp location or template name of the EditView.
 java.lang.String getValue()
          Returns the identifying value of the EditView.
 boolean isEmpty()
          Returns true if this view is empty
 boolean isViewByJsp()
          Returns true if the location contains a relative path to a jsp.
 boolean isViewByTemplate()
          Returns true if the location contains a template name.
 void setLocation(java.lang.String location)
          default setter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WmEditView

public WmEditView(java.lang.String viewLocation)
Constructor for an EditView that sets the jsp location.

Parameters:
viewLocation - Relative path to the jsp

WmEditView

public WmEditView(java.lang.String viewLocation,
                  java.lang.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(java.lang.String viewLocation,
                  java.lang.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 java.lang.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(java.lang.String location)
default setter

Parameters:
location - jsp location or template name of the EditView

getValue

public java.lang.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


Copyright © 2007-2011 GX Software BV. All Rights Reserved.