|
||||||||||
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()
|
java.lang.String |
getBgcolor()
Getter for property bgcolor - background color of painted image |
java.lang.String |
getBorder()
|
javax.faces.convert.Converter |
getConverter()
|
java.lang.Object |
getData()
Getter for property Data to store in URL and passed to pain method. can be used as cache key or parameter for image generation., implementation will be generated by components-generator |
java.lang.String |
getDir()
|
java.lang.String |
getFamily()
|
java.lang.String |
getFormat()
Getter for property output format of image ( suport gif,jpeg,png), implementation will be generated by components-generator |
int |
getHeight()
Getter for property image height, implementation will be generated by components-generator |
java.lang.String |
getHspace()
|
java.lang.String |
getLang()
|
javax.faces.el.MethodBinding |
getPaint()
Getter for property Paint methodBinding, implementation will be generated by components-generator |
java.lang.String |
getStyle()
|
java.lang.String |
getStyleClass()
|
java.lang.String |
getTitle()
|
java.lang.Object |
getValue()
|
java.lang.String |
getVspace()
|
int |
getWidth()
Getter for property image width, implementation will be generated by components-generator |
boolean |
isCacheable()
Getter for property cache support, implementation will be generated by components-generator |
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)
|
void |
setBgcolor(java.lang.String __bgcolor)
Setter for property bgcolor - background color of painted image |
void |
setBorder(java.lang.String __border)
|
void |
setCacheable(boolean __cacheable)
Setter for property cache support, implementation will be generated by components-generator |
void |
setConverter(javax.faces.convert.Converter __converter)
|
void |
setData(java.lang.Object __data)
Setter for property Data to store in URL and passed to pain method. can be used as cache key or parameter for image generation., implementation will be generated by components-generator |
void |
setDir(java.lang.String __dir)
|
void |
setFormat(java.lang.String __format)
Setter for property output format of image ( suport gif,jpeg,png), implementation will be generated by components-generator |
void |
setHeight(int __height)
Setter for property image height, implementation will be generated by components-generator |
void |
setHspace(java.lang.String __hspace)
|
void |
setLang(java.lang.String __lang)
|
void |
setPaint(javax.faces.el.MethodBinding __paint)
Setter for property Paint methodBinding, implementation will be generated by components-generator |
void |
setStyle(java.lang.String __style)
|
void |
setStyleClass(java.lang.String __styleClass)
|
void |
setTitle(java.lang.String __title)
|
void |
setValue(java.lang.Object __value)
|
void |
setVspace(java.lang.String __vspace)
|
void |
setWidth(int __width)
Setter for property image width, implementation will be generated by components-generator |
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)
public java.lang.Object getValue()
public void setWidth(int __width)
UIPaint2D
setWidth
in class UIPaint2D
__width
- - new property valuepublic int getWidth()
UIPaint2D
getWidth
in class UIPaint2D
public void setConverter(javax.faces.convert.Converter __converter)
public javax.faces.convert.Converter getConverter()
public void setLang(java.lang.String __lang)
public java.lang.String getLang()
public void setTitle(java.lang.String __title)
public java.lang.String getTitle()
public void setDir(java.lang.String __dir)
public java.lang.String getDir()
public void setStyleClass(java.lang.String __styleClass)
public java.lang.String getStyleClass()
public void setHeight(int __height)
UIPaint2D
setHeight
in class UIPaint2D
__height
- - new property valuepublic int getHeight()
UIPaint2D
getHeight
in class UIPaint2D
public void setData(java.lang.Object __data)
UIPaint2D
setData
in class UIPaint2D
__data
- - new property valuepublic java.lang.Object getData()
UIPaint2D
getData
in class UIPaint2D
public void setAlign(java.lang.String __align)
public java.lang.String getAlign()
public void setHspace(java.lang.String __hspace)
public java.lang.String getHspace()
public void setVspace(java.lang.String __vspace)
public java.lang.String getVspace()
public void setStyle(java.lang.String __style)
public java.lang.String getStyle()
public void setBgcolor(java.lang.String __bgcolor)
UIPaint2D
setBgcolor
in class UIPaint2D
__bgcolor
- -public java.lang.String getBgcolor()
UIPaint2D
getBgcolor
in class UIPaint2D
public void setCacheable(boolean __cacheable)
UIPaint2D
setCacheable
in class UIPaint2D
__cacheable
- - new property valuepublic boolean isCacheable()
UIPaint2D
isCacheable
in class UIPaint2D
public void setBorder(java.lang.String __border)
public java.lang.String getBorder()
public void setPaint(javax.faces.el.MethodBinding __paint)
UIPaint2D
setPaint
in class UIPaint2D
__paint
- - new property valuepublic javax.faces.el.MethodBinding getPaint()
UIPaint2D
getPaint
in class UIPaint2D
public void setFormat(java.lang.String __format)
UIPaint2D
setFormat
in class UIPaint2D
__format
- - new property valuepublic java.lang.String getFormat()
UIPaint2D
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 |