org.openfaces.component.output
Class GraphicText

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by org.openfaces.component.OUIOutput
                  extended by org.openfaces.component.output.GraphicText
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, OUIComponent, StyledComponent

public class GraphicText
extends OUIOutput
implements StyledComponent

GraphicText is a component that displays styled rotated text. It has API similar to the standard component, though unlike the component, the GraphicText component displays a text with an image generated on the server. This component can be useful for displaying vertical headers in a table having a lot of thin columns, vertical TabSet components, etc.


Field Summary
static int BOTTOM_TO_TOP
           
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static int LEFT_TO_RIGHT
           
static int RIGHT_TO_LEFT
           
static int TOP_TO_BOTTOM
           
 
Fields inherited from class javax.faces.component.UIComponent
BEANINFO_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY
 
Constructor Summary
GraphicText()
           
 
Method Summary
 StyledComponent[] getComponentsChain()
           
 int getDirection()
           
 java.lang.String getFamily()
           
 java.lang.String getHint()
           
 java.lang.String getLang()
           
 StyleObjectModel getStyleObjectModel()
           
 java.lang.String getTextStyle()
           
 java.lang.String getTitle()
           
 java.lang.Object getValue()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object object)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setDirection(int direction)
           
 void setLang(java.lang.String lang)
           
 void setTextStyle(java.lang.String textStyle)
           
 void setTitle(java.lang.String title)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class org.openfaces.component.OUIOutput
getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRolloverClass, getRolloverStyle, getStyle, getStyleClass, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRolloverClass, setRolloverStyle, setStyle, setStyleClass
 
Methods inherited from class javax.faces.component.UIOutput
clearInitialState, getConverter, getLocalValue, markInitialState, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getValueExpression, initialStateMarked, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree
 
Methods inherited from class java.lang.Object
equals, 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

LEFT_TO_RIGHT

public static final int LEFT_TO_RIGHT
See Also:
Constant Field Values

RIGHT_TO_LEFT

public static final int RIGHT_TO_LEFT
See Also:
Constant Field Values

TOP_TO_BOTTOM

public static final int TOP_TO_BOTTOM
See Also:
Constant Field Values

BOTTOM_TO_TOP

public static final int BOTTOM_TO_TOP
See Also:
Constant Field Values
Constructor Detail

GraphicText

public GraphicText()
Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UIOutput

getTextStyle

public java.lang.String getTextStyle()
Specified by:
getTextStyle in interface StyledComponent

setTextStyle

public void setTextStyle(java.lang.String textStyle)
Specified by:
setTextStyle in interface StyledComponent

getHint

public java.lang.String getHint()
Specified by:
getHint in interface StyledComponent

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface javax.faces.component.ValueHolder
Overrides:
getValue in class javax.faces.component.UIOutput

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface javax.faces.component.ValueHolder
Overrides:
setValue in class javax.faces.component.UIOutput

getDirection

public int getDirection()

setDirection

public void setDirection(int direction)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getLang

public java.lang.String getLang()

setLang

public void setLang(java.lang.String lang)

getStyleObjectModel

public StyleObjectModel getStyleObjectModel()
Specified by:
getStyleObjectModel in interface StyledComponent

getComponentsChain

public StyledComponent[] getComponentsChain()
Specified by:
getComponentsChain in interface StyledComponent

saveState

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

restoreState

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


Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.