|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Element<C extends javax.faces.component.UIComponent>
Method Summary | ||
---|---|---|
Element<C> |
addClass(String className)
Add a CSS style class to the current element. |
|
Element<C> |
addClass(StringCycler stringCycler)
Add a CSS style class to the current element from the current string of a string cycler. |
|
Element<C> |
addStyle(String style)
Add a CSS style to the current element. |
|
void |
close()
Close out this element. |
|
Element<C> |
doEncode()
Encode the element's component. |
|
C |
getComponent()
Get the component associated with this element. |
|
javax.faces.context.FacesContext |
getFacesContext()
Get the faces context associated with this element. |
|
Element<C> |
writeAttribute(String attribute,
boolean value)
Write out an attriubte on this element. |
|
Element<C> |
writeAttribute(String attribute,
int value)
Write out an attriubte on this element. |
|
Element<C> |
writeAttribute(String attribute,
String value)
Write out an attriubte on this element. |
|
Element<C> |
writeClass()
Write the class attribute, if any style classes have been added. |
|
Element<C> |
writeElement(String name)
Create a nested element for the same component. |
|
|
writeElement(String name,
I component)
Create a nested element for a different component. |
|
Element<C> |
writeId()
Write ID to the id attribute, only if it was specified. |
|
Element<C> |
writeId(String attribute,
boolean onlyIfSpecified)
Write the ID to the specified attribute. |
|
Element<C> |
writeStyle()
Write the style attribute, if any styles have been added. |
Method Detail |
---|
Element<C> writeId() throws IOException
IOException
- if an error occursElement<C> writeId(String attribute, boolean onlyIfSpecified) throws IOException
attribute
- the attributeonlyIfSpecified
- true
if it should only be written if specified
IOException
- if an error occursElement<C> addClass(String className)
className
- the style class name
Element<C> addClass(StringCycler stringCycler)
stringCycler
- the string cycler
Element<C> addStyle(String style)
style
- the style to add
Element<C> writeClass() throws IOException
IOException
- if an error occursElement<C> writeStyle() throws IOException
IOException
- if an error occursElement<C> writeAttribute(String attribute, String value) throws IOException
attribute
- the attributevalue
- the value
IOException
- if an error occursElement<C> writeAttribute(String attribute, int value) throws IOException
attribute
- the attributevalue
- the value
IOException
- if an error occursElement<C> writeAttribute(String attribute, boolean value) throws IOException
attribute
- the attributevalue
- the value
IOException
- if an error occursElement<C> doEncode() throws IOException
IOException
- if an error occursvoid close() throws IOException
IOException
- if an error occursElement<C> writeElement(String name) throws IOException
name
- the name of the element
IOException
- if an error occurs<I extends javax.faces.component.UIComponent> Element<I> writeElement(String name, I component) throws IOException
name
- the name of the elementcomponent
- the associated component
IOException
- if an error occursC getComponent()
javax.faces.context.FacesContext getFacesContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |