org.apache.myfaces.tobago.util
Class LayoutInfo

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

public class LayoutInfo
extends java.lang.Object


Field Summary
static int HIDE
           
 
Constructor Summary
LayoutInfo(int cellCount, int space, LayoutTokens layoutTokens, java.lang.String clientIdForLogging)
           
LayoutInfo(int cellCount, int space, LayoutTokens layoutTokens, java.lang.String clientIdForLogging, boolean ignoreMismatch)
           
 
Method Summary
 boolean columnsLeft()
           
static java.lang.String[] createLayoutTokens(java.lang.String columnLayout, int count, java.lang.String defaultToken)
           
 LayoutTokens getLayoutTokens()
           
 int getSpaceForColumn(int column)
           
 int getSpaceLeft()
           
 java.util.List<java.lang.Integer> getSpaceList()
           
 void handleIllegalTokens()
           
 void handleSpaceLeft()
           
 boolean hasLayoutTokens()
           
 boolean isFree(int column)
           
static java.lang.String listToTokenString(java.util.List list)
           
 void parseColumnLayout(double space)
           
 void parseColumnLayout(double space, int padding)
           
static java.lang.String tokensToString(int[] tokens)
           
static java.lang.String tokensToString(java.lang.String[] tokens)
           
 java.lang.String toString()
           
 void update(int space, int index)
           
 void update(int space, int index, boolean force)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HIDE

public static final int HIDE
See Also:
Constant Field Values
Constructor Detail

LayoutInfo

public LayoutInfo(int cellCount,
                  int space,
                  LayoutTokens layoutTokens,
                  java.lang.String clientIdForLogging)

LayoutInfo

public LayoutInfo(int cellCount,
                  int space,
                  LayoutTokens layoutTokens,
                  java.lang.String clientIdForLogging,
                  boolean ignoreMismatch)
Method Detail

update

public void update(int space,
                   int index)

update

public void update(int space,
                   int index,
                   boolean force)

columnsLeft

public boolean columnsLeft()

handleIllegalTokens

public void handleIllegalTokens()

createLayoutTokens

public static java.lang.String[] createLayoutTokens(java.lang.String columnLayout,
                                                    int count,
                                                    java.lang.String defaultToken)

listToTokenString

public static java.lang.String listToTokenString(java.util.List list)

tokensToString

public static java.lang.String tokensToString(int[] tokens)

tokensToString

public static java.lang.String tokensToString(java.lang.String[] tokens)

isFree

public boolean isFree(int column)

getSpaceForColumn

public int getSpaceForColumn(int column)

getSpaceLeft

public int getSpaceLeft()

getLayoutTokens

public LayoutTokens getLayoutTokens()

hasLayoutTokens

public boolean hasLayoutTokens()

getSpaceList

public java.util.List<java.lang.Integer> getSpaceList()

handleSpaceLeft

public void handleSpaceLeft()

parseColumnLayout

public void parseColumnLayout(double space)

parseColumnLayout

public void parseColumnLayout(double space,
                              int padding)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.