|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pagelayout.Cell pagelayout.TabbedPaneCell
public class TabbedPaneCell
TabbedPaneCell encloses a JTabbedPane.
Nested Class Summary | |
---|---|
static class |
TabbedPaneCell.CellManagedPanel
|
Nested classes/interfaces inherited from class pagelayout.Cell |
---|
Cell.Constraint |
Field Summary |
---|
Fields inherited from class pagelayout.Cell |
---|
BASELINE, BOTTOM, boundSpring, CENTER, constraint, filledSizeX, filledSizeY, fixMaxSize, FOUND_NOTREPLACED, FOUND_REPLACED, halign, JUSTIFIED, LEFT, links, MAX, NEWROW, NO_ALIGNMENT, NOT_FOUND, RIGHT, SKIP, TOP, valign |
Constructor Summary | |
---|---|
TabbedPaneCell(javax.swing.JTabbedPane container)
|
Method Summary | |
---|---|
void |
add(java.lang.String name,
Cell p)
|
void |
add(java.lang.String name,
java.awt.Component p)
|
void |
addComponentsToContainer(java.awt.Container parent)
This method may be over-ridden to add components to the container in all the subclasses whose instances may contain components. |
BoundSpring |
computeBoundSpring()
Should be implemented by all the subclasses to compute the two-dimensional spring associated with the cell. |
Cell |
duplicate(ComponentDuplicator c)
|
Cell |
getChildAt(int i)
Should be over-ridden by sub-classes that contain child-cells to return the child associated with the given index, or null if
the index is out of bounds. |
java.awt.Component |
getComponent()
If this cell is a component cell, this method returns the enclosed component. |
Cell |
getTopLevelCell(java.awt.Component c)
|
boolean |
isComponentCell()
Returns true if this cell encloses a component. |
boolean |
isTabCell(int ind)
|
int |
numberOfChildren()
Should be over-ridden by sub-classes that contain child-cells to return the number of children that the object has. |
java.awt.Container |
removeAllComponents(java.awt.Container parent)
Recursively traverses the tree of cells formed with this cell as the root to remove all the cells that contain only components. |
protected void |
setBounds(int x,
int y,
int width,
int height)
This method does nothing here, but all the subclasses must over-ride it to layout, within the specified rectangle of the container, the components which they or their children enclose. |
void |
xmlserialize(XMLPrintStream out,
ComponentXMLSerializer c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TabbedPaneCell(javax.swing.JTabbedPane container)
Method Detail |
---|
public void add(java.lang.String name, java.awt.Component p)
public void add(java.lang.String name, Cell p)
public BoundSpring computeBoundSpring()
Cell
computeBoundSpring
in class Cell
public void addComponentsToContainer(java.awt.Container parent)
Cell
PageLayout
is first constructed,
but may also be called whenever a new component is added via the
replaceCell
method of this class.
Even in the later case, there is no need to call this method
directly.
addComponentsToContainer
in class Cell
parent
- the java.awt.Container object to which the
components should be added.protected void setBounds(int x, int y, int width, int height)
Cell
setBounds
in class Cell
x
- the x-coordinate of the top left of the rectangle.y
- the y-coordinate of the top left of the rectangle.width
- the width of the rectangle.height
- the height of the rectangle.public java.awt.Container removeAllComponents(java.awt.Container parent)
Cell
removeAllComponents
in class Cell
parent
- the container in which the components are placed. If it is null
, the parent is retrieved from the first component that is found in the tree.
public boolean isComponentCell()
Cell
true
if this cell encloses a component.
isComponentCell
in class Cell
true
if this cell encloses a component, false
otherwise.public java.awt.Component getComponent()
Cell
null
is returned.
getComponent
in class Cell
null
if none exists.public Cell duplicate(ComponentDuplicator c)
duplicate
in class Cell
public boolean isTabCell(int ind)
public void xmlserialize(XMLPrintStream out, ComponentXMLSerializer c)
xmlserialize
in class Cell
public int numberOfChildren()
Cell
numberOfChildren
in class Cell
public Cell getChildAt(int i)
Cell
null
if
the index is out of bounds.
getChildAt
in class Cell
i
- the index of the cell that is needed.
null
otherwise.public Cell getTopLevelCell(java.awt.Component c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |