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 AbstractUIStyleAdd 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.stgwith classStyleTagDeclaration.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPONENT_FAMILYstatic StringCOMPONENT_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:
getFamilyin classjakarta.faces.component.UIComponent
-
getFlexGrow
public Float getFlexGrow()
Flex grow value of the element.- Specified by:
getFlexGrowin classAbstractUIStyle
-
setFlexGrow
public void setFlexGrow(Float flexGrow)
- Specified by:
setFlexGrowin classAbstractUIStyle
-
getBackgroundImage
public String getBackgroundImage()
The background image of the element.- Specified by:
getBackgroundImagein classAbstractUIStyle
-
setBackgroundImage
public void setBackgroundImage(String backgroundImage)
- Specified by:
setBackgroundImagein classAbstractUIStyle
-
getPaddingRight
public Measure getPaddingRight()
- Specified by:
getPaddingRightin classAbstractUIStyle
-
setPaddingRight
public void setPaddingRight(Measure paddingRight)
-
getGridColumn
public GridSpan getGridColumn()
Grid column value of the element.- Specified by:
getGridColumnin classAbstractUIStyle
-
setGridColumn
public void setGridColumn(GridSpan gridColumn)
- Specified by:
setGridColumnin classAbstractUIStyle
-
getMinHeight
public Measure getMinHeight()
- Specified by:
getMinHeightin classAbstractUIStyle
-
setMinHeight
public void setMinHeight(Measure minHeight)
-
getMarginRight
public Measure getMarginRight()
- Specified by:
getMarginRightin 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:
getFilein classAbstractUIStyle
-
setFile
public void setFile(String file)
- Specified by:
setFilein classAbstractUIStyle
-
getPaddingBottom
public Measure getPaddingBottom()
- Specified by:
getPaddingBottomin classAbstractUIStyle
-
setPaddingBottom
public void setPaddingBottom(Measure paddingBottom)
-
getTop
public Measure getTop()
- Specified by:
getTopin classAbstractUIStyle
-
setTop
public void setTop(Measure top)
-
getGridRow
public GridSpan getGridRow()
Grid row value of the element.- Specified by:
getGridRowin classAbstractUIStyle
-
setGridRow
public void setGridRow(GridSpan gridRow)
- Specified by:
setGridRowin classAbstractUIStyle
-
getMaxHeight
public Measure getMaxHeight()
- Specified by:
getMaxHeightin classAbstractUIStyle
-
setMaxHeight
public void setMaxHeight(Measure maxHeight)
-
getFlexShrink
public Float getFlexShrink()
Flex shrink value of the element.- Specified by:
getFlexShrinkin classAbstractUIStyle
-
setFlexShrink
public void setFlexShrink(Float flexShrink)
- Specified by:
setFlexShrinkin classAbstractUIStyle
-
getSelector
public String getSelector()
- Specified by:
getSelectorin classAbstractUIStyle
-
setSelector
public void setSelector(String selector)
- Specified by:
setSelectorin classAbstractUIStyle
-
getPaddingTop
public Measure getPaddingTop()
- Specified by:
getPaddingTopin classAbstractUIStyle
-
setPaddingTop
public void setPaddingTop(Measure paddingTop)
-
getHeight
public Measure getHeight()
- Specified by:
getHeightin classAbstractUIStyle
-
setHeight
public void setHeight(Measure height)
- Specified by:
setHeightin classAbstractUIStyle
-
getMaxWidth
public Measure getMaxWidth()
- Specified by:
getMaxWidthin 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:
getTextAlignin classAbstractUIStyle
-
setTextAlign
public void setTextAlign(TextAlign textAlign)
-
getBottom
public Measure getBottom()
- Specified by:
getBottomin classAbstractUIStyle
-
setBottom
public void setBottom(Measure bottom)
-
getDisplay
public Display getDisplay()
- Specified by:
getDisplayin classAbstractUIStyle
-
setDisplay
public void setDisplay(Display display)
-
getFlexBasis
public Measure getFlexBasis()
Flex basis value of the element.- Specified by:
getFlexBasisin classAbstractUIStyle
-
setFlexBasis
public void setFlexBasis(Measure flexBasis)
- Specified by:
setFlexBasisin classAbstractUIStyle
-
getMinWidth
public Measure getMinWidth()
- Specified by:
getMinWidthin classAbstractUIStyle
-
setMinWidth
public void setMinWidth(Measure minWidth)
-
getRight
public Measure getRight()
- Specified by:
getRightin classAbstractUIStyle
-
setRight
public void setRight(Measure right)
-
getMarginLeft
public Measure getMarginLeft()
- Specified by:
getMarginLeftin classAbstractUIStyle
-
setMarginLeft
public void setMarginLeft(Measure marginLeft)
-
getOverflowX
public Overflow getOverflowX()
- Specified by:
getOverflowXin classAbstractUIStyle
-
setOverflowX
public void setOverflowX(Overflow overflowX)
-
getOverflowY
public Overflow getOverflowY()
- Specified by:
getOverflowYin classAbstractUIStyle
-
setOverflowY
public void setOverflowY(Overflow overflowY)
-
getGridTemplateRows
public String getGridTemplateRows()
Grid template rows value of the element.- Specified by:
getGridTemplateRowsin classAbstractUIStyle
-
setGridTemplateRows
public void setGridTemplateRows(String gridTemplateRows)
- Specified by:
setGridTemplateRowsin classAbstractUIStyle
-
getLeft
public Measure getLeft()
- Specified by:
getLeftin classAbstractUIStyle
-
setLeft
public void setLeft(Measure left)
-
getGridTemplateColumns
public String getGridTemplateColumns()
Grid template columns value of the element.- Specified by:
getGridTemplateColumnsin classAbstractUIStyle
-
setGridTemplateColumns
public void setGridTemplateColumns(String gridTemplateColumns)
- Specified by:
setGridTemplateColumnsin classAbstractUIStyle
-
getWidth
public Measure getWidth()
- Specified by:
getWidthin classAbstractUIStyle
-
setWidth
public void setWidth(Measure width)
- Specified by:
setWidthin classAbstractUIStyle
-
getCustomClass
public CustomClass getCustomClass()
- Specified by:
getCustomClassin classAbstractUIStyle
-
setCustomClass
public void setCustomClass(CustomClass customClass)
-
getMarginBottom
public Measure getMarginBottom()
- Specified by:
getMarginBottomin classAbstractUIStyle
-
setMarginBottom
public void setMarginBottom(Measure marginBottom)
-
getPosition
public Position getPosition()
- Specified by:
getPositionin classAbstractUIStyle
-
setPosition
public void setPosition(Position position)
-
getPaddingLeft
public Measure getPaddingLeft()
- Specified by:
getPaddingLeftin classAbstractUIStyle
-
setPaddingLeft
public void setPaddingLeft(Measure paddingLeft)
-
getMarginTop
public Measure getMarginTop()
- Specified by:
getMarginTopin classAbstractUIStyle
-
setMarginTop
public void setMarginTop(Measure marginTop)
-
restoreState
public void restoreState(jakarta.faces.context.FacesContext context, Object state)- Specified by:
restoreStatein interfacejakarta.faces.component.StateHolder- Overrides:
restoreStatein classjakarta.faces.component.UIComponentBase
-
-