org.apache.myfaces.custom.htmlTag
Class HtmlTag
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
org.apache.myfaces.custom.htmlTag.AbstractHtmlTag
org.apache.myfaces.custom.htmlTag.HtmlTag
- All Implemented Interfaces:
- javax.faces.component.StateHolder, javax.faces.component.ValueHolder, ForceIdAware, StyleAware, UserRoleAware
- Direct Known Subclasses:
- AbstractDiv, AbstractFieldset
public class HtmlTag
- extends AbstractHtmlTag
Fields inherited from class javax.faces.component.UIComponent |
bindings |
Method Summary |
java.lang.String |
getEnabledOnUserRole()
If user is in given role, this component will be rendered
normally. |
java.lang.String |
getFamily()
|
java.lang.String |
getStyle()
HTML: CSS styling instructions. |
java.lang.String |
getStyleClass()
The CSS class for this element. |
java.lang.String |
getVisibleOnUserRole()
If user is in given role, this component will be rendered
normally. |
boolean |
isForceId()
If true, this component will force the use of the specified id when rendering. |
boolean |
isForceIdIndex()
If false, this component will not append a '[n]' suffix
(where 'n' is the row index) to components that are
contained within a "list." This value will be true by
default and the value will be ignored if the value of
forceId is false (or not specified.) |
void |
restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setEnabledOnUserRole(java.lang.String enabledOnUserRole)
|
void |
setForceId(boolean forceId)
|
void |
setForceIdIndex(boolean forceIdIndex)
|
void |
setStyle(java.lang.String style)
|
void |
setStyleClass(java.lang.String styleClass)
|
void |
setVisibleOnUserRole(java.lang.String visibleOnUserRole)
|
Methods inherited from class javax.faces.component.UIOutput |
getConverter, getLocalValue, getValue, setConverter, setValue |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPONENT_FAMILY
public static final java.lang.String COMPONENT_FAMILY
- See Also:
- Constant Field Values
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
- See Also:
- Constant Field Values
DEFAULT_RENDERER_TYPE
public static final java.lang.String DEFAULT_RENDERER_TYPE
- See Also:
- Constant Field Values
HtmlTag
public HtmlTag()
getFamily
public java.lang.String getFamily()
- Overrides:
getFamily
in class javax.faces.component.UIOutput
getEnabledOnUserRole
public java.lang.String getEnabledOnUserRole()
- Description copied from interface:
UserRoleAware
- If user is in given role, this component will be rendered
normally. If not, no hyperlink is rendered but all nested
tags (=body) are rendered.
- Returns:
setEnabledOnUserRole
public void setEnabledOnUserRole(java.lang.String enabledOnUserRole)
getVisibleOnUserRole
public java.lang.String getVisibleOnUserRole()
- Description copied from interface:
UserRoleAware
- If user is in given role, this component will be rendered
normally. If not, nothing is rendered and the body of this
tag will be skipped.
- Returns:
setVisibleOnUserRole
public void setVisibleOnUserRole(java.lang.String visibleOnUserRole)
isForceId
public boolean isForceId()
- Description copied from interface:
ForceIdAware
- If true, this component will force the use of the specified id when rendering.
- Returns:
setForceId
public void setForceId(boolean forceId)
isForceIdIndex
public boolean isForceIdIndex()
- Description copied from interface:
ForceIdAware
- If false, this component will not append a '[n]' suffix
(where 'n' is the row index) to components that are
contained within a "list." This value will be true by
default and the value will be ignored if the value of
forceId is false (or not specified.)
- Returns:
setForceIdIndex
public void setForceIdIndex(boolean forceIdIndex)
getStyle
public java.lang.String getStyle()
- Description copied from interface:
StyleAware
- HTML: CSS styling instructions.
setStyle
public void setStyle(java.lang.String style)
getStyleClass
public java.lang.String getStyleClass()
- Description copied from interface:
StyleAware
- The CSS class for this element. Corresponds to the HTML 'class' attribute.
setStyleClass
public void setStyleClass(java.lang.String styleClass)
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
- Overrides:
saveState
in class javax.faces.component.UIOutput
restoreState
public void restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class javax.faces.component.UIOutput
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.