|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.richfaces.component.UIPaint2D
org.richfaces.component.html.HtmlPaint2D
public class HtmlPaint2D
Component-Type org.richfaces.Paint2D Component-Family javax.faces.Output Renderer-Type org.richfaces.Paint2DRenderer Create an image by paint in a managed bean, same as paint (Graphics g) in SWING components. It can be used as a cacheable or non-cacheable resource. With a cache support, a key is created in URI with a mix of size (width/height), paint method, format and data attributes.
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
Constructor Summary | |
---|---|
HtmlPaint2D()
Constructor to init default renderers |
Method Summary | |
---|---|
java.lang.String |
getAlign()
bottom|middle|top|left|right Deprecated. |
java.lang.String |
getBgcolor()
Background color of painted image. |
java.lang.String |
getBorder()
Deprecated. |
javax.faces.convert.Converter |
getConverter()
Id of Converter to be used or reference to a Converter Getter for converter |
java.lang.Object |
getData()
Value calculated at render time and stored in Image URI (as part of cache Key), at paint time passed to a paint method. |
java.lang.String |
getDir()
Direction indication for text that does not inherit directionality. |
java.lang.String |
getFamily()
|
java.lang.String |
getFormat()
format Name of format for sending a generated image. |
int |
getHeight()
Height in pixels of image (for paint canvas and HTML attribute) Getter for height |
java.lang.String |
getHspace()
Deprecated. |
java.lang.String |
getLang()
Code describing the language used in the generated markup for this component Getter for lang |
javax.faces.el.MethodBinding |
getPaint()
The method calls expression to paint Image on prepared Buffered image. |
java.lang.String |
getStyle()
CSS style(s) is/are to be applied when this component is rendered Getter for style |
java.lang.String |
getStyleClass()
Corresponds to the HTML class attribute Getter for styleClass |
java.lang.String |
getTitle()
Advisory title information about markup elements generated for this component Getter for title |
java.lang.Object |
getValue()
The initial value to set when rendered for the first time Getter for value |
java.lang.String |
getVspace()
Deprecated. |
int |
getWidth()
Width in pixels of image (for paint canvas and HTML attribute) Getter for width |
boolean |
isCacheable()
Supported (or not) client/server caching for generated images. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAlign(java.lang.String __align)
bottom|middle|top|left|right Deprecated. |
void |
setBgcolor(java.lang.String __bgcolor)
Background color of painted image. |
void |
setBorder(java.lang.String __border)
Deprecated. |
void |
setCacheable(boolean __cacheable)
Supported (or not) client/server caching for generated images. |
void |
setConverter(javax.faces.convert.Converter __converter)
Id of Converter to be used or reference to a Converter Setter for converter |
void |
setData(java.lang.Object __data)
Value calculated at render time and stored in Image URI (as part of cache Key), at paint time passed to a paint method. |
void |
setDir(java.lang.String __dir)
Direction indication for text that does not inherit directionality. |
void |
setFormat(java.lang.String __format)
format Name of format for sending a generated image. |
void |
setHeight(int __height)
Height in pixels of image (for paint canvas and HTML attribute) Setter for height |
void |
setHspace(java.lang.String __hspace)
Deprecated. |
void |
setLang(java.lang.String __lang)
Code describing the language used in the generated markup for this component Setter for lang |
void |
setPaint(javax.faces.el.MethodBinding __paint)
The method calls expression to paint Image on prepared Buffered image. |
void |
setStyle(java.lang.String __style)
CSS style(s) is/are to be applied when this component is rendered Setter for style |
void |
setStyleClass(java.lang.String __styleClass)
Corresponds to the HTML class attribute Setter for styleClass |
void |
setTitle(java.lang.String __title)
Advisory title information about markup elements generated for this component Setter for title |
void |
setValue(java.lang.Object __value)
The initial value to set when rendered for the first time Setter for value |
void |
setVspace(java.lang.String __vspace)
Deprecated. |
void |
setWidth(int __width)
Width in pixels of image (for paint canvas and HTML attribute) Setter for width |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
Constructor Detail |
---|
public HtmlPaint2D()
Method Detail |
---|
public void setValue(java.lang.Object __value)
value
- - new valuepublic java.lang.Object getValue()
public void setWidth(int __width)
setWidth
in class UIPaint2D
width
- - new valuepublic int getWidth()
getWidth
in class UIPaint2D
public void setConverter(javax.faces.convert.Converter __converter)
converter
- - new valuepublic javax.faces.convert.Converter getConverter()
public void setLang(java.lang.String __lang)
lang
- - new valuepublic java.lang.String getLang()
public void setTitle(java.lang.String __title)
title
- - new valuepublic java.lang.String getTitle()
public void setDir(java.lang.String __dir)
dir
- - new valuepublic java.lang.String getDir()
public void setStyleClass(java.lang.String __styleClass)
styleClass
- - new valuepublic java.lang.String getStyleClass()
public void setHeight(int __height)
setHeight
in class UIPaint2D
height
- - new valuepublic int getHeight()
getHeight
in class UIPaint2D
public void setData(java.lang.Object __data)
setData
in class UIPaint2D
data
- - new valuepublic java.lang.Object getData()
getData
in class UIPaint2D
public void setAlign(java.lang.String __align)
align
- - new valuepublic java.lang.String getAlign()
public void setHspace(java.lang.String __hspace)
hspace
- - new valuepublic java.lang.String getHspace()
public void setVspace(java.lang.String __vspace)
vspace
- - new valuepublic java.lang.String getVspace()
public void setStyle(java.lang.String __style)
style
- - new valuepublic java.lang.String getStyle()
public void setBgcolor(java.lang.String __bgcolor)
setBgcolor
in class UIPaint2D
bgcolor
- - new valuepublic java.lang.String getBgcolor()
getBgcolor
in class UIPaint2D
public void setCacheable(boolean __cacheable)
setCacheable
in class UIPaint2D
cacheable
- - new valuepublic boolean isCacheable()
isCacheable
in class UIPaint2D
public void setBorder(java.lang.String __border)
border
- - new valuepublic java.lang.String getBorder()
public void setPaint(javax.faces.el.MethodBinding __paint)
setPaint
in class UIPaint2D
paint
- - new valuepublic javax.faces.el.MethodBinding getPaint()
getPaint
in class UIPaint2D
public void setFormat(java.lang.String __format)
setFormat
in class UIPaint2D
format
- - new valuepublic java.lang.String getFormat()
getFormat
in class UIPaint2D
public java.lang.String getFamily()
getFamily
in class javax.faces.component.UIComponent
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |