javax.swing.plaf.basic
Class BasicInternalFrameUI.InternalFrameLayout

java.lang.Object
  extended by javax.swing.plaf.basic.BasicInternalFrameUI.InternalFrameLayout
All Implemented Interfaces:
LayoutManager
Enclosing class:
BasicInternalFrameUI

public class BasicInternalFrameUI.InternalFrameLayout
extends Object
implements LayoutManager

This helper class acts as the LayoutManager for JInternalFrames.


Constructor Summary
BasicInternalFrameUI.InternalFrameLayout()
           
 
Method Summary
 void addLayoutComponent(String name, Component c)
          This method is called when the given Component is added to the JInternalFrame.
 void layoutContainer(Container c)
          This method is used to set the bounds of the children of the JInternalFrame.
 Dimension minimumLayoutSize(Container c)
          This method returns the minimum layout size.
 Dimension preferredLayoutSize(Container c)
          Th8is method returns the preferred layout size.
 void removeLayoutComponent(Component c)
          This method is called when a Component is removed from the JInternalFrame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicInternalFrameUI.InternalFrameLayout

public BasicInternalFrameUI.InternalFrameLayout()
Method Detail

addLayoutComponent

public void addLayoutComponent(String name,
                               Component c)
This method is called when the given Component is added to the JInternalFrame.

Specified by:
addLayoutComponent in interface LayoutManager
Parameters:
name - The name of the Component.
c - The Component added.

layoutContainer

public void layoutContainer(Container c)
This method is used to set the bounds of the children of the JInternalFrame.

Specified by:
layoutContainer in interface LayoutManager
Parameters:
c - The Container to lay out.

minimumLayoutSize

public Dimension minimumLayoutSize(Container c)
This method returns the minimum layout size.

Specified by:
minimumLayoutSize in interface LayoutManager
Parameters:
c - The Container to find a minimum layout size for.
Returns:
The minimum dimensions for the JInternalFrame.
See Also:
LayoutManager.preferredLayoutSize(Container)

preferredLayoutSize

public Dimension preferredLayoutSize(Container c)
Th8is method returns the preferred layout size.

Specified by:
preferredLayoutSize in interface LayoutManager
Parameters:
c - The Container to find a preferred layout size for.
Returns:
The preferred dimensions for the JInternalFrame.
See Also:
LayoutManager.minimumLayoutSize(Container)

removeLayoutComponent

public void removeLayoutComponent(Component c)
This method is called when a Component is removed from the JInternalFrame.

Specified by:
removeLayoutComponent in interface LayoutManager
Parameters:
c - The Component that was removed.