|
||||||||||
| 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
org.rcfaces.core.internal.component.CameliaBaseComponent
org.rcfaces.core.component.AbstractBasicComponent
org.rcfaces.core.component.BoxComponent
public class BoxComponent
The Box Component is a container.
It can have a graphical representation or not; But it is mainly used to apply a collective treatment to a set of component, for example show or hide a group of component.
The Box Component has the following capabilities :
The default box renderer is linked to the f_box javascript class. f_box extends f_component, fa_asyncRender, fa_subMenu
Table of component style classes :
| Style Name | Description |
|---|---|
| f_box | Defines styles for the wrapper element of the component |
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.internal.component.CameliaBaseComponent |
|---|
engine |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Fields inherited from interface org.rcfaces.core.component.capability.ILayoutManagerCapability |
|---|
ABSOLUTE_LAYOUT_TYPE, INHERITED_LAYOUT_TYPE, NONE_LAYOUT_TYPE |
| Fields inherited from interface org.rcfaces.core.component.capability.IAsyncRenderModeCapability |
|---|
BUFFER_ASYNC_RENDER_MODE, DEFAULT_ASYNC_RENDER_MODE, NONE_ASYNC_RENDER_MODE, TREE_ASYNC_RENDER_MODE |
| Fields inherited from interface org.rcfaces.core.component.capability.IAsyncDecodeModeCapability |
|---|
COMPLETE_ASYNC_DECODE_MODE, DEFAULT_ASYNC_DECODE_MODE, PARTIAL_ASYNC_DECODE_MODE |
| 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 | |
|---|---|
BoxComponent()
|
|
BoxComponent(String componentId)
|
|
| Method Summary | |
|---|---|
void |
addInitListener(IInitListener listener)
Adds a listener to the component for the init event |
void |
addLoadListener(ILoadListener listener)
Adds a listener to the component for the load event |
void |
addMouseOutListener(IMouseOutListener listener)
Adds a listener to the component for the mouseOut event |
void |
addMouseOverListener(IMouseOverListener listener)
Adds a listener to the component for the mouseOver event |
int |
getAsyncDecodeMode()
Returns a int value that indicates the decoding mode for asynchronous capable component. |
int |
getAsyncDecodeMode(FacesContext facesContext)
See getAsyncDecodeMode() for more details |
int |
getAsyncRenderMode()
Returns a int value that indicates the rendering mode for asynchronous capable component. |
int |
getAsyncRenderMode(FacesContext facesContext)
See getAsyncRenderMode() for more details |
String |
getBackgroundImageHorizontalPosition()
Returns a string indicating the horizontal positionning for the background image. |
String |
getBackgroundImageHorizontalPosition(FacesContext facesContext)
See getBackgroundImageHorizontalPosition() for more details |
String |
getBackgroundImageURL()
Returns an url string pointing to the background image. |
String |
getBackgroundImageURL(FacesContext facesContext)
See getBackgroundImageURL() for more details |
String |
getBackgroundImageVerticalPosition()
Returns a string indicating the vertical positionning for the background image. |
String |
getBackgroundImageVerticalPosition(FacesContext facesContext)
See getBackgroundImageVerticalPosition() for more details |
protected Set |
getCameliaFields()
|
int |
getLayoutType()
|
int |
getLayoutType(FacesContext facesContext)
See getLayoutType() for more details |
IMenuComponent |
getMenu()
Returns the top-most menu associated to the component. |
IMenuComponent |
getMenu(String menuId)
Returns the menu identified by its id from the menus associated to the component. |
String |
getOverStyleClass()
|
String |
getOverStyleClass(FacesContext facesContext)
See getOverStyleClass() for more details |
Object |
getScopeValue()
|
Object |
getScopeValue(FacesContext facesContext)
See getScopeValue() for more details |
String |
getScopeVar()
|
String |
getScopeVar(FacesContext facesContext)
See getScopeVar() for more details |
String |
getType()
|
String |
getType(FacesContext facesContext)
See getType() for more details |
boolean |
isAsyncDecodeModeSetted()
Returns true if the attribute "asyncDecodeMode" is set. |
boolean |
isAsyncRenderModeSetted()
Returns true if the attribute "asyncRenderMode" is set. |
boolean |
isBackgroundImageHorizontalPositionSetted()
Returns true if the attribute "backgroundImageHorizontalPosition" is set. |
boolean |
isBackgroundImageHorizontalRepeat()
Returns a boolean value indicating wether the background image should be repeated horizontally or not. |
boolean |
isBackgroundImageHorizontalRepeat(FacesContext facesContext)
See isBackgroundImageHorizontalRepeat() for more details |
boolean |
isBackgroundImageHorizontalRepeatSetted()
Returns true if the attribute "backgroundImageHorizontalRepeat" is set. |
boolean |
isBackgroundImageURLSetted()
Returns true if the attribute "backgroundImageURL" is set. |
boolean |
isBackgroundImageVerticalPositionSetted()
Returns true if the attribute "backgroundImageVerticalPosition" is set. |
boolean |
isBackgroundImageVerticalRepeat()
Returns a boolean value indicating wether the background image should be repeated vertically or not. |
boolean |
isBackgroundImageVerticalRepeat(FacesContext facesContext)
See isBackgroundImageVerticalRepeat() for more details |
boolean |
isBackgroundImageVerticalRepeatSetted()
Returns true if the attribute "backgroundImageVerticalRepeat" is set. |
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 |
isHorizontalScroll()
Returns a boolean value indicating wether the horizontal scroll is shown. |
boolean |
isHorizontalScroll(FacesContext facesContext)
Returns a boolean value indicating wether the horizontal scroll is shown. |
boolean |
isHorizontalScrollSetted()
Returns true if the attribute "horizontalScroll" is set. |
boolean |
isLayoutTypeSetted()
Returns true if the attribute "layoutType" is set. |
boolean |
isOverStyleClassSetted()
Returns true if the attribute "overStyleClass" is set. |
boolean |
isScopeSaveValue()
|
boolean |
isScopeSaveValue(FacesContext facesContext)
See isScopeSaveValue() for more details |
boolean |
isScopeSaveValueSetted()
Returns true if the attribute "scopeSaveValue" is set. |
boolean |
isScopeValueSetted()
Returns true if the attribute "scopeValue" is set. |
boolean |
isScopeVarSetted()
Returns true if the attribute "scopeVar" is set. |
boolean |
isTypeSetted()
Returns true if the attribute "type" is set. |
boolean |
isVerticalScroll()
Returns a boolean value indicating wether the vertical scroll is shown. |
boolean |
isVerticalScroll(FacesContext facesContext)
Returns a boolean value indicating wether the vertical scroll is shown. |
boolean |
isVerticalScrollSetted()
Returns true if the attribute "verticalScroll" is set. |
FacesListener[] |
listInitListeners()
Returns a list of init listener for the component |
FacesListener[] |
listLoadListeners()
Returns a list of load listener for the component |
IMenuIterator |
listMenus()
Returns a list of all the menus associated to the component. |
FacesListener[] |
listMouseOutListeners()
Returns a list of mouseOut listener for the component |
FacesListener[] |
listMouseOverListeners()
Returns a list of mouseOver listener for the component |
void |
removeInitListener(IInitListener listener)
Removes a listener from the component for the init event |
void |
removeLoadListener(ILoadListener listener)
Removes a listener from the component for the load event |
void |
removeMouseOutListener(IMouseOutListener listener)
Removes a listener from the component for the mouseOut event |
void |
removeMouseOverListener(IMouseOverListener listener)
Removes a listener from the component for the mouseOver event |
void |
setAsyncDecodeMode(int asyncDecodeMode)
Sets a int value that indicates the decoding mode for asynchronous capable component. |
void |
setAsyncDecodeMode(String asyncDecodeMode)
|
void |
setAsyncRenderMode(int asyncRenderMode)
Sets a int value that indicates the rendering mode for asynchronous capable component. |
void |
setAsyncRenderMode(String asyncRenderMode)
|
void |
setBackgroundImageHorizontalPosition(String backgroundImageHorizontalPosition)
Sets a string indicating the horizontal positionning for the background image. |
void |
setBackgroundImageHorizontalRepeat(boolean backgroundImageHorizontalRepeat)
Sets a boolean value indicating wether the background image should be repeated horizontally or not. |
void |
setBackgroundImageURL(String backgroundImageURL)
Sets an url string pointing to the background image. |
void |
setBackgroundImageVerticalPosition(String backgroundImageVerticalPosition)
Sets a string indicating the vertical positionning for the background image. |
void |
setBackgroundImageVerticalRepeat(boolean backgroundImageVerticalRepeat)
Sets a boolean value indicating wether the background image should be repeated vertically or not. |
void |
setBorder(boolean border)
Sets a boolean value that indicates if the component should show a border or not. |
void |
setHorizontalScroll(boolean horizontalScroll)
Sets a boolean value indicating wether the horizontal scroll is shown. |
void |
setLayoutType(int layoutType)
|
void |
setLayoutType(String type)
|
void |
setOverStyleClass(String overStyleClass)
|
void |
setScopeSaveValue(boolean scopeSaveValue)
|
void |
setScopeValue(Object scopeValue)
|
void |
setScopeVar(String scopeVar)
|
void |
setType(String type)
|
void |
setVerticalScroll(boolean verticalScroll)
Sets a boolean value indicating wether the vertical scroll is shown. |
| Methods inherited from class org.rcfaces.core.internal.component.CameliaBaseComponent |
|---|
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.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.capability.IAsyncRenderComponent |
|---|
getAsyncRenderer |
| 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 BoxComponent()
public BoxComponent(String componentId)
| Method Detail |
|---|
public void setAsyncRenderMode(String asyncRenderMode)
public void setAsyncDecodeMode(String asyncDecodeMode)
public void setLayoutType(String type)
public String getBackgroundImageHorizontalPosition()
IBackgroundImageCapability
getBackgroundImageHorizontalPosition in interface IBackgroundImageCapabilitypublic String getBackgroundImageHorizontalPosition(FacesContext facesContext)
getBackgroundImageHorizontalPosition() for more details
public final boolean isBackgroundImageHorizontalPositionSetted()
true if the attribute "backgroundImageHorizontalPosition" is set.
true if the attribute is set.public void setBackgroundImageHorizontalPosition(String backgroundImageHorizontalPosition)
IBackgroundImageCapability
setBackgroundImageHorizontalPosition in interface IBackgroundImageCapabilitybackgroundImageHorizontalPosition - horizontal positionpublic boolean isBackgroundImageHorizontalRepeat()
IBackgroundImageCapability
isBackgroundImageHorizontalRepeat in interface IBackgroundImageCapabilitypublic boolean isBackgroundImageHorizontalRepeat(FacesContext facesContext)
isBackgroundImageHorizontalRepeat() for more details
public final boolean isBackgroundImageHorizontalRepeatSetted()
true if the attribute "backgroundImageHorizontalRepeat" is set.
true if the attribute is set.public void setBackgroundImageHorizontalRepeat(boolean backgroundImageHorizontalRepeat)
IBackgroundImageCapability
setBackgroundImageHorizontalRepeat in interface IBackgroundImageCapabilitybackgroundImageHorizontalRepeat - booleanpublic String getBackgroundImageURL()
IBackgroundImageCapability
getBackgroundImageURL in interface IBackgroundImageCapabilitypublic String getBackgroundImageURL(FacesContext facesContext)
getBackgroundImageURL() for more details
public final boolean isBackgroundImageURLSetted()
true if the attribute "backgroundImageURL" is set.
true if the attribute is set.public void setBackgroundImageURL(String backgroundImageURL)
IBackgroundImageCapability
setBackgroundImageURL in interface IBackgroundImageCapabilitybackgroundImageURL - image urlpublic String getBackgroundImageVerticalPosition()
IBackgroundImageCapability
getBackgroundImageVerticalPosition in interface IBackgroundImageCapabilitypublic String getBackgroundImageVerticalPosition(FacesContext facesContext)
getBackgroundImageVerticalPosition() for more details
public final boolean isBackgroundImageVerticalPositionSetted()
true if the attribute "backgroundImageVerticalPosition" is set.
true if the attribute is set.public void setBackgroundImageVerticalPosition(String backgroundImageVerticalPosition)
IBackgroundImageCapability
setBackgroundImageVerticalPosition in interface IBackgroundImageCapabilitybackgroundImageVerticalPosition - positionpublic boolean isBackgroundImageVerticalRepeat()
IBackgroundImageCapability
isBackgroundImageVerticalRepeat in interface IBackgroundImageCapabilitypublic boolean isBackgroundImageVerticalRepeat(FacesContext facesContext)
isBackgroundImageVerticalRepeat() for more details
public final boolean isBackgroundImageVerticalRepeatSetted()
true if the attribute "backgroundImageVerticalRepeat" is set.
true if the attribute is set.public void setBackgroundImageVerticalRepeat(boolean backgroundImageVerticalRepeat)
IBackgroundImageCapability
setBackgroundImageVerticalRepeat in interface IBackgroundImageCapabilitybackgroundImageVerticalRepeat - booleanpublic boolean isBorder()
IBorderCapability
isBorder in interface IBorderCapabilitypublic boolean isBorder(FacesContext facesContext)
isBorder() for more details
public 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 final void addMouseOutListener(IMouseOutListener listener)
IMouseEventCapability
addMouseOutListener in interface IMouseEventCapabilitylistener - the mouseOut listener to addpublic final void removeMouseOutListener(IMouseOutListener listener)
IMouseEventCapability
removeMouseOutListener in interface IMouseEventCapabilitylistener - the mouseOut listener to removepublic final FacesListener[] listMouseOutListeners()
IMouseEventCapability
listMouseOutListeners in interface IMouseEventCapabilitypublic final void addMouseOverListener(IMouseOverListener listener)
IMouseEventCapability
addMouseOverListener in interface IMouseEventCapabilitylistener - the mouseOver listener to addpublic final void removeMouseOverListener(IMouseOverListener listener)
IMouseEventCapability
removeMouseOverListener in interface IMouseEventCapabilitylistener - the mouseOver listener to removepublic final FacesListener[] listMouseOverListeners()
IMouseEventCapability
listMouseOverListeners in interface IMouseEventCapabilitypublic final void addInitListener(IInitListener listener)
IInitEventCapability
addInitListener in interface IInitEventCapabilitylistener - the init listener to addpublic final void removeInitListener(IInitListener listener)
IInitEventCapability
removeInitListener in interface IInitEventCapabilitylistener - the init listener to removepublic final FacesListener[] listInitListeners()
IInitEventCapability
listInitListeners in interface IInitEventCapabilitypublic final void addLoadListener(ILoadListener listener)
ILoadEventCapability
addLoadListener in interface ILoadEventCapabilitylistener - the load listener to addpublic final void removeLoadListener(ILoadListener listener)
ILoadEventCapability
removeLoadListener in interface ILoadEventCapabilitylistener - the load listener to removepublic final FacesListener[] listLoadListeners()
ILoadEventCapability
listLoadListeners in interface ILoadEventCapabilitypublic int getLayoutType()
getLayoutType in interface ILayoutManagerCapabilitypublic int getLayoutType(FacesContext facesContext)
getLayoutType() for more details
public final boolean isLayoutTypeSetted()
true if the attribute "layoutType" is set.
true if the attribute is set.public void setLayoutType(int layoutType)
setLayoutType in interface ILayoutManagerCapabilitypublic IMenuComponent getMenu()
IMenuCapability
getMenu in interface IMenuCapabilitypublic IMenuComponent getMenu(String menuId)
IMenuCapability
getMenu in interface IMenuCapabilitymenuId - Id for a particular menu
public IMenuIterator listMenus()
IMenuCapability
listMenus in interface IMenuCapabilitypublic int getAsyncRenderMode()
IAsyncRenderModeCapability
getAsyncRenderMode in interface IAsyncRenderModeCapabilitypublic int getAsyncRenderMode(FacesContext facesContext)
getAsyncRenderMode() for more details
public final boolean isAsyncRenderModeSetted()
true if the attribute "asyncRenderMode" is set.
true if the attribute is set.public void setAsyncRenderMode(int asyncRenderMode)
IAsyncRenderModeCapability
setAsyncRenderMode in interface IAsyncRenderModeCapabilityasyncRenderMode - 0:none|1:buffer|2:treepublic int getAsyncDecodeMode()
IAsyncDecodeModeCapability
getAsyncDecodeMode in interface IAsyncDecodeModeCapabilitypublic int getAsyncDecodeMode(FacesContext facesContext)
getAsyncDecodeMode() for more details
public final boolean isAsyncDecodeModeSetted()
true if the attribute "asyncDecodeMode" is set.
true if the attribute is set.public void setAsyncDecodeMode(int asyncDecodeMode)
IAsyncDecodeModeCapability
setAsyncDecodeMode in interface IAsyncDecodeModeCapabilityasyncDecodeMode - 0:complete|1:partialpublic boolean isScopeSaveValue()
isScopeSaveValue in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic boolean isScopeSaveValue(FacesContext facesContext)
isScopeSaveValue() for more details
public final boolean isScopeSaveValueSetted()
true if the attribute "scopeSaveValue" is set.
true if the attribute is set.public void setScopeSaveValue(boolean scopeSaveValue)
setScopeSaveValue in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic Object getScopeValue()
getScopeValue in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic Object getScopeValue(FacesContext facesContext)
getScopeValue() for more details
public final boolean isScopeValueSetted()
true if the attribute "scopeValue" is set.
true if the attribute is set.public void setScopeValue(Object scopeValue)
setScopeValue in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic String getScopeVar()
getScopeVar in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic String getScopeVar(FacesContext facesContext)
getScopeVar() for more details
public final boolean isScopeVarSetted()
true if the attribute "scopeVar" is set.
true if the attribute is set.public void setScopeVar(String scopeVar)
setScopeVar in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic 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 ITypedComponentCapabilitypublic String getOverStyleClass()
getOverStyleClass in interface IOverStyleClassCapabilitypublic String getOverStyleClass(FacesContext facesContext)
getOverStyleClass() for more details
public final boolean isOverStyleClassSetted()
true if the attribute "overStyleClass" is set.
true if the attribute is set.public void setOverStyleClass(String overStyleClass)
setOverStyleClass in interface IOverStyleClassCapabilitypublic boolean isHorizontalScroll()
public boolean isHorizontalScroll(FacesContext facesContext)
public void setHorizontalScroll(boolean horizontalScroll)
horizontalScroll - true if the horizontal scrollbar is to be shownpublic boolean isHorizontalScrollSetted()
true if the attribute "horizontalScroll" is set.
true if the attribute is set.public boolean isVerticalScroll()
public boolean isVerticalScroll(FacesContext facesContext)
public void setVerticalScroll(boolean verticalScroll)
verticalScroll - true if vertical scrollbar is to be shownpublic boolean isVerticalScrollSetted()
true if the attribute "verticalScroll" is set.
true if the attribute is set.protected Set getCameliaFields()
getCameliaFields in class AbstractBasicComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||