|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttablelayout.TableLoc
public class TableLoc
The TableLayout Manager keeps its layout description as a TableLoc, which contains a vector of TableLocRec and of the components. Each TableLocRec defines the component's location information (the row, col, spans, and layout options like justification and sizing controls). The layout describes where components may be placed if and when they become layout-ed. The layout is created from a string by the TableLocRec constructor.
TableLayout
,
TableLocRec
Constructor Summary | |
---|---|
TableLoc()
|
Method Summary | |
---|---|
void |
addElement(TableLoc loc)
Adds a TableLoc vector |
void |
addElement(TableLocRec rec,
Component comp)
Adds a component with its layout |
Object |
clone()
Creates a clone of the object. |
Component |
compElementAt(int index)
Returns the component on a given position |
TableLocRec |
element(Component w)
Returns the TableLocRec layout information of a given component |
int |
numCols()
Returns the number of columns of the layout |
int |
numRows()
Returns the number of rows of the layout |
void |
qsort(int left,
int right,
boolean do_col)
Sorts the colums of row to their position |
TableLocRec |
recElementAt(int index)
Returns the TableLocRec layout information on a given position |
void |
removeElement(Component comp)
Removes the information about a component |
int |
size()
Returns the number of components in the layout |
void |
swap(int one,
int two)
Swap two cells |
String |
toString()
Returns the String representation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableLoc()
Method Detail |
---|
public void addElement(TableLocRec rec, Component comp)
rec
- the layout information of the componentcomp
- the componentpublic void addElement(TableLoc loc)
loc
- the TableLoc vector to addpublic void removeElement(Component comp)
comp
- the componentpublic int size()
public TableLocRec recElementAt(int index)
index
- the index of the informationpublic Component compElementAt(int index)
index
- the index of the informationpublic TableLocRec element(Component w)
w
- the componentpublic int numCols()
public int numRows()
public void qsort(int left, int right, boolean do_col)
left
- left elementright
- right elementdo_col
- are these columns?public void swap(int one, int two)
one
- cell no. 1two
- cell no. 2public Object clone()
clone
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |