com.sun.rave.poweredby.creator
Class PoweredByCreator

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended bycom.sun.rave.poweredby.PoweredBy
              extended bycom.sun.rave.poweredby.creator.PoweredByCreator
All Implemented Interfaces:
javax.faces.component.StateHolder
Direct Known Subclasses:
PoweredByEnterprise

public class PoweredByCreator
extends PoweredBy


Field Summary
 
Fields inherited from class com.sun.rave.poweredby.PoweredBy
COMPONENT_FAMILY, RENDERER_TYPE
 
Constructor Summary
PoweredByCreator()
           
 
Method Summary
protected  java.lang.String getDestinationUrl()
          Get the destination URL.
protected  java.lang.String getImageAlt()
          Get the image alt text.
protected  int getImageHeight()
          Get the image height.
protected  java.lang.String getImageJarPath()
          Get the relative image URL within the jar.
protected  int getImageWidth()
          Get the image width.
 boolean isRounded()
          Get the flag indicating whether the image will be displayed with rounded corners.
 boolean isTall()
          Get the flag indicating whether the words within the image will be stacked vertically, making the image taller.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
          Return the state to be saved for this component.
 void setRounded(boolean rounded)
          Set the flag indicating whether the image will be displayed with rounded corners.
 void setTall(boolean tall)
          Set the flag indicating whether the words within the image will be stacked vertically, making the image taller.
 
Methods inherited from class com.sun.rave.poweredby.PoweredBy
getBundle, getFamily, getStyle, getStyleClass, setStyle, setStyleClass
 
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
 

Constructor Detail

PoweredByCreator

public PoweredByCreator()
Method Detail

isTall

public boolean isTall()

Get the flag indicating whether the words within the image will be stacked vertically, making the image taller. False by default.


setTall

public void setTall(boolean tall)

Set the flag indicating whether the words within the image will be stacked vertically, making the image taller.


isRounded

public boolean isRounded()

Get the flag indicating whether the image will be displayed with rounded corners. True by default.


setRounded

public void setRounded(boolean rounded)

Set the flag indicating whether the image will be displayed with rounded corners.


getImageJarPath

protected java.lang.String getImageJarPath()
Description copied from class: PoweredBy

Get the relative image URL within the jar.

Specified by:
getImageJarPath in class PoweredBy

getDestinationUrl

protected java.lang.String getDestinationUrl()

Get the destination URL.

Specified by:
getDestinationUrl in class PoweredBy

getImageWidth

protected int getImageWidth()

Get the image width.

Specified by:
getImageWidth in class PoweredBy

getImageHeight

protected int getImageHeight()

Get the image height.

Specified by:
getImageHeight in class PoweredBy

getImageAlt

protected java.lang.String getImageAlt()

Get the image alt text.

Specified by:
getImageAlt in class PoweredBy

saveState

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

Return the state to be saved for this component.

Parameters:
context - FacesContext for the current request

restoreState

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