Visible Class
- public class Visible
extends AbstractBaseTag
implements TemplateConstants
Tag that turns on or off display of the body content based upon
the visible state of the tag.
Attribute Descriptions |
Attribute | Required | Runtime Expression Evaluation |
Data Bindable |
visible | No | No | No |
A boolean property indicating if the content
is visible or not. |
visibility | No | No | Read Only |
Sets the visible property through an
expression. |
negate | No | No | No |
Sets the negate property which will negate the
visible state. |
Related Topics
<netui-template:...> Tags Sample
Attribute
IncludeSection
Section
SetAttribute
Template
-
Hierarchy
-
Object
TagSupport
BodyTagSupport
AbstractBaseTag
Visible
-
All Implemented Interfaces
-
BodyTag
, IterationTag
, Serializable
, Tag
, TemplateConstants
Fields from com.bea.wlw.netui.tags.AbstractBaseTag |
ATTR_GENERAL , ATTR_GENERAL_EXPRESSION , ATTR_JAVASCRIPT , ATTR_STYLE , CLASS , ID , JAVASCRIPT_STATUS , NAME , NETUI_UNIQUE_CNT , ONCLICK , ONDBLCLICK , ONKEYDOWN , ONKEYPRESS , ONKEYUP , ONMOUSEDOWN , ONMOUSEMOVE , ONMOUSEOUT , ONMOUSEOVER , ONMOUSEUP , STYLE , TABINDEX
|
public int |
-
doStartTag ()
- Renders the body content if the visible state is
true .
|
public String |
-
getTagName ()
- Returns the name of the Tag.
|
public String |
-
getVisibility ()
- Returns the expression used to set the visibility state.
|
public boolean |
-
isNegate ()
- Returns the negate state of the tag.
|
public boolean |
-
isVisible ()
- Returns the visible state of the tag.
|
protected void |
-
localRelease ()
- Resets all of the fields of the tag.
|
public void |
-
setNegate (boolean negate)
- Sets the negate state of the tag.
|
public void |
-
setVisibility (String expr)
- Sets the visible state of the tag through an expression.
|
public void |
-
setVisible (boolean visible)
- Sets the visible state of the tag.
|
Methods from com.bea.wlw.netui.tags.AbstractBaseTag |
addTagIdMapping , evaluateAttributeToString , filter , filter , getJavaScriptUtils , getNearestForm , getScriptReporter , getUserLocale , registerTagError , release , renderAttribute , rewriteName , write
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Visible
public Visible()
doStartTag() Method
public int doStartTag()
throws JspException
Renders the body content if the visible state is
true
. Otherwise nothing is rendered.
-
Overrides
-
BodyTagSupport.doStartTag()
Returns
- SKIP_BODY if the visible state is
false
,
otherwise EVAL_BODY_INCLUDE to evaluate the body content.
Exceptions
-
JspException
- if there are errors.
getTagName() Method
public String
getTagName()
Returns the name of the Tag. This is used to
identify the type of tag reporting errors.
-
Overrides
-
AbstractBaseTag.getTagName()
Returns
- a constant string representing the name of the tag.
getVisibility() Method
public String
getVisibility()
Returns the expression used to set the visibility state.
Returns
- a String expression
isNegate() Method
public boolean isNegate()
Returns the negate state of the tag.
Returns
true
if the isVisible should be negated,
false
otherwise.
isVisible() Method
public boolean isVisible()
Returns the visible state of the tag.
Returns
true
if the body content is visible,
false
otherwise.
localRelease() Method
protected void localRelease()
Resets all of the fields of the tag.
-
Overrides
-
AbstractBaseTag.localRelease()
setNegate(boolean) Method
public void setNegate(boolean negate)
Sets the negate state of the tag. If negate is true
this will negate the meaning of the visible state.
Parameters
-
negate
Boolean
value representing the negate state.
setVisibility(String) Method
public void setVisibility(String
expr)
throws JspException
Sets the visible state of the tag through an expression.
Parameters
-
expr
- an expression will be checked to see if the
body content is visible or not.
Exceptions
-
JspException
setVisible(boolean) Method
public void setVisible(boolean visible)
Sets the visible state of the tag.
Parameters
-
visible
Boolean
value representing the visible state.