Class UIStyle
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.apache.myfaces.tobago.internal.component.AbstractUIStyle
org.apache.myfaces.tobago.component.UIStyle
- All Implemented Interfaces:
EventListener
,javax.faces.component.PartialStateHolder
,javax.faces.component.StateHolder
,javax.faces.component.TransientStateHolder
,javax.faces.event.ComponentSystemEventListener
,javax.faces.event.FacesListener
,javax.faces.event.SystemEventListenerHolder
Add a style tag with the given file name to the header (using file attribute) or add some CSS styles to the parent component.
UIComponent class, generated from templatecomponent.stg
with class
StyleTagDeclaration
.-
Field Summary
FieldsFields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe background image of the element.getFile()
Name of the stylesheet file to add to page.Flex basis value of the element.Flex grow value of the element.Flex shrink value of the element.Grid column value of the element.Grid row value of the element.Grid template columns value of the element.Grid template rows value of the element.getLeft()
getRight()
The alignment of the elements inside of the container, possible values are: {
Allowed Values:left,right,center,justify
getTop()
getWidth()
void
restoreState
(javax.faces.context.FacesContext context, Object state) void
setBackgroundImage
(String backgroundImage) void
void
setCustomClass
(CustomClass customClass) void
setDisplay
(Display display) void
void
setFlexBasis
(Measure flexBasis) void
setFlexGrow
(Number flexGrow) void
setFlexShrink
(Number flexShrink) void
setGridColumn
(GridSpan gridColumn) void
setGridRow
(GridSpan gridRow) void
setGridTemplateColumns
(String gridTemplateColumns) void
setGridTemplateRows
(String gridTemplateRows) void
void
void
setMarginBottom
(Measure marginBottom) void
setMarginLeft
(Measure marginLeft) void
setMarginRight
(Measure marginRight) void
setMarginTop
(Measure marginTop) void
setMaxHeight
(Measure maxHeight) void
setMaxWidth
(Measure maxWidth) void
setMinHeight
(Measure minHeight) void
setMinWidth
(Measure minWidth) void
setOverflowX
(Overflow overflowX) void
setOverflowY
(Overflow overflowY) void
setPaddingBottom
(Measure paddingBottom) void
setPaddingLeft
(Measure paddingLeft) void
setPaddingRight
(Measure paddingRight) void
setPaddingTop
(Measure paddingTop) void
setPosition
(Position position) void
void
setSelector
(String selector) void
setTextAlign
(TextAlign textAlign) void
void
Methods inherited from class org.apache.myfaces.tobago.internal.component.AbstractUIStyle
processEvent
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree
Methods inherited from class javax.faces.component.UIComponent
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
-
Field Details
-
COMPONENT_TYPE
-
COMPONENT_FAMILY
- See Also:
-
-
Constructor Details
-
UIStyle
public UIStyle()
-
-
Method Details
-
getFamily
- Specified by:
getFamily
in classjavax.faces.component.UIComponent
-
getFlexGrow
Flex grow value of the element.- Specified by:
getFlexGrow
in classAbstractUIStyle
-
setFlexGrow
- Specified by:
setFlexGrow
in classAbstractUIStyle
-
getBackgroundImage
The background image of the element.- Specified by:
getBackgroundImage
in classAbstractUIStyle
-
setBackgroundImage
- Specified by:
setBackgroundImage
in classAbstractUIStyle
-
getPaddingRight
- Specified by:
getPaddingRight
in classAbstractUIStyle
-
setPaddingRight
-
getGridColumn
Grid column value of the element.- Specified by:
getGridColumn
in classAbstractUIStyle
-
setGridColumn
- Specified by:
setGridColumn
in classAbstractUIStyle
-
getMinHeight
- Specified by:
getMinHeight
in classAbstractUIStyle
-
setMinHeight
-
getMarginRight
- Specified by:
getMarginRight
in classAbstractUIStyle
-
setMarginRight
-
getFile
Name of the stylesheet file to add to page. The name must be full qualified, or relative. If using a complete path from root, you'll need to add the contextPath from the web application. This can be done with the EL #{request.contextPath}.- Specified by:
getFile
in classAbstractUIStyle
-
setFile
- Specified by:
setFile
in classAbstractUIStyle
-
getPaddingBottom
- Specified by:
getPaddingBottom
in classAbstractUIStyle
-
setPaddingBottom
-
getTop
- Specified by:
getTop
in classAbstractUIStyle
-
setTop
-
getGridRow
Grid row value of the element.- Specified by:
getGridRow
in classAbstractUIStyle
-
setGridRow
- Specified by:
setGridRow
in classAbstractUIStyle
-
getMaxHeight
- Specified by:
getMaxHeight
in classAbstractUIStyle
-
setMaxHeight
-
getFlexShrink
Flex shrink value of the element.- Specified by:
getFlexShrink
in classAbstractUIStyle
-
setFlexShrink
- Specified by:
setFlexShrink
in classAbstractUIStyle
-
getSelector
- Specified by:
getSelector
in classAbstractUIStyle
-
setSelector
- Specified by:
setSelector
in classAbstractUIStyle
-
getPaddingTop
- Specified by:
getPaddingTop
in classAbstractUIStyle
-
setPaddingTop
-
getHeight
- Specified by:
getHeight
in classAbstractUIStyle
-
setHeight
- Specified by:
setHeight
in classAbstractUIStyle
-
getMaxWidth
- Specified by:
getMaxWidth
in classAbstractUIStyle
-
setMaxWidth
-
getTextAlign
The alignment of the elements inside of the container, possible values are: {
Allowed Values:left,right,center,justify
- Specified by:
getTextAlign
in classAbstractUIStyle
-
setTextAlign
-
getBottom
- Specified by:
getBottom
in classAbstractUIStyle
-
setBottom
-
getDisplay
- Specified by:
getDisplay
in classAbstractUIStyle
-
setDisplay
-
getFlexBasis
Flex basis value of the element.- Specified by:
getFlexBasis
in classAbstractUIStyle
-
setFlexBasis
- Specified by:
setFlexBasis
in classAbstractUIStyle
-
getMinWidth
- Specified by:
getMinWidth
in classAbstractUIStyle
-
setMinWidth
-
getRight
- Specified by:
getRight
in classAbstractUIStyle
-
setRight
-
getMarginLeft
- Specified by:
getMarginLeft
in classAbstractUIStyle
-
setMarginLeft
-
getOverflowX
- Specified by:
getOverflowX
in classAbstractUIStyle
-
setOverflowX
-
getOverflowY
- Specified by:
getOverflowY
in classAbstractUIStyle
-
setOverflowY
-
getGridTemplateRows
Grid template rows value of the element.- Specified by:
getGridTemplateRows
in classAbstractUIStyle
-
setGridTemplateRows
- Specified by:
setGridTemplateRows
in classAbstractUIStyle
-
getLeft
- Specified by:
getLeft
in classAbstractUIStyle
-
setLeft
-
getGridTemplateColumns
Grid template columns value of the element.- Specified by:
getGridTemplateColumns
in classAbstractUIStyle
-
setGridTemplateColumns
- Specified by:
setGridTemplateColumns
in classAbstractUIStyle
-
getWidth
- Specified by:
getWidth
in classAbstractUIStyle
-
setWidth
- Specified by:
setWidth
in classAbstractUIStyle
-
getCustomClass
- Specified by:
getCustomClass
in classAbstractUIStyle
-
setCustomClass
-
getMarginBottom
- Specified by:
getMarginBottom
in classAbstractUIStyle
-
setMarginBottom
-
getPosition
- Specified by:
getPosition
in classAbstractUIStyle
-
setPosition
-
getPaddingLeft
- Specified by:
getPaddingLeft
in classAbstractUIStyle
-
setPaddingLeft
-
getMarginTop
- Specified by:
getMarginTop
in classAbstractUIStyle
-
setMarginTop
-
restoreState
- Specified by:
restoreState
in interfacejavax.faces.component.StateHolder
- Overrides:
restoreState
in classjavax.faces.component.UIComponentBase
-