|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.CardLayout
jaxx.runtime.swing.CardLayout2
public class CardLayout2
An override of the awt CardLayout.
contains(Serializable).
We had also another method to obtain the current visible component in a container layouted by the class,
via the method getVisibleComponent(Container).
| Field Summary | |
|---|---|
protected List<Serializable> |
contexts
list of already loaded context (since the CardLayout.vector attribute is package visible... |
protected boolean |
useOnlyVisibleComponentDimension
A flag to compute dimension only on visible component. |
| Constructor Summary | |
|---|---|
CardLayout2()
|
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
|
protected void |
checkConstraints(String constraints)
|
protected void |
checkContainer(Container container)
|
boolean |
contains(Serializable constraints)
Test if a constrains is contained in the layout. |
Component |
getComponent(Container container,
String constraints)
|
Serializable[] |
getContexts()
|
Component |
getVisibleComponent(Container container)
Obtain the visible component in the container. |
boolean |
isUseOnlyVisibleComponentDimension()
|
void |
layoutContainer(Container parent)
Lays out the specified container using this card layout. |
Dimension |
maximumLayoutSize(Container target)
Returns the maximum dimensions for this layout given the components in the specified target container. |
Dimension |
minimumLayoutSize(Container parent)
Calculates the minimum size for the specified panel. |
Dimension |
preferredLayoutSize(Container parent)
Determines the preferred size of the container argument using this card layout. |
void |
reset(Container parent)
remove from cardlayout and linked container all his components. |
void |
setUseOnlyVisibleComponentDimension(boolean useOnlyVisibleComponentDimension)
|
| Methods inherited from class java.awt.CardLayout |
|---|
addLayoutComponent, first, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getVgap, invalidateLayout, last, next, previous, removeLayoutComponent, setHgap, setVgap, show, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<Serializable> contexts
CardLayout.vector attribute is package visible...
protected boolean useOnlyVisibleComponentDimension
| Constructor Detail |
|---|
public CardLayout2()
| Method Detail |
|---|
public void addLayoutComponent(Component comp,
Object constraints)
addLayoutComponent in interface LayoutManager2addLayoutComponent in class CardLayoutpublic boolean contains(Serializable constraints)
constraints - l'identifiant a tester
true si l'identifiant est deja present dans le
layout, false otherwise.public Component getVisibleComponent(Container container)
container - the container using this layout
public Component getComponent(Container container,
String constraints)
public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpreferredLayoutSize in class CardLayoutparent - the parent container in which to do the layout
Container.getPreferredSize(),
CardLayout.minimumLayoutSize(java.awt.Container)public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerminimumLayoutSize in class CardLayoutparent - the parent container in which to do the layout
Container.doLayout(),
CardLayout.preferredLayoutSize(java.awt.Container)public Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2maximumLayoutSize in class CardLayouttarget - the component which needs to be laid outContainer,
minimumLayoutSize(java.awt.Container),
preferredLayoutSize(java.awt.Container)public void layoutContainer(Container parent)
parent container is reshaped
to be the size of the container, minus space for surrounding
insets, horizontal gaps, and vertical gaps.
layoutContainer in interface LayoutManagerlayoutContainer in class CardLayoutparent - the parent container in which to do the layoutContainer.doLayout()public boolean isUseOnlyVisibleComponentDimension()
public void setUseOnlyVisibleComponentDimension(boolean useOnlyVisibleComponentDimension)
public void reset(Container parent)
parent - the parent container linked with the layoutprotected void checkContainer(Container container)
protected void checkConstraints(String constraints)
public Serializable[] getContexts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||