[.home.]
[.hacks.]
[.java.]

Class NullLayout

java.lang.Object
  |
  +--NullLayout
All Implemented Interfaces:
java.awt.LayoutManager

public class NullLayout
extends java.lang.Object
implements java.awt.LayoutManager

(#)NullLayout.java

Version:
3.2 19-Mar-2004

A layout to act as an placeholder for the original. Used in BorderPanel to accomplish minimization
Author:
Holger Pfaff

Constructor Summary
NullLayout()
          The default constructor does - nothing
 
Method Summary
 void addLayoutComponent(java.lang.String s, java.awt.Component c)
          catch this to tell the original layout that widget was added
 java.awt.LayoutManager getBaseLayout()
          get current base layout
 void layoutContainer(java.awt.Container C)
          Move all widgets out of sight!
 java.awt.Dimension minimumLayoutSize(java.awt.Container C)
          Layout size is just the border - nothing else
 java.awt.Dimension preferredLayoutSize(java.awt.Container C)
          Layout size is just the border - nothing else
 void removeLayoutComponent(java.awt.Component c)
          catch this to tell the original layout that widget was removed
 void setBaseLayout(java.awt.LayoutManager l)
          replace the base layout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLayout

public NullLayout()
The default constructor does - nothing

Method Detail

layoutContainer

public void layoutContainer(java.awt.Container C)
Move all widgets out of sight!

Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
C - our container

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container C)
Layout size is just the border - nothing else

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
C - our container

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container C)
Layout size is just the border - nothing else

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
C - our container

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component c)
catch this to tell the original layout that widget was removed

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
c - component to remove

addLayoutComponent

public void addLayoutComponent(java.lang.String s,
                               java.awt.Component c)
catch this to tell the original layout that widget was added

Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Parameters:
s - contraints to add component - Layout dependend
c - component to add

setBaseLayout

public void setBaseLayout(java.awt.LayoutManager l)
replace the base layout

Parameters:
l - the new base layout

getBaseLayout

public java.awt.LayoutManager getBaseLayout()
get current base layout


[.home.]
[.hacks.]
[.java.]