org.apache.myfaces.tobago.util
Class LayoutUtil
java.lang.Object
org.apache.myfaces.tobago.util.LayoutUtil
public final class LayoutUtil
- extends java.lang.Object
Method Summary |
static java.util.List<UIComponent> |
addChildren(java.util.List<UIComponent> children,
UIComponent panel)
|
static int |
calculateFixedHeightForChildren(FacesContext facesContext,
UIComponent component)
|
static boolean |
checkToken(java.lang.String columnToken)
|
static boolean |
checkTokens(java.lang.String columns)
|
static int |
getInnerSpace(FacesContext facesContext,
UIComponent component,
boolean width)
|
static int |
getInnerSpace(FacesContext facesContext,
UIComponent component,
int outerSpace,
boolean width)
|
static int |
getLabelWidth(UIComponent component)
|
static java.lang.Integer |
getLayoutHeight(UIComponent component)
|
static UIComponent |
getLayoutParent(UIComponent component)
|
static java.lang.Integer |
getLayoutSpace(UIComponent component,
java.lang.String sizeAttribute,
java.lang.String layoutAttribute)
|
static java.lang.Integer |
getLayoutWidth(UIComponent component)
|
static java.awt.Dimension |
getMinimumSize(FacesContext facesContext,
UIComponent component)
|
static boolean |
isNumberAndSuffix(java.lang.String token,
java.lang.String suffix)
|
static boolean |
isTransparentForLayout(UIComponent component)
|
static void |
maybeSetLayoutAttribute(UIComponent cell,
java.lang.String attribute,
java.lang.Integer value)
|
static java.lang.String |
removeSuffix(java.lang.String token,
java.lang.String suffix)
|
static void |
setFixLayoutTransparency(boolean fixLayoutTransparency)
|
static java.lang.String |
stripNonNumericChars(java.lang.String token)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInnerSpace
public static int getInnerSpace(FacesContext facesContext,
UIComponent component,
boolean width)
getInnerSpace
public static int getInnerSpace(FacesContext facesContext,
UIComponent component,
int outerSpace,
boolean width)
getLabelWidth
public static int getLabelWidth(UIComponent component)
getLayoutWidth
public static java.lang.Integer getLayoutWidth(UIComponent component)
getLayoutHeight
public static java.lang.Integer getLayoutHeight(UIComponent component)
getLayoutSpace
public static java.lang.Integer getLayoutSpace(UIComponent component,
java.lang.String sizeAttribute,
java.lang.String layoutAttribute)
addChildren
public static java.util.List<UIComponent> addChildren(java.util.List<UIComponent> children,
UIComponent panel)
isTransparentForLayout
public static boolean isTransparentForLayout(UIComponent component)
getLayoutParent
public static UIComponent getLayoutParent(UIComponent component)
maybeSetLayoutAttribute
public static void maybeSetLayoutAttribute(UIComponent cell,
java.lang.String attribute,
java.lang.Integer value)
calculateFixedHeightForChildren
public static int calculateFixedHeightForChildren(FacesContext facesContext,
UIComponent component)
getMinimumSize
public static java.awt.Dimension getMinimumSize(FacesContext facesContext,
UIComponent component)
checkTokens
public static boolean checkTokens(java.lang.String columns)
checkToken
public static boolean checkToken(java.lang.String columnToken)
stripNonNumericChars
public static java.lang.String stripNonNumericChars(java.lang.String token)
isNumberAndSuffix
public static boolean isNumberAndSuffix(java.lang.String token,
java.lang.String suffix)
removeSuffix
public static java.lang.String removeSuffix(java.lang.String token,
java.lang.String suffix)
setFixLayoutTransparency
public static void setFixLayoutTransparency(boolean fixLayoutTransparency)
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.