|
||||||||||
| 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
javax.faces.component.UIOutput
org.rcfaces.core.internal.component.CameliaOutputComponent
org.rcfaces.core.component.AbstractOutputComponent
org.rcfaces.core.component.TextComponent
public class TextComponent
The text Component is a placeholder for displaying text.
The text Component has the following capabilities :
The default text renderer is linked to the f_text javascript class. f_text extends f_component
Table of component style classes:
| Style Name | Description |
|---|---|
| f_text | Defines styles for the wrapper element |
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
protected static String |
CAMELIA_VALUE_ALIAS
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.internal.component.CameliaOutputComponent |
|---|
engine |
| Fields inherited from class javax.faces.component.UIOutput |
|---|
COMPONENT_FAMILY |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Fields inherited from interface org.rcfaces.core.component.capability.ITextDirectionCapability |
|---|
DEFAULT_TEXT_DIRECTION, LEFT_TO_RIGHT_TEXT_DIRECTION, RIGHT_LEFT_TEXT_DIRECTION |
| Fields inherited from interface org.rcfaces.core.component.capability.IHiddenModeCapability |
|---|
CLIENT_HIDDEN_MODE, DEFAULT_HIDDEN_MODE, IGNORE_HIDDEN_MODE, PHANTOM_HIDDEN_MODE, SERVER_HIDDEN_MODE |
| Constructor Summary | |
|---|---|
TextComponent()
|
|
TextComponent(String componentId)
|
|
| Method Summary | |
|---|---|
String |
getAccessKey()
Returns a string that indicates the alphanumeric key used to execute an action from the keyboard (in conjunction with a alteration key ex : Alt). |
String |
getAccessKey(FacesContext facesContext)
See getAccessKey() for more details |
protected Set |
getCameliaFields()
|
protected String |
getCameliaValueAlias()
|
Boolean |
getFontBold()
Returns a boolean object (or null) indicating the bold property for the specified font. |
Boolean |
getFontBold(FacesContext facesContext)
See getFontBold() for more details |
Boolean |
getFontItalic()
Returns a boolean object (or null) indicating the italic property for the specified font. |
Boolean |
getFontItalic(FacesContext facesContext)
See getFontItalic() for more details |
String |
getFontName()
Returns a string value indicating the name of the font used for this component. |
String |
getFontName(FacesContext facesContext)
See getFontName() for more details |
String |
getFontSize()
Returns a string indicating the size to use for the selected font. |
String |
getFontSize(FacesContext facesContext)
See getFontSize() for more details |
Boolean |
getFontUnderline()
Returns a boolean object (or null) indicating the underline property for the specified font. |
Boolean |
getFontUnderline(FacesContext facesContext)
See getFontUnderline() for more details |
String |
getFor()
Returns a component's id that express the link between the two components. |
String |
getFor(FacesContext facesContext)
See getFor() for more details |
String |
getText()
Returns a string value specifying the text shown. |
String |
getText(FacesContext facesContext)
See getText() for more details |
String |
getTextAlignment()
Returns horizontal alignment. |
String |
getTextAlignment(FacesContext facesContext)
See getTextAlignment() for more details |
int |
getTextDirection()
|
int |
getTextDirection(FacesContext facesContext)
See getTextDirection() for more details |
String |
getType()
|
String |
getType(FacesContext facesContext)
See getType() for more details |
boolean |
isAccessKeySetted()
Returns true if the attribute "accessKey" is set. |
boolean |
isFontBoldSetted()
Returns true if the attribute "fontBold" is set. |
boolean |
isFontItalicSetted()
Returns true if the attribute "fontItalic" is set. |
boolean |
isFontNameSetted()
Returns true if the attribute "fontName" is set. |
boolean |
isFontSizeSetted()
Returns true if the attribute "fontSize" is set. |
boolean |
isFontUnderlineSetted()
Returns true if the attribute "fontUnderline" is set. |
boolean |
isForSetted()
Returns true if the attribute "for" is set. |
boolean |
isTextAlignmentSetted()
Returns true if the attribute "textAlignment" is set. |
boolean |
isTextDirectionSetted()
Returns true if the attribute "textDirection" is set. |
boolean |
isTextSetted()
Returns true if the attribute "text" is set. |
boolean |
isTypeSetted()
Returns true if the attribute "type" is set. |
void |
setAccessKey(String accessKey)
Sets a string that indicates the alphanumeric key used to execute an action from the keyboard (in conjunction with a alteration key ex : Alt). |
void |
setFontBold(Boolean fontBold)
Sets a boolean object (or null) indicating the bold property for the specified font. |
void |
setFontItalic(Boolean fontItalic)
Sets a boolean object (or null) indicating the italic property for the specified font. |
void |
setFontName(String fontName)
Sets a string value indicating the name of the font used for this component. |
void |
setFontSize(String fontSize)
Sets a string indicating the size to use for the selected font. |
void |
setFontUnderline(Boolean fontUnderline)
Sets a boolean object (or null) indicating the underline property for the specified font. |
void |
setFor(String forValue)
Sets a component's id that express the link between the two components. |
void |
setText(String text)
Sets a string value specifying the text to be shown. |
void |
setTextAlignment(String textAlignment)
Specifies horizontal alignment. |
void |
setTextDirection(int textDirection)
|
void |
setType(String type)
|
| Methods inherited from class org.rcfaces.core.internal.component.CameliaOutputComponent |
|---|
clearListeners, confirmListenerAppend, constructPhase, constructTemplate, decodePhase, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getChildren, getChildrenListState, getFamily, getRendererType, getTransientAttribute, getValueExpression, hasDefaultProperties, initializeComponent, initializePhase, isClientRendered, isRendered, isTemplateComponent, processDecodes, processEngineUpdates, processEngineValidators, processUpdates, processValidators, queueEvent, renderPhase, restoreState, saveState, setConverter, setConverter, setDefaultProperties, setRendered, setTransientAttribute, setValueExpression, toString, updatePhase, validationPhase, verifyAsyncDecode |
| Methods inherited from class javax.faces.component.UIOutput |
|---|
getConverter, getLocalValue, getValue, setConverter, setValue |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager |
|---|
getChildCount |
| Methods inherited from interface javax.faces.component.ValueHolder |
|---|
getConverter, getLocalValue, getValue, setConverter, setValue |
| Field Detail |
|---|
public static final String COMPONENT_TYPE
protected static final Set CAMELIA_ATTRIBUTES
protected static final String CAMELIA_VALUE_ALIAS
| Constructor Detail |
|---|
public TextComponent()
public TextComponent(String componentId)
| Method Detail |
|---|
public String getText()
ITextCapability
getText in interface ITextCapabilitypublic String getText(FacesContext facesContext)
getText() for more details
public final boolean isTextSetted()
true if the attribute "text" is set.
true if the attribute is set.public void setText(String text)
ITextCapability
setText in interface ITextCapabilitytext - textpublic int getTextDirection()
getTextDirection in interface ITextDirectionCapabilitypublic int getTextDirection(FacesContext facesContext)
getTextDirection() for more details
public final boolean isTextDirectionSetted()
true if the attribute "textDirection" is set.
true if the attribute is set.public void setTextDirection(int textDirection)
setTextDirection in interface ITextDirectionCapabilitypublic Boolean getFontBold()
IFontCapability
getFontBold in interface IFontCapabilitypublic Boolean getFontBold(FacesContext facesContext)
getFontBold() for more details
public final boolean isFontBoldSetted()
true if the attribute "fontBold" is set.
true if the attribute is set.public void setFontBold(Boolean fontBold)
IFontCapability
setFontBold in interface IFontCapabilityfontBold - True|False|nullpublic Boolean getFontItalic()
IFontCapability
getFontItalic in interface IFontCapabilitypublic Boolean getFontItalic(FacesContext facesContext)
getFontItalic() for more details
public final boolean isFontItalicSetted()
true if the attribute "fontItalic" is set.
true if the attribute is set.public void setFontItalic(Boolean fontItalic)
IFontCapability
setFontItalic in interface IFontCapabilityfontItalic - True|False|nullpublic String getFontName()
IFontCapability
getFontName in interface IFontCapabilitypublic String getFontName(FacesContext facesContext)
getFontName() for more details
public final boolean isFontNameSetted()
true if the attribute "fontName" is set.
true if the attribute is set.public void setFontName(String fontName)
IFontCapability
setFontName in interface IFontCapabilityfontName - font namepublic String getFontSize()
IFontCapability
getFontSize in interface IFontCapabilitypublic String getFontSize(FacesContext facesContext)
getFontSize() for more details
public final boolean isFontSizeSetted()
true if the attribute "fontSize" is set.
true if the attribute is set.public void setFontSize(String fontSize)
IFontCapability
setFontSize in interface IFontCapabilityfontSize - xx-small|x-small|small|medium|large|x-large|xx-large|smaller|larger|length
for example 10px|%public Boolean getFontUnderline()
IFontCapability
getFontUnderline in interface IFontCapabilitypublic Boolean getFontUnderline(FacesContext facesContext)
getFontUnderline() for more details
public final boolean isFontUnderlineSetted()
true if the attribute "fontUnderline" is set.
true if the attribute is set.public void setFontUnderline(Boolean fontUnderline)
IFontCapability
setFontUnderline in interface IFontCapabilityfontUnderline - True|False|nullpublic String getTextAlignment()
ITextAlignmentCapability
getTextAlignment in interface ITextAlignmentCapabilitypublic String getTextAlignment(FacesContext facesContext)
getTextAlignment() for more details
public final boolean isTextAlignmentSetted()
true if the attribute "textAlignment" is set.
true if the attribute is set.public void setTextAlignment(String textAlignment)
ITextAlignmentCapability
setTextAlignment in interface ITextAlignmentCapabilitytextAlignment - text alignmentpublic String getAccessKey()
IAccessKeyCapability
getAccessKey in interface IAccessKeyCapabilitypublic String getAccessKey(FacesContext facesContext)
getAccessKey() for more details
public final boolean isAccessKeySetted()
true if the attribute "accessKey" is set.
true if the attribute is set.public void setAccessKey(String accessKey)
IAccessKeyCapability
setAccessKey in interface IAccessKeyCapabilityaccessKey - <Any alphanumeric key>public String getFor()
IForCapability
getFor in interface IForCapabilitypublic String getFor(FacesContext facesContext)
getFor() for more details
public final boolean isForSetted()
true if the attribute "for" is set.
true if the attribute is set.public void setFor(String forValue)
IForCapability
setFor in interface IForCapabilityforValue - id for a linked componentpublic String getType()
getType in interface ITypedComponentCapabilitypublic String getType(FacesContext facesContext)
getType() for more details
public final boolean isTypeSetted()
true if the attribute "type" is set.
true if the attribute is set.public void setType(String type)
setType in interface ITypedComponentCapabilityprotected Set getCameliaFields()
getCameliaFields in class AbstractOutputComponentprotected String getCameliaValueAlias()
getCameliaValueAlias in class org.rcfaces.core.internal.component.CameliaOutputComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||