org.tbee.swing.tablelayout
Class TableLayoutUtils

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

public class TableLayoutUtils
extends Object

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

Version:
$Revision: 1.2 $

Constructor Summary
TableLayoutUtils()
           
 
Method Summary
static String place(int col, int row)
          place in one cell
static String place(int col, int row, char colplacing, char rowplacing)
          inside one cell, place somewhere
static String place(int col, int row, int colspan)
          start in a cell and span X columns place(1,1) = place(1,1,1)
static String place(int col, int row, int col2, int row2)
          span multiple columns and rows
static String placeField(int col, int row)
          Inside one cell
static String placeField(int col, int row, int colspan)
          Inside one cell full with colspan
static 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 String place(int col,
                           int row)
place in one cell

Parameters:
col -
row -
Returns:

place

public static 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 String place(int col,
                           int row,
                           int col2,
                           int row2)
span multiple columns and rows

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

place

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

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

placeLabel

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

Parameters:
col -
row -
Returns:

placeField

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

Parameters:
col -
row -
Returns:

placeField

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

Parameters:
col -
row -
Returns:


Copyright © 2011 KnowledgePlaza. All Rights Reserved.