|
||||||||||
| 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.UICommand
org.rcfaces.core.internal.component.CameliaCommandComponent
org.rcfaces.core.component.AbstractCommandComponent
org.rcfaces.core.component.ButtonComponent
org.rcfaces.core.component.ImageButtonComponent
public class ImageButtonComponent
The imageButton Component is a button Component that can show an image.
The imageButton Component has the following capabilities :
The default imageButton renderer is linked to the f_imageButton javascript class. f_imageButton extends f_component, fa_readOnly, fa_disabled, fa_tabIndex, fa_borderType, fa_images, fa_immediate, fa_value, fa_aria
Table of component style classes:
| Style Name | Description |
|---|---|
| f_imageButton | Defines styles for the wrapper IMG element |
| f_imageButton_text | Defines styles for the wrapper SPAN element for text |
| f_imageButton_image | Defines styles for the wrapper IMG element |
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.internal.component.CameliaCommandComponent |
|---|
engine |
| Fields inherited from class javax.faces.component.UICommand |
|---|
COMPONENT_FAMILY |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Fields inherited from interface org.rcfaces.core.component.capability.IBorderTypeCapability |
|---|
NONE_BORDER_TYPE_NAME |
| Fields inherited from interface org.rcfaces.core.component.capability.ITextPositionCapability |
|---|
BOTTOM_POSITION, TOP_POSITION |
| Fields inherited from interface org.rcfaces.core.component.capability.IHorizontalTextPositionCapability |
|---|
CENTER_POSITION, DEFAULT_POSITION, LEFT_POSITION, RIGHT_POSITION, UNKNOWN_POSITION |
| 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 | |
|---|---|
ImageButtonComponent()
|
|
ImageButtonComponent(String componentId)
|
|
| Method Summary | |
|---|---|
String |
getBorderType()
Returns a string that indicates the type of border the component should show. |
String |
getBorderType(FacesContext facesContext)
See getBorderType() for more details |
protected Set |
getCameliaFields()
|
String |
getDisabledImageURL()
Returns an url string pointing to the image used for the disabled state. |
String |
getDisabledImageURL(FacesContext facesContext)
See getDisabledImageURL() for more details |
String |
getHoverImageURL()
Returns an url string pointing to the image used chen the pointer hover the component. |
String |
getHoverImageURL(FacesContext facesContext)
See getHoverImageURL() for more details |
IContentAccessors |
getImageAccessors()
Returns ImageAccessors associated to the url. |
IContentAccessors |
getImageAccessors(FacesContext facesContext)
|
int |
getImageHeight()
Returns an int value specifying the height (in pixels) to use for the image shown. |
int |
getImageHeight(FacesContext facesContext)
See getImageHeight() for more details |
String |
getImageURL()
Returns the URL of the image. |
String |
getImageURL(FacesContext facesContext)
See getImageURL() for more details |
int |
getImageWidth()
Returns an int value specifying the width (in pixels) to use for the image shown. |
int |
getImageWidth(FacesContext facesContext)
See getImageWidth() for more details |
String |
getSelectedImageURL()
Returns an url string pointing to the image used when the component is selected. |
String |
getSelectedImageURL(FacesContext facesContext)
See getSelectedImageURL() for more details |
int |
getTextPosition()
Returns an int value specifying the position of the text in the component. |
int |
getTextPosition(FacesContext facesContext)
See getTextPosition() for more details |
protected Converter |
getTextPositionConverter()
|
boolean |
isBorder()
Returns a boolean value that indicates if the component should show a border or not. |
boolean |
isBorder(FacesContext facesContext)
See isBorder() for more details |
boolean |
isBorderSetted()
Returns true if the attribute "border" is set. |
boolean |
isBorderTypeSetted()
Returns true if the attribute "borderType" is set. |
boolean |
isDisabledImageURLSetted()
Returns true if the attribute "disabledImageURL" is set. |
boolean |
isHoverImageURLSetted()
Returns true if the attribute "hoverImageURL" is set. |
boolean |
isImageHeightSetted()
Returns true if the attribute "imageHeight" is set. |
boolean |
isImageURLSetted()
Returns true if the attribute "imageURL" is set. |
boolean |
isImageWidthSetted()
Returns true if the attribute "imageWidth" is set. |
boolean |
isSelectedImageURLSetted()
Returns true if the attribute "selectedImageURL" is set. |
boolean |
isTextPositionSetted()
Returns true if the attribute "textPosition" is set. |
void |
setBorder(boolean border)
Sets a boolean value that indicates if the component should show a border or not. |
void |
setBorderType(String borderType)
Sets a string that indicates the type of border the component should show. |
void |
setDisabledImageURL(String disabledImageURL)
Sets an url string pointing to the image used for the disabled state. |
void |
setHoverImageURL(String hoverImageURL)
Sets an url string pointing to the image used chen the pointer hover the component. |
void |
setImageHeight(int imageHeight)
Sets an int value specifying the height (in pixels) to use for the image shown. |
void |
setImageURL(String imageURL)
Specify the URL of the image. |
void |
setImageWidth(int imageWidth)
Sets an int value specifying the width (in pixels) to use for the image shown. |
void |
setSelectedImageURL(String selectedImageURL)
Sets an url string pointing to the image used when the component is selected. |
void |
setTextPosition(int textPosition)
Sets an int value specifying the position of the text in the component. |
void |
setTextPosition(String textPosition)
|
| Methods inherited from class org.rcfaces.core.component.ButtonComponent |
|---|
addSelectionListener, getAlternateText, getAlternateText, getFocusStyleClass, getFocusStyleClass, getText, getText, getTextDirection, getTextDirection, isAlternateTextSetted, isFocusStyleClassSetted, isReadOnly, isReadOnly, isReadOnlySetted, isTextDirectionSetted, isTextSetted, listSelectionListeners, removeSelectionListener, setAlternateText, setFocusStyleClass, setReadOnly, setText, setTextDirection |
| Methods inherited from class org.rcfaces.core.internal.component.CameliaCommandComponent |
|---|
broadcast, clearListeners, confirmListenerAppend, constructPhase, constructTemplate, decodePhase, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getCameliaValueAlias, getChildren, getChildrenListState, getFamily, getRendererType, getTransientAttribute, getValueExpression, hasDefaultProperties, initializeComponent, initializePhase, isClientRendered, isRendered, isTemplateComponent, processDecodes, processEngineUpdates, processEngineValidators, processUpdates, processValidators, queueEvent, renderPhase, restoreState, saveState, setDefaultProperties, setRendered, setTransientAttribute, setValueExpression, toString, updatePhase, validationPhase, verifyAsyncDecode |
| Methods inherited from class javax.faces.component.UICommand |
|---|
addActionListener, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, 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.component.familly.IImageButtonFamilly |
|---|
getTabIndex, getText, isDisabled, isReadOnly |
| Methods inherited from interface org.rcfaces.core.component.capability.ITextCapability |
|---|
getText, setText |
| Methods inherited from interface org.rcfaces.core.component.capability.ISelectionEventCapability |
|---|
addSelectionListener, listSelectionListeners, removeSelectionListener |
| Methods inherited from interface org.rcfaces.core.component.capability.IReadOnlyCapability |
|---|
isReadOnly, setReadOnly |
| Methods inherited from interface org.rcfaces.core.component.capability.IDisabledCapability |
|---|
isDisabled, setDisabled |
| Methods inherited from interface org.rcfaces.core.component.capability.ITabIndexCapability |
|---|
getTabIndex, setTabIndex |
| Methods inherited from interface org.rcfaces.core.component.capability.IImmediateCapability |
|---|
isImmediate, setImmediate |
| Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager |
|---|
getChildCount |
| Field Detail |
|---|
public static final String COMPONENT_TYPE
protected static final Set CAMELIA_ATTRIBUTES
| Constructor Detail |
|---|
public ImageButtonComponent()
public ImageButtonComponent(String componentId)
| Method Detail |
|---|
public IContentAccessors getImageAccessors(FacesContext facesContext)
getImageAccessors in interface IImageButtonFamillygetImageAccessors in interface org.rcfaces.core.internal.capability.IImageAccessorsCapabilityprotected Converter getTextPositionConverter()
public void setTextPosition(String textPosition)
public String getImageURL()
IImageCapability
getImageURL in interface IImageCapabilitypublic String getImageURL(FacesContext facesContext)
getImageURL() for more details
getImageURL in interface IImageButtonFamillypublic final boolean isImageURLSetted()
true if the attribute "imageURL" is set.
true if the attribute is set.public void setImageURL(String imageURL)
IImageCapability
setImageURL in interface IImageCapabilitypublic String getDisabledImageURL()
IStatesImageCapability
getDisabledImageURL in interface IStatesImageCapabilitypublic String getDisabledImageURL(FacesContext facesContext)
getDisabledImageURL() for more details
getDisabledImageURL in interface IImageButtonFamillypublic final boolean isDisabledImageURLSetted()
true if the attribute "disabledImageURL" is set.
true if the attribute is set.public void setDisabledImageURL(String disabledImageURL)
IStatesImageCapability
setDisabledImageURL in interface IStatesImageCapabilitydisabledImageURL - urlpublic String getHoverImageURL()
IStatesImageCapability
getHoverImageURL in interface IStatesImageCapabilitypublic String getHoverImageURL(FacesContext facesContext)
getHoverImageURL() for more details
getHoverImageURL in interface IImageButtonFamillypublic final boolean isHoverImageURLSetted()
true if the attribute "hoverImageURL" is set.
true if the attribute is set.public void setHoverImageURL(String hoverImageURL)
IStatesImageCapability
setHoverImageURL in interface IStatesImageCapabilityhoverImageURL - urlpublic String getSelectedImageURL()
IStatesImageCapability
getSelectedImageURL in interface IStatesImageCapabilitypublic String getSelectedImageURL(FacesContext facesContext)
getSelectedImageURL() for more details
getSelectedImageURL in interface IImageButtonFamillypublic final boolean isSelectedImageURLSetted()
true if the attribute "selectedImageURL" is set.
true if the attribute is set.public void setSelectedImageURL(String selectedImageURL)
IStatesImageCapability
setSelectedImageURL in interface IStatesImageCapabilityselectedImageURL - urlpublic boolean isBorder()
IBorderCapability
isBorder in interface IBorderCapabilitypublic boolean isBorder(FacesContext facesContext)
isBorder() for more details
isBorder in interface IImageButtonFamillypublic final boolean isBorderSetted()
true if the attribute "border" is set.
true if the attribute is set.public void setBorder(boolean border)
IBorderCapability
setBorder in interface IBorderCapabilityborder - booleanpublic String getBorderType()
IBorderTypeCapability
getBorderType in interface IBorderTypeCapabilitypublic String getBorderType(FacesContext facesContext)
getBorderType() for more details
getBorderType in interface IImageButtonFamillypublic final boolean isBorderTypeSetted()
true if the attribute "borderType" is set.
true if the attribute is set.public void setBorderType(String borderType)
IBorderTypeCapability
setBorderType in interface IBorderTypeCapabilityborderType - none|solid|relief|flat|roundedpublic int getTextPosition()
IHorizontalTextPositionCapability
getTextPosition in interface IHorizontalTextPositionCapabilitypublic int getTextPosition(FacesContext facesContext)
getTextPosition() for more details
getTextPosition in interface IImageButtonFamillypublic final boolean isTextPositionSetted()
true if the attribute "textPosition" is set.
true if the attribute is set.public void setTextPosition(int textPosition)
IHorizontalTextPositionCapability
setTextPosition in interface IHorizontalTextPositionCapabilitytextPosition - 0x00:right|0x10:leftpublic int getImageHeight()
IImageSizeCapability
getImageHeight in interface IImageSizeCapabilitypublic int getImageHeight(FacesContext facesContext)
getImageHeight() for more details
getImageHeight in interface IImageButtonFamillypublic final boolean isImageHeightSetted()
true if the attribute "imageHeight" is set.
true if the attribute is set.public void setImageHeight(int imageHeight)
IImageSizeCapability
setImageHeight in interface IImageSizeCapabilityimageHeight - image height in pixelspublic int getImageWidth()
IImageSizeCapability
getImageWidth in interface IImageSizeCapabilitypublic int getImageWidth(FacesContext facesContext)
getImageWidth() for more details
getImageWidth in interface IImageButtonFamillypublic final boolean isImageWidthSetted()
true if the attribute "imageWidth" is set.
true if the attribute is set.public void setImageWidth(int imageWidth)
IImageSizeCapability
setImageWidth in interface IImageSizeCapabilityimageWidth - image width in pixelspublic IContentAccessors getImageAccessors()
IImageCapability
getImageAccessors in interface IImageCapabilityprotected Set getCameliaFields()
getCameliaFields in class ButtonComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||