com.abstractics.xmlpanel.swing
Class XmlPanelLayoutManager

java.lang.Object
  extended bycom.abstractics.xmlpanel.swing.XmlPanelLayoutManager
All Implemented Interfaces:
java.awt.LayoutManager

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

LayoutManager used by the XmlPanel. This layout manager delegates most of its responsibility to the XmlLayout object that it contains.

Version:
$Id: XmlPanelLayoutManager.java,v 1.2 2006/03/15 05:37:43 andyman99 Exp $
Author:
Andrew Lawrence, Copyright 2006 Abstractics, L.L.C., Licensed under the Apache License, Version 2.0

Constructor Summary
(package private) XmlPanelLayoutManager(org.w3c.dom.Element element, XmlPanel panel)
          Package level constructor - this object should only be instantiated through the XmlPanel itself
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Useless -- once the layout manager is constructed it is set in stone, adding components after the fact will do nothing.
 java.awt.Component[] getComponents()
           
 XmlLayout getXmlLayout()
           
 void layoutContainer(java.awt.Container parent)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
 void removeLayoutComponent(java.awt.Component comp)
          Useless -- once the layout manager is constructed it is set in stone, removing components after the fact will do nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlPanelLayoutManager

XmlPanelLayoutManager(org.w3c.dom.Element element,
                      XmlPanel panel)
Package level constructor - this object should only be instantiated through the XmlPanel itself

Parameters:
element - The XML element that is the starting definition of the panel
panel - The XmlPanel that this component is being placed into - for reference only.
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Useless -- once the layout manager is constructed it is set in stone, adding components after the fact will do nothing.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager
See Also:
LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component)

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Useless -- once the layout manager is constructed it is set in stone, removing components after the fact will do nothing.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
See Also:
LayoutManager.removeLayoutComponent(java.awt.Component)

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Specified by:
layoutContainer in interface java.awt.LayoutManager

getXmlLayout

public XmlLayout getXmlLayout()
Returns:
Returns the layout.

getComponents

public java.awt.Component[] getComponents()