Package org.openxava.web.taglib
Class EditorTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.openxava.web.taglib.EditorTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
public class EditorTag
extends jakarta.servlet.jsp.tagext.TagSupport
- Author:
- Javier Paniza
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanIf true and the property is not editable the value is displayed as formatted text (a label) instead of a disabled editor, when the underlying editor supports it.booleanvoidsetEditable(boolean editable) voidsetProperty(String property) voidsetPropertyPrefix(String propertyPrefix) voidsetReadOnlyAsLabel(boolean readOnlyAsLabel) voidsetThrowPropertyChanged(boolean throwPropertyChanged) voidvoidsetViewObject(String viewObject) Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
EditorTag
public EditorTag()
-
-
Method Details
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspException- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException
-
getProperty
-
setProperty
-
isEditable
public boolean isEditable() -
setEditable
public void setEditable(boolean editable) -
isThrowPropertyChanged
public boolean isThrowPropertyChanged() -
setThrowPropertyChanged
public void setThrowPropertyChanged(boolean throwPropertyChanged) -
getViewObject
- Returns:
- the viewObject
-
setViewObject
- Parameters:
viewObject- the viewObject to set
-
getPropertyPrefix
- Returns:
- the propertyPrefix
-
setPropertyPrefix
- Parameters:
propertyPrefix- the propertyPrefix to set
-
setValue
-
isReadOnlyAsLabel
public boolean isReadOnlyAsLabel()If true and the property is not editable the value is displayed as formatted text (a label) instead of a disabled editor, when the underlying editor supports it.- Since:
- 8.0
-
setReadOnlyAsLabel
public void setReadOnlyAsLabel(boolean readOnlyAsLabel)
-