org.tbee.swing.tablelayout
Class TableLayoutUtils

java.lang.Object
  extended by org.tbee.swing.tablelayout.TableLayoutUtils

public class TableLayoutUtils
extends java.lang.Object

Some util methods for TableLayout colPlacing: f = fill rowPlacing f = fill c = centered

Version:
$Revision: 1.2 $

Constructor Summary
TableLayoutUtils()
           
 
Method Summary
static java.lang.String place(int col, int row)
          place in one cell
static java.lang.String place(int col, int row, char colplacing, char rowplacing)
          inside one cell, place somewhere
static java.lang.String place(int col, int row, int colspan)
          start in a cell and span X columns place(1,1) = place(1,1,1)
static java.lang.String place(int col, int row, int col2, int row2)
          span multiple columns and rows
static java.lang.String placeField(int col, int row)
          Inside one cell
static java.lang.String placeField(int col, int row, int colspan)
          Inside one cell full with colspan
static java.lang.String placeLabel(int col, int row)
          Inside one cell, aligned right
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableLayoutUtils

public TableLayoutUtils()
Method Detail

place

public static java.lang.String place(int col,
                                     int row)
place in one cell

Parameters:
col -
row -
Returns:

place

public static java.lang.String place(int col,
                                     int row,
                                     int colspan)
start in a cell and span X columns place(1,1) = place(1,1,1)

Parameters:
col -
row -
colspan -
Returns:

place

public static java.lang.String place(int col,
                                     int row,
                                     int col2,
                                     int row2)
span multiple columns and rows

Parameters:
col -
row -
col2 -
row2 -
Returns:

place

public static java.lang.String place(int col,
                                     int row,
                                     char colplacing,
                                     char rowplacing)
inside one cell, place somewhere

Parameters:
col -
row -
colplacing -
rowplacing -
Returns:

placeLabel

public static java.lang.String placeLabel(int col,
                                          int row)
Inside one cell, aligned right

Parameters:
col -
row -
Returns:

placeField

public static java.lang.String placeField(int col,
                                          int row)
Inside one cell

Parameters:
col -
row -
Returns:

placeField

public static java.lang.String placeField(int col,
                                          int row,
                                          int colspan)
Inside one cell full with colspan

Parameters:
col -
row -
Returns:


Copyright © 2010 KnowledgePlaza. All Rights Reserved.