Package nl.gx.webmanager.springmvc.view
Class WmEditView
- java.lang.Object
-
- nl.gx.webmanager.springmvc.view.WmEditView
-
-
Constructor Summary
Constructors Constructor Description WmEditView(String viewLocation)
Constructor for an EditView that sets the jsp location.WmEditView(String viewLocation, String viewValue)
Constructor for an EditView that sets the jsp location and fills in an identifying value.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocation()
Returns the jsp location or template name of the EditView.String
getValue()
Returns the identifying value of the EditView.boolean
isEmpty()
Returns true if this view is emptyboolean
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(String location)
default setter
-
-
-
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 jspviewValue
- Identifying value for EditViewisTemplate
- 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 interfaceEditView
- 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.
-
isViewByTemplate
public boolean isViewByTemplate()
Returns true if the location contains a template name.- Specified by:
isViewByTemplate
in interfaceEditView
- 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 interfaceEditView
- Returns:
- true if the location contains a relative path to a jsp.
-
-