com.sun.webui.jsf.component
Class Markup

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by com.sun.webui.jsf.component.Markup
All Implemented Interfaces:
javax.faces.component.StateHolder

public class Markup
extends javax.faces.component.UIComponentBase

The Markup component allows HTML elements to be inserted into the JSP page where HTML is not permitted inside a JSF tag.


Constructor Summary
Markup()
          Construct a new Markup.
 
Method Summary
 java.lang.String getExtraAttributes()
          Add the rest of the attribute name="value" type pairs inside this attribute.
 java.lang.String getFamily()
          Return the family for this component.
 java.lang.String getStyle()
          CSS style(s) to be applied to the outermost HTML element when this component is rendered.
 java.lang.String getStyleClass()
          CSS style class(es) to be applied to the outermost HTML element when this component is rendered.
 java.lang.String getTag()
          Name of the HTML element to render.
 boolean isSingleton()
          Flag indicating that tag is a singleton tag and that it should end with a trailing /
 void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
          Restore the state of this component.
 java.lang.Object saveState(javax.faces.context.FacesContext _context)
          Save the state of this component.
 void setExtraAttributes(java.lang.String extraAttributes)
          Add the rest of the attribute name="value" type pairs inside this attribute.
 void setId(java.lang.String id)
          The component identifier for this component.
 void setRendered(boolean rendered)
          Use the rendered attribute to indicate whether the HTML code for the component should be included in the rendered HTML page.
 void setSingleton(boolean singleton)
          Flag indicating that tag is a singleton tag and that it should end with a trailing /
 void setStyle(java.lang.String style)
          CSS style(s) to be applied to the outermost HTML element when this component is rendered.
 void setStyleClass(java.lang.String styleClass)
          CSS style class(es) to be applied to the outermost HTML element when this component is rendered.
 void setTag(java.lang.String tag)
          Name of the HTML element to render.
 
Methods inherited from class javax.faces.component.UIComponentBase
broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, getValueExpression, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, restoreAttachedState, saveAttachedState, setParent, setRendererType, setTransient, setValueBinding, setValueExpression
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Markup

public Markup()

Construct a new Markup.

Method Detail

getFamily

public java.lang.String getFamily()

Return the family for this component.

Specified by:
getFamily in class javax.faces.component.UIComponent

setId

public void setId(java.lang.String id)
The component identifier for this component. This value must be unique within the closest parent component that is a naming container.

Overrides:
setId in class javax.faces.component.UIComponentBase

setRendered

public void setRendered(boolean rendered)
Use the rendered attribute to indicate whether the HTML code for the component should be included in the rendered HTML page. If set to false, the rendered HTML page does not include the HTML for the component. If the component is not rendered, it is also not processed on any subsequent form submission.

Overrides:
setRendered in class javax.faces.component.UIComponentBase

getExtraAttributes

public java.lang.String getExtraAttributes()

Add the rest of the attribute name="value" type pairs inside this attribute. The inserted attributes will need to be escaped.


setExtraAttributes

public void setExtraAttributes(java.lang.String extraAttributes)

Add the rest of the attribute name="value" type pairs inside this attribute. The inserted attributes will need to be escaped.

See Also:
getExtraAttributes()

isSingleton

public boolean isSingleton()

Flag indicating that tag is a singleton tag and that it should end with a trailing /


setSingleton

public void setSingleton(boolean singleton)

Flag indicating that tag is a singleton tag and that it should end with a trailing /

See Also:
isSingleton()

getStyle

public java.lang.String getStyle()

CSS style(s) to be applied to the outermost HTML element when this component is rendered.


setStyle

public void setStyle(java.lang.String style)

CSS style(s) to be applied to the outermost HTML element when this component is rendered.

See Also:
getStyle()

getStyleClass

public java.lang.String getStyleClass()

CSS style class(es) to be applied to the outermost HTML element when this component is rendered.


setStyleClass

public void setStyleClass(java.lang.String styleClass)

CSS style class(es) to be applied to the outermost HTML element when this component is rendered.

See Also:
getStyleClass()

getTag

public java.lang.String getTag()

Name of the HTML element to render.


setTag

public void setTag(java.lang.String tag)

Name of the HTML element to render.

See Also:
getTag()

restoreState

public void restoreState(javax.faces.context.FacesContext _context,
                         java.lang.Object _state)

Restore the state of this component.

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext _context)

Save the state of this component.

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase


Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.