Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class uk.co.ist.mwt.DlogTemplateLayout

java.lang.Object
  |
  +--uk.co.ist.mwt.MarginLayoutManager
        |
        +--uk.co.ist.mwt.DlogTemplateLayout
Subclasses:
IconDlogTemplateLayout

public class DlogTemplateLayout
extends MarginLayoutManager
The DlogTemplateLayout class is an AWT layout manager class which knows how to lay out its children in a manner mimicking the Motif Dialog Template as produced by setting the dialogType resource on a XmMessageBox to XmDIALOG_TEMPLATE. Menubars, unfortunately, are not handled.

See Also:
Serialized Form

Constructor Summary
DlogTemplateLayout()
           
 
Method Summary
void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Add a component to the layout manager's records.
boolean getMinimizeButtons()
          Get accessor for the /minimizeButtons/ flag
void layoutContainer(java.awt.Container parent)
          Lays out the container.
java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Calculates the minimum size this layout would need to lay out all of the children of the container
java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Calculates the size this layout would like to lay out all of the children of the container
void removeLayoutComponent(java.awt.Component comp)
          Remove a component from the layout manager's records.
void setMinimizeButtons(boolean minimize)
          Accessor to set the layout so that it makes all buttons their preferred sizes, rather than setting them all to the size of the largest.
 
Methods inherited from class uk.co.ist.mwt.MarginLayoutManager
addLayoutComponent, getMarginHeight, getMarginWidth, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setMarginHeight, setMarginWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

DlogTemplateLayout

public DlogTemplateLayout()
Method Detail

setMinimizeButtons

public void setMinimizeButtons(boolean minimize)
Accessor to set the layout so that it makes all buttons their preferred sizes, rather than setting them all to the size of the largest.
See Also:
getMinimizeButtons

getMinimizeButtons

public boolean getMinimizeButtons()
Get accessor for the /minimizeButtons/ flag
See Also:
setMinimizeButtons

layoutContainer

public void layoutContainer(java.awt.Container parent)
Lays out the container. We ignore the menu bar, as it can handle itself well enough (especially on the Mac).
Parameters:
parent - the container to lay out
Overrides:
layoutContainer in class MarginLayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size this layout would need to lay out all of the children of the container
Parameters:
parent - the container
Returns:
the size
Overrides:
minimumLayoutSize in class MarginLayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Calculates the size this layout would like to lay out all of the children of the container
Parameters:
parent - the container
Returns:
the size
Overrides:
preferredLayoutSize in class MarginLayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Remove a component from the layout manager's records. Because we do not associate any extra contraints-type information with a component, its name included, we do not keep an internal list of the components we are meant to be laying out; instead, like the Flow- and GridLayout classes, we construct a new list of Components to lay out each time we are asked to do so. So, removeLayoutComponent is not used.
Parameters:
comp - would be the component to remove.
Overrides:
removeLayoutComponent in class MarginLayoutManager
See Also:
addLayoutComponent

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Add a component to the layout manager's records. Because we do not associate any extra contraints-type information with a component, its name included, we do not keep an internal list of the components we are meant to be laying out; instead, like the Flow- and GridLayout classes, we construct a new list of Components to lay out each time we are asked to do so. So, addLayoutComponent is not used.
Parameters:
comp - would be the component to add.
name - would be the name with which to add the component.
Overrides:
addLayoutComponent in class MarginLayoutManager
See Also:
removeLayoutComponent

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD