org.apache.myfaces.tobago.internal.layout
Class Grid

java.lang.Object
  extended by org.apache.myfaces.tobago.internal.layout.Grid

public class Grid
extends Object


Constructor Summary
Grid(LayoutTokens columns, LayoutTokens rows)
           
 
Method Summary
 void add(OriginCell cell, int columnSpan, int rowSpan)
           
 void addError(int i, int j)
           
 BankHead[] getBankHeads(Orientation orientation)
           
 Cell getCell(int column, int row)
           
 Cell getCell(int i, int j, Orientation orientation)
           
 String gridAsString()
          Prints the state of the grid as an Unicode shape like this: ┏━┳━┳━┳━┯━┓ ┃█┃█┃█┃█│➞┃ ┠─╂─╊━╇━┿━┫ ┃⬇┃⬇┃█│➞│➞┃ ┣━╉─╊━╈━╈━┫ ┃█┃⬇┃█┃█┃█┃ ┣━╇━╇━╉─╊━┩ ┃█│➞│➞┃⬇┃◌│ ┡━┿━┿━╉─╂─┤ │◌│◌│◌┃⬇┃◌│ └─┴─┴─┺━┹─┘
 boolean hasError(int i, int j)
           
 boolean isOverflow()
           
 boolean isOverflow(Orientation orientation)
           
 boolean isRowOverflow()
           
 void setCell(int column, int row, Cell cell)
           
 void setColumnOverflow(boolean columnOverflow)
           
 void setOverflow(boolean overflow, Orientation orientation)
           
 void setRowOverflow(boolean rowOverflow)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Grid

public Grid(LayoutTokens columns,
            LayoutTokens rows)
Method Detail

add

public void add(OriginCell cell,
                int columnSpan,
                int rowSpan)

getCell

public Cell getCell(int i,
                    int j,
                    Orientation orientation)

getCell

public Cell getCell(int column,
                    int row)

setCell

public void setCell(int column,
                    int row,
                    Cell cell)

getBankHeads

public BankHead[] getBankHeads(Orientation orientation)

isOverflow

public boolean isOverflow(Orientation orientation)

setOverflow

public void setOverflow(boolean overflow,
                        Orientation orientation)

isOverflow

public boolean isOverflow()

setColumnOverflow

public void setColumnOverflow(boolean columnOverflow)

isRowOverflow

public boolean isRowOverflow()

setRowOverflow

public void setRowOverflow(boolean rowOverflow)

addError

public void addError(int i,
                     int j)

hasError

public boolean hasError(int i,
                        int j)

gridAsString

public String gridAsString()
Prints the state of the grid as an Unicode shape like this: ┏━┳━┳━┳━┯━┓ ┃█┃█┃█┃█│➞┃ ┠─╂─╊━╇━┿━┫ ┃⬇┃⬇┃█│➞│➞┃ ┣━╉─╊━╈━╈━┫ ┃█┃⬇┃█┃█┃█┃ ┣━╇━╇━╉─╊━┩ ┃█│➞│➞┃⬇┃◌│ ┡━┿━┿━╉─╂─┤ │◌│◌│◌┃⬇┃◌│ └─┴─┴─┺━┹─┘


toString

public String toString()
Overrides:
toString in class Object


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