org.richfaces.component.html
Class HtmlPaint2D

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.richfaces.component.UIPaint2D
              extended by org.richfaces.component.html.HtmlPaint2D
All Implemented Interfaces:
javax.faces.component.StateHolder

public class HtmlPaint2D
extends UIPaint2D

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

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

HtmlPaint2D

public HtmlPaint2D()
Constructor to init default renderers

Method Detail

setValue

public void setValue(java.lang.Object __value)

getValue

public java.lang.Object getValue()

setWidth

public void setWidth(int __width)
Description copied from class: UIPaint2D
Setter for property image width, implementation will be generated by components-generator

Specified by:
setWidth in class UIPaint2D
Parameters:
__width - - new property value

getWidth

public int getWidth()
Description copied from class: UIPaint2D
Getter for property image width, implementation will be generated by components-generator

Specified by:
getWidth in class UIPaint2D
Returns:
property value

setConverter

public void setConverter(javax.faces.convert.Converter __converter)

getConverter

public javax.faces.convert.Converter getConverter()

setLang

public void setLang(java.lang.String __lang)

getLang

public java.lang.String getLang()

setTitle

public void setTitle(java.lang.String __title)

getTitle

public java.lang.String getTitle()

setDir

public void setDir(java.lang.String __dir)

getDir

public java.lang.String getDir()

setStyleClass

public void setStyleClass(java.lang.String __styleClass)

getStyleClass

public java.lang.String getStyleClass()

setHeight

public void setHeight(int __height)
Description copied from class: UIPaint2D
Setter for property image height, implementation will be generated by components-generator

Specified by:
setHeight in class UIPaint2D
Parameters:
__height - - new property value

getHeight

public int getHeight()
Description copied from class: UIPaint2D
Getter for property image height, implementation will be generated by components-generator

Specified by:
getHeight in class UIPaint2D
Returns:
property value

setData

public void setData(java.lang.Object __data)
Description copied from class: UIPaint2D
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

Specified by:
setData in class UIPaint2D
Parameters:
__data - - new property value

getData

public java.lang.Object getData()
Description copied from class: UIPaint2D
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

Specified by:
getData in class UIPaint2D
Returns:
property value

setAlign

public void setAlign(java.lang.String __align)

getAlign

public java.lang.String getAlign()

setHspace

public void setHspace(java.lang.String __hspace)

getHspace

public java.lang.String getHspace()

setVspace

public void setVspace(java.lang.String __vspace)

getVspace

public java.lang.String getVspace()

setStyle

public void setStyle(java.lang.String __style)

getStyle

public java.lang.String getStyle()

setBgcolor

public void setBgcolor(java.lang.String __bgcolor)
Description copied from class: UIPaint2D
Setter for property bgcolor - background color of painted image

Specified by:
setBgcolor in class UIPaint2D
Parameters:
__bgcolor - -

getBgcolor

public java.lang.String getBgcolor()
Description copied from class: UIPaint2D
Getter for property bgcolor - background color of painted image

Specified by:
getBgcolor in class UIPaint2D
Returns:

setCacheable

public void setCacheable(boolean __cacheable)
Description copied from class: UIPaint2D
Setter for property cache support, implementation will be generated by components-generator

Specified by:
setCacheable in class UIPaint2D
Parameters:
__cacheable - - new property value

isCacheable

public boolean isCacheable()
Description copied from class: UIPaint2D
Getter for property cache support, implementation will be generated by components-generator

Specified by:
isCacheable in class UIPaint2D
Returns:
property value

setBorder

public void setBorder(java.lang.String __border)

getBorder

public java.lang.String getBorder()

setPaint

public void setPaint(javax.faces.el.MethodBinding __paint)
Description copied from class: UIPaint2D
Setter for property Paint methodBinding, implementation will be generated by components-generator

Specified by:
setPaint in class UIPaint2D
Parameters:
__paint - - new property value

getPaint

public javax.faces.el.MethodBinding getPaint()
Description copied from class: UIPaint2D
Getter for property Paint methodBinding, implementation will be generated by components-generator

Specified by:
getPaint in class UIPaint2D
Returns:
property value

setFormat

public void setFormat(java.lang.String __format)
Description copied from class: UIPaint2D
Setter for property output format of image ( suport gif,jpeg,png), implementation will be generated by components-generator

Specified by:
setFormat in class UIPaint2D
Parameters:
__format - - new property value

getFormat

public java.lang.String getFormat()
Description copied from class: UIPaint2D
Getter for property output format of image ( suport gif,jpeg,png), implementation will be generated by components-generator

Specified by:
getFormat in class UIPaint2D
Returns:
property value

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase


Copyright © 2007. All Rights Reserved.