Class UIStyle
- java.lang.Object
-
- jakarta.faces.component.UIComponent
-
- jakarta.faces.component.UIComponentBase
-
- org.apache.myfaces.tobago.internal.component.AbstractUIStyle
-
- org.apache.myfaces.tobago.component.UIStyle
-
- All Implemented Interfaces:
jakarta.faces.component.PartialStateHolder
,jakarta.faces.component.StateHolder
,jakarta.faces.component.TransientStateHolder
,jakarta.faces.event.ComponentSystemEventListener
,jakarta.faces.event.FacesListener
,jakarta.faces.event.SystemEventListenerHolder
,EventListener
@Generated("component.stg") public class UIStyle extends AbstractUIStyle
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 classStyleTagDeclaration
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPONENT_FAMILY
static String
COMPONENT_TYPE
-
Constructor Summary
Constructors Constructor Description UIStyle()
-
Method Summary
-
Methods inherited from class org.apache.myfaces.tobago.internal.component.AbstractUIStyle
processEvent
-
Methods inherited from class jakarta.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, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, visitTree
-
Methods inherited from class jakarta.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 Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
-
COMPONENT_FAMILY
public static final String COMPONENT_FAMILY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFamily
public String getFamily()
- Specified by:
getFamily
in classjakarta.faces.component.UIComponent
-
getFlexGrow
public Float getFlexGrow()
Flex grow value of the element.- Specified by:
getFlexGrow
in classAbstractUIStyle
-
setFlexGrow
public void setFlexGrow(Float flexGrow)
- Specified by:
setFlexGrow
in classAbstractUIStyle
-
getBackgroundImage
public String getBackgroundImage()
The background image of the element.- Specified by:
getBackgroundImage
in classAbstractUIStyle
-
setBackgroundImage
public void setBackgroundImage(String backgroundImage)
- Specified by:
setBackgroundImage
in classAbstractUIStyle
-
getPaddingRight
public Measure getPaddingRight()
- Specified by:
getPaddingRight
in classAbstractUIStyle
-
setPaddingRight
public void setPaddingRight(Measure paddingRight)
-
getGridColumn
public GridSpan getGridColumn()
Grid column value of the element.- Specified by:
getGridColumn
in classAbstractUIStyle
-
setGridColumn
public void setGridColumn(GridSpan gridColumn)
- Specified by:
setGridColumn
in classAbstractUIStyle
-
getMinHeight
public Measure getMinHeight()
- Specified by:
getMinHeight
in classAbstractUIStyle
-
setMinHeight
public void setMinHeight(Measure minHeight)
-
getMarginRight
public Measure getMarginRight()
- Specified by:
getMarginRight
in classAbstractUIStyle
-
setMarginRight
public void setMarginRight(Measure marginRight)
-
getFile
public String 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
public void setFile(String file)
- Specified by:
setFile
in classAbstractUIStyle
-
getPaddingBottom
public Measure getPaddingBottom()
- Specified by:
getPaddingBottom
in classAbstractUIStyle
-
setPaddingBottom
public void setPaddingBottom(Measure paddingBottom)
-
getTop
public Measure getTop()
- Specified by:
getTop
in classAbstractUIStyle
-
setTop
public void setTop(Measure top)
-
getGridRow
public GridSpan getGridRow()
Grid row value of the element.- Specified by:
getGridRow
in classAbstractUIStyle
-
setGridRow
public void setGridRow(GridSpan gridRow)
- Specified by:
setGridRow
in classAbstractUIStyle
-
getMaxHeight
public Measure getMaxHeight()
- Specified by:
getMaxHeight
in classAbstractUIStyle
-
setMaxHeight
public void setMaxHeight(Measure maxHeight)
-
getFlexShrink
public Float getFlexShrink()
Flex shrink value of the element.- Specified by:
getFlexShrink
in classAbstractUIStyle
-
setFlexShrink
public void setFlexShrink(Float flexShrink)
- Specified by:
setFlexShrink
in classAbstractUIStyle
-
getSelector
public String getSelector()
- Specified by:
getSelector
in classAbstractUIStyle
-
setSelector
public void setSelector(String selector)
- Specified by:
setSelector
in classAbstractUIStyle
-
getPaddingTop
public Measure getPaddingTop()
- Specified by:
getPaddingTop
in classAbstractUIStyle
-
setPaddingTop
public void setPaddingTop(Measure paddingTop)
-
getHeight
public Measure getHeight()
- Specified by:
getHeight
in classAbstractUIStyle
-
setHeight
public void setHeight(Measure height)
- Specified by:
setHeight
in classAbstractUIStyle
-
getMaxWidth
public Measure getMaxWidth()
- Specified by:
getMaxWidth
in classAbstractUIStyle
-
setMaxWidth
public void setMaxWidth(Measure maxWidth)
-
getTextAlign
public TextAlign 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
public void setTextAlign(TextAlign textAlign)
-
getBottom
public Measure getBottom()
- Specified by:
getBottom
in classAbstractUIStyle
-
setBottom
public void setBottom(Measure bottom)
-
getDisplay
public Display getDisplay()
- Specified by:
getDisplay
in classAbstractUIStyle
-
setDisplay
public void setDisplay(Display display)
-
getFlexBasis
public Measure getFlexBasis()
Flex basis value of the element.- Specified by:
getFlexBasis
in classAbstractUIStyle
-
setFlexBasis
public void setFlexBasis(Measure flexBasis)
- Specified by:
setFlexBasis
in classAbstractUIStyle
-
getMinWidth
public Measure getMinWidth()
- Specified by:
getMinWidth
in classAbstractUIStyle
-
setMinWidth
public void setMinWidth(Measure minWidth)
-
getRight
public Measure getRight()
- Specified by:
getRight
in classAbstractUIStyle
-
setRight
public void setRight(Measure right)
-
getMarginLeft
public Measure getMarginLeft()
- Specified by:
getMarginLeft
in classAbstractUIStyle
-
setMarginLeft
public void setMarginLeft(Measure marginLeft)
-
getOverflowX
public Overflow getOverflowX()
- Specified by:
getOverflowX
in classAbstractUIStyle
-
setOverflowX
public void setOverflowX(Overflow overflowX)
-
getOverflowY
public Overflow getOverflowY()
- Specified by:
getOverflowY
in classAbstractUIStyle
-
setOverflowY
public void setOverflowY(Overflow overflowY)
-
getGridTemplateRows
public String getGridTemplateRows()
Grid template rows value of the element.- Specified by:
getGridTemplateRows
in classAbstractUIStyle
-
setGridTemplateRows
public void setGridTemplateRows(String gridTemplateRows)
- Specified by:
setGridTemplateRows
in classAbstractUIStyle
-
getLeft
public Measure getLeft()
- Specified by:
getLeft
in classAbstractUIStyle
-
setLeft
public void setLeft(Measure left)
-
getGridTemplateColumns
public String getGridTemplateColumns()
Grid template columns value of the element.- Specified by:
getGridTemplateColumns
in classAbstractUIStyle
-
setGridTemplateColumns
public void setGridTemplateColumns(String gridTemplateColumns)
- Specified by:
setGridTemplateColumns
in classAbstractUIStyle
-
getWidth
public Measure getWidth()
- Specified by:
getWidth
in classAbstractUIStyle
-
setWidth
public void setWidth(Measure width)
- Specified by:
setWidth
in classAbstractUIStyle
-
getCustomClass
public CustomClass getCustomClass()
- Specified by:
getCustomClass
in classAbstractUIStyle
-
setCustomClass
public void setCustomClass(CustomClass customClass)
-
getMarginBottom
public Measure getMarginBottom()
- Specified by:
getMarginBottom
in classAbstractUIStyle
-
setMarginBottom
public void setMarginBottom(Measure marginBottom)
-
getPosition
public Position getPosition()
- Specified by:
getPosition
in classAbstractUIStyle
-
setPosition
public void setPosition(Position position)
-
getPaddingLeft
public Measure getPaddingLeft()
- Specified by:
getPaddingLeft
in classAbstractUIStyle
-
setPaddingLeft
public void setPaddingLeft(Measure paddingLeft)
-
getMarginTop
public Measure getMarginTop()
- Specified by:
getMarginTop
in classAbstractUIStyle
-
setMarginTop
public void setMarginTop(Measure marginTop)
-
restoreState
public void restoreState(jakarta.faces.context.FacesContext context, Object state)
- Specified by:
restoreState
in interfacejakarta.faces.component.StateHolder
- Overrides:
restoreState
in classjakarta.faces.component.UIComponentBase
-
-