CardLayoutNameCardLayout
DescriptionThe CardLayout LayoutManager provides the means to manage multiple components, displaying one at a time. Components are displayed in the order in which they are added to the layout, or in an arbitrary order by using an assignable name. Class Definition
public class java.awt.CardLayout extends java.lang.Object implements java.awt.LayoutManager2, java.io.Serializable { // Constructors public CardLayout(); public CardLayout (int hgap, int vgap); // Instance Methods public void addLayoutComponent (Component comp, Object constraints); public void addLayoutComponent (String name, Component component); public void first (Container parent); public int getHgap(); public abstract float getLayoutAlignmentX(Container target); public abstract float getLayoutAlignmentY(Container target); public int getVgap(); public abstract void invalidateLayout(Container target); public void last (Container parent); public void layoutContainer (Container target); public abstract Dimension maximumLayoutSize(Container target); public Dimension minimumLayoutSize (Container target); public void next (Container parent); public Dimension preferredLayoutSize (Container target); public void previous (Container parent); public void removeLayoutComponent (Component component); public void setHgap (int hgap); public void setVgap (int vgap); public void show (Container parent, String name); public String toString(); } ConstructorsCardLayoutpublic CardLayout()
public CardLayout (int hgap, int vgap)
Instance MethodsaddLayoutComponentpublic void addLayoutComponent (Component comp, Object constraints)
addLayoutComponentpublic void addLayoutComponent (String name, Component component)
firstpublic void first (Container parent)
getHgappublic int getHgap()
getLayoutAlignmentXpublic abstract float getLayoutAlignmentX (Container target)
getLayoutAlignmentYpublic abstract float getLayoutAlignmentY (Container target)
getVgappublic int getVgap()
invalidateLayoutpublic abstract void invalidateLayout (Container target)
lastpublic void last (Container parent)
layoutContainerpublic void layoutContainer (Container target)
maximumLayoutSizepublic abstract Dimension maximumLayoutSize (Container target)
minimumLayoutSizepublic Dimension minimumLayoutSize (Container target)
nextpublic void next (Container parent)
preferredLayoutSizepublic Dimension preferredLayoutSize (Container target)
previouspublic void previous (Container parent)
removeLayoutComponentpublic void removeLayoutComponent (Component component)
setHgappublic void setHgap (int hgap)
setVgappublic void setVgap (int vgap)
showpublic void show (Container parent, String name)
toStringpublic String toString()
See AlsoComponent, Container, Dimension, LayoutManager, LayoutManager2, Object, String |
|