|
||||||||||
| 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.AbstractConverterCommandComponent
org.rcfaces.core.component.AbstractMenuComponent
org.rcfaces.core.component.ImageComboComponent
public class ImageComboComponent
The imageCombo Component is a combo Component with an image added to the text.
The imageCombo Component has the following capabilities :
The default imageCombo renderer is linked to the f_imageCombo javascript class. f_imageCombo extends f_imageButton, fa_subMenu, fa_itemsWrapper
Table of component style classes:
| Style Name | Description |
|---|---|
| f_imageCombo | Defines styles for the wrapper DIV element |
| f_imageCheckButton_ctext | Defines styles for the Text element of the combo |
| f_imageCheckButton_cimage | Defines styles for the IMG element of the combo |
| f_menu_popup | Defines styles for the pop-up element of the combo |
| 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.IHiddenModeCapability |
|---|
CLIENT_HIDDEN_MODE, DEFAULT_HIDDEN_MODE, IGNORE_HIDDEN_MODE, PHANTOM_HIDDEN_MODE, SERVER_HIDDEN_MODE |
| Constructor Summary | |
|---|---|
ImageComboComponent()
|
|
ImageComboComponent(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 |
int |
getPopupRowNumber()
Experimental : do not use! |
int |
getPopupRowNumber(FacesContext facesContext)
Experimental : do not use! |
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 |
String |
getText()
Returns a string value specifying the text shown. |
String |
getText(FacesContext facesContext)
See getText() 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 |
isPopupRowNumberSetted()
Returns true if the attribute "popupRowNumber" is set. |
boolean |
isSelectedImageURLSetted()
Returns true if the attribute "selectedImageURL" is set. |
boolean |
isShowDropDownMark()
|
boolean |
isShowDropDownMark(FacesContext facesContext)
See isShowDropDownMark() for more details |
boolean |
isShowDropDownMarkSetted()
Returns true if the attribute "showDropDownMark" is set. |
boolean |
isTextPositionSetted()
Returns true if the attribute "textPosition" is set. |
boolean |
isTextSetted()
Returns true if the attribute "text" 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 |
setPopupRowNumber(int popupRowNumber)
Experimental : do not use! |
void |
setSelectedImageURL(String selectedImageURL)
Sets an url string pointing to the image used when the component is selected. |
void |
setShowDropDownMark(boolean showDropDownMark)
|
void |
setText(String text)
Sets a string value specifying the text to be shown. |
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.AbstractConverterCommandComponent |
|---|
getConverter, getConverter, getLocalValue, setConverter, setConverter, setConverter |
| 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, isDisabled, isReadOnly |
| 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.IUnlockedClientAttributesCapability |
|---|
getUnlockedClientAttributeNames, setUnlockedClientAttributeNames |
| Methods inherited from interface javax.faces.component.ValueHolder |
|---|
getValue, setValue |
| 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 ImageComboComponent()
public ImageComboComponent(String componentId)
| Method Detail |
|---|
protected 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 String getText()
ITextCapability
getText in interface ITextCapabilitypublic String getText(FacesContext facesContext)
getText() for more details
getText in interface IImageButtonFamillypublic 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 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(FacesContext facesContext)
getImageAccessors in interface IImageButtonFamillypublic IContentAccessors getImageAccessors()
IImageCapability
getImageAccessors in interface IImageCapabilitypublic boolean isShowDropDownMark()
isShowDropDownMark in interface IShowDropDownMarkCapabilitypublic boolean isShowDropDownMark(FacesContext facesContext)
isShowDropDownMark() for more details
public final boolean isShowDropDownMarkSetted()
true if the attribute "showDropDownMark" is set.
true if the attribute is set.public void setShowDropDownMark(boolean showDropDownMark)
setShowDropDownMark in interface IShowDropDownMarkCapabilitypublic int getPopupRowNumber()
public int getPopupRowNumber(FacesContext facesContext)
public void setPopupRowNumber(int popupRowNumber)
public boolean isPopupRowNumberSetted()
true if the attribute "popupRowNumber" is set.
true if the attribute is set.protected Set getCameliaFields()
getCameliaFields in class AbstractMenuComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||