|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTagSupport
BodyTagSupport
AbstractClassicTag
HtmlGroupBaseTag
public abstract class HtmlGroupBaseTag
Abstract base class that provides the dataSource
, defaultValue
, and
optionsDataSource
attributes.
Field Summary | |
---|---|
protected ConstantRendering |
_cr
|
protected String |
_dataSource
|
protected Object |
_defaultValue
|
protected boolean |
_disabled
|
protected String |
_labelStyle
|
protected String |
_labelStyleClass
|
protected Object |
_optionsDataSource
|
protected Object |
_repCurItem
|
protected boolean |
_repeater
|
protected int |
_repIdx
|
String |
HORIZONTAL_VALUE
Constant defining a horizontal layout of the options. |
String |
VERTICAL_VALUE
Constant defining a vertical layout of the options. |
Fields inherited from class AbstractClassicTag |
---|
DefaultNamingChain, EMPTY_STRING, NETUI_UNIQUE_CNT |
Fields inherited from class BodyTagSupport |
---|
bodyContent |
Fields inherited from class TagSupport |
---|
id, pageContext |
Fields inherited from interface BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
HtmlGroupBaseTag()
|
Method Summary | |
---|---|
protected void |
addOption(AbstractRenderAppender buffer,
String type,
String optionValue,
String optionDisplay,
int idx,
String altText,
char accessKey,
boolean disabled)
This will create a new option in the HTML. |
protected String |
doNaming()
|
protected Object |
evaluateDataSource()
Return the Object that is represented by the specified data source. |
protected Object |
evaluateOptionsDataSource()
Return the real value of the optionDataSource attribute. |
int |
getCurrentIndex()
Get the current index in this iteration. |
Object |
getCurrentItem()
Get the current data item in this IDataAccessProvider. |
Object |
getCurrentMetadata()
Get a metadata object for the current item. |
String |
getDataSource()
Gets the tag's data source (can be an expression). |
String |
getLabelStyle()
Return the label style for each contained CheckBoxOption.. |
String |
getLabelStyleClass()
Return the label style class for each contained CheckBoxOption.. |
protected List |
getNamingChain()
Return an ArrayList which represents a chain of INameInterceptor
objects. |
Object |
getOptionsDataSource()
Gets the options datasource value (an expression). |
IDataAccessProvider |
getProviderParent()
Get the parent IDataAccessProvider of a IDataAccessProvider. |
String |
getQualifiedDataSourceName()
Return the qualified name of the checkBoxGroup. |
boolean |
isDisabled()
Returns the boolean value or expression indicating the disable state of the RadioButtonGroup. |
abstract boolean |
isMatched(String value,
Boolean defaultValue)
|
boolean |
isRepeater()
Gets whether a repeating contained options is on. |
boolean |
isVertical()
Returns true if vertical layout is set. |
protected void |
localRelease()
Release any acquired resources. |
void |
setAttribute(String name,
String value,
String facet)
Base support for the attribute tag. |
void |
setDataSource(String dataSource)
Sets the tag's data source (can be an expression). |
void |
setDefaultValue(Object defaultValue)
Sets the default value (can be an expression). |
void |
setDisabled(boolean disabled)
Set the disable state either with the literal "true" or "false" or with an expression. |
void |
setLabelStyle(String labelStyle)
Set the label style for each contained CheckBoxOption. |
void |
setLabelStyleClass(String labelStyleClass)
Set the label style class for each contained CheckBoxOption. |
void |
setOptionsDataSource(Object optionsDataSource)
Sets the options datasource value (an expression). |
void |
setOrientation(String orientation)
Set the orientation of the resulting options group. |
void |
setRepeater(boolean repeater)
Set whether repeating of contained options is on. |
void |
setStyle(String style)
Sets the style of the rendered html tag. |
void |
setStyleClass(String styleClass)
Sets the style class of the rendered html tag. |
Methods inherited from class BodyTagSupport |
---|
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
public final String HORIZONTAL_VALUE
public final String VERTICAL_VALUE
protected ConstantRendering _cr
protected String _dataSource
protected Object _defaultValue
protected Object _optionsDataSource
protected boolean _disabled
protected String _labelStyle
protected String _labelStyleClass
protected boolean _repeater
protected int _repIdx
protected Object _repCurItem
Constructor Detail |
---|
public HtmlGroupBaseTag()
Method Detail |
---|
public abstract boolean isMatched(String value, Boolean defaultValue)
value
-
public void setAttribute(String name, String value, String facet) throws JspException
href
attribute. The checkBoxGroup
and radioButtonGroup
support two facets,
input
and span
. The input
is the default and will attach
attributes to the <input> element. The span
facet will attach attributes to the
<span> elements which represents the label.
setAttribute
in interface IAttributeConsumer
name
- The name of the attribute. This value may not be null or the empty string.value
- The value of the attribute. This may contain an expression.facet
- The name of a facet to which the attribute will be applied. This is optional.
JspException
- A JspException may be thrown if there is an error setting the attribute.public final String getQualifiedDataSourceName() throws JspException
doNaming()
.
dataSource
name.
JspException
public boolean isDisabled()
public void setDisabled(boolean disabled)
disabled
- true or false or an expressionpublic void setOrientation(String orientation)
horizontal
or vertical
. The default is horizontal
.
orientation
- true or false or an expressionpublic boolean isVertical()
true
if vertical layout is set.
true
if vertical layout is setpublic void setRepeater(boolean repeater)
repeater
- the repeater value ("true" or "false")public boolean isRepeater()
public void setStyle(String style)
style
- the html style.public void setStyleClass(String styleClass)
styleClass
- the html style class.public String getLabelStyle()
public void setLabelStyle(String labelStyle)
labelStyle
- the label stylepublic String getLabelStyleClass()
public void setLabelStyleClass(String labelStyleClass)
labelStyleClass
- the label stylepublic void setDataSource(String dataSource) throws JspException
dataSource
- the data source
JspException
public String getDataSource()
getDataSource
in interface IDataAccessProvider
public int getCurrentIndex()
getCurrentIndex
in interface IDataAccessProvider
public Object getCurrentItem()
getCurrentItem
in interface IDataAccessProvider
null
public Object getCurrentMetadata()
getCurrentMetadata
in interface IDataAccessProvider
null
if no metadata can be
found or metadata is not supported by a IDataAccessProvider implementationpublic IDataAccessProvider getProviderParent()
null
.
getProviderParent
in interface IDataAccessProvider
null
if this method
is not supported or the parent can not be found.protected List getNamingChain()
ArrayList
which represents a chain of INameInterceptor
objects. This method by default returns null
and should be overridden
by objects that support naming.
getNamingChain
in class AbstractClassicTag
ArrayList
that will contain INameInterceptor
objects.protected Object evaluateDataSource() throws JspException
JspException
protected String doNaming() throws JspException
JspException
public void setDefaultValue(Object defaultValue) throws JspException
defaultValue
- the default value
JspException
public Object getOptionsDataSource()
public void setOptionsDataSource(Object optionsDataSource) throws JspException
optionsDataSource
- the options datasource
JspException
protected Object evaluateOptionsDataSource() throws JspException
optionDataSource
attribute. The value returned will
always be an instance of Iterator
This value reflects the
result of expression evaluation on the options data source.
JspException
protected void addOption(AbstractRenderAppender buffer, String type, String optionValue, String optionDisplay, int idx, String altText, char accessKey, boolean disabled) throws JspException
JspException
protected void localRelease()
localRelease
in class AbstractClassicTag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |