Enum LabelLayout
- All Implemented Interfaces:
Serializable,Comparable<LabelLayout>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionflex layout: let the label be on the left sideflex layout: let the label be on the right sideflow layout: let the label be on the left sideflow layout: let the label be on the right sidegrid layout: let the label be on the bottom cell and the input on the top cell.grid layout: let the label be on the left cell and the input on the right cell.grid layout: let the label be on the right cell and the input on the left cell.grid layout: let the label be on the top cell and the input on the bottom cell.do not render the label - same behavior as component without label attributesegment layout: let the label be on the left sidesegment layout: let the label be on the right sideDeprecated.since 5.0.0, not needed, because there is no surrounding container.let the label be on the top of the element -
Method Summary
Modifier and TypeMethodDescriptionstatic LabelLayoutgetSegment(javax.faces.context.FacesContext facesContext) Deprecated.since 5.0.0.static booleanisGridBottom(javax.faces.component.UIComponent component) static booleanisGridLeft(javax.faces.component.UIComponent component) static booleanisGridRight(javax.faces.component.UIComponent component) static booleanisGridTop(javax.faces.component.UIComponent component) static booleanisSegment(LabelLayout labelLayout) static voidremoveSegment(javax.faces.context.FacesContext facesContext) static voidsetSegment(javax.faces.context.FacesContext facesContext, LabelLayout labelLayout) Deprecated.since 5.0.0.static LabelLayoutReturns the enum constant of this type with the specified name.static LabelLayout[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
none
do not render the label - same behavior as component without label attribute -
flexLeft
flex layout: let the label be on the left side -
flexRight
flex layout: let the label be on the right side -
top
let the label be on the top of the element -
segmentLeft
segment layout: let the label be on the left side -
segmentRight
segment layout: let the label be on the right side -
flowLeft
flow layout: let the label be on the left side -
flowRight
flow layout: let the label be on the right side -
skip
Deprecated.since 5.0.0, not needed, because there is no surrounding container.skip rendering the surrounding container. -
gridLeft
grid layout: let the label be on the left cell and the input on the right cell. It uses 2 cells instead of one. -
gridRight
grid layout: let the label be on the right cell and the input on the left cell. It uses 2 cells instead of one. -
gridTop
grid layout: let the label be on the top cell and the input on the bottom cell. It uses 2 cells instead of one. -
gridBottom
grid layout: let the label be on the bottom cell and the input on the top cell. It uses 2 cells instead of one.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isSegment
-
setSegment
@Deprecated public static void setSegment(javax.faces.context.FacesContext facesContext, LabelLayout labelLayout) Deprecated.since 5.0.0. Please useSupportsLabelLayout.setNextToRenderIsLabel(boolean). -
getSegment
Deprecated.since 5.0.0. Please useSupportsLabelLayout.isNextToRenderIsLabel(). -
removeSegment
public static void removeSegment(javax.faces.context.FacesContext facesContext) -
isGridLeft
public static boolean isGridLeft(javax.faces.component.UIComponent component) -
isGridRight
public static boolean isGridRight(javax.faces.component.UIComponent component) -
isGridTop
public static boolean isGridTop(javax.faces.component.UIComponent component) -
isGridBottom
public static boolean isGridBottom(javax.faces.component.UIComponent component)
-