org.apache.myfaces.tobago.util
Class LayoutUtil

java.lang.Object
  extended by org.apache.myfaces.tobago.util.LayoutUtil

public final class LayoutUtil
extends Object


Method Summary
static List<UIComponent> addChildren(List<UIComponent> children, UIComponent panel)
           
static int calculateFixedHeightForChildren(FacesContext facesContext, UIComponent component)
           
static boolean checkToken(String columnToken)
           
static boolean checkTokens(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 Integer getLayoutHeight(UIComponent component)
           
static UIComponent getLayoutParent(UIComponent component)
           
static Integer getLayoutSpace(UIComponent component, String sizeAttribute, String layoutAttribute)
           
static Integer getLayoutWidth(UIComponent component)
           
static Dimension getMinimumSize(FacesContext facesContext, UIComponent component)
           
static boolean isNumberAndSuffix(String token, String suffix)
           
static boolean isTransparentForLayout(UIComponent component)
           
static void maybeSetLayoutAttribute(UIComponent cell, String attribute, Integer value)
           
static String removeSuffix(String token, String suffix)
           
static String stripNonNumericChars(String token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 Integer getLayoutWidth(UIComponent component)

getLayoutHeight

public static Integer getLayoutHeight(UIComponent component)

getLayoutSpace

public static Integer getLayoutSpace(UIComponent component,
                                     String sizeAttribute,
                                     String layoutAttribute)

addChildren

public static List<UIComponent> addChildren(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,
                                           String attribute,
                                           Integer value)

calculateFixedHeightForChildren

public static int calculateFixedHeightForChildren(FacesContext facesContext,
                                                  UIComponent component)

getMinimumSize

public static Dimension getMinimumSize(FacesContext facesContext,
                                       UIComponent component)

checkTokens

public static boolean checkTokens(String columns)

checkToken

public static boolean checkToken(String columnToken)

stripNonNumericChars

public static String stripNonNumericChars(String token)

isNumberAndSuffix

public static boolean isNumberAndSuffix(String token,
                                        String suffix)

removeSuffix

public static String removeSuffix(String token,
                                  String suffix)


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.