org.nakedobjects.plugins.dnd.viewer.builder
Class ColumnLayout
java.lang.Object
org.nakedobjects.plugins.dnd.viewer.builder.AbstractBuilderDecorator
org.nakedobjects.plugins.dnd.viewer.builder.ColumnLayout
- All Implemented Interfaces:
- ViewBuilder
public class ColumnLayout
- extends AbstractBuilderDecorator
A column layout places component views side by side. Each component is given the space it request. A
components width will be give a consistent width if that component's view specification's
isAligned method returns true, or the layout's fixedWidth flag is
set (via the two parameter constructor).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ColumnLayout
public ColumnLayout(ViewBuilder design)
ColumnLayout
public ColumnLayout(ViewBuilder design,
boolean fixedWidth)
getRequiredSize
public Size getRequiredSize(View view)
- Specified by:
getRequiredSize in interface ViewBuilder- Overrides:
getRequiredSize in class AbstractBuilderDecorator
isOpen
public boolean isOpen()
- Description copied from interface:
ViewBuilder
- Indicates whether this view is expanded, or iconized.
- Specified by:
isOpen in interface ViewBuilder- Overrides:
isOpen in class AbstractBuilderDecorator
- Returns:
- true if it is showing the object's details; false if it is showing the object only.
layout
public void layout(View view,
Size maximumSize)
- Specified by:
layout in interface ViewBuilder- Overrides:
layout in class AbstractBuilderDecorator
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.