org.nakedobjects.plugins.dnd
Interface ViewBuilder

All Known Implementing Classes:
AbstractBuilderDecorator, AbstractViewBuilder, ActionFieldBuilder, ApplicationWorkspaceBuilder, CalendarLayout, CollectionElementBuilder, ColumnLayout, DropDownListBuilder, HistogramLayout, LabelledFieldLayout, ObjectFieldBuilder, StackLayout

public interface ViewBuilder


Method Summary
 void build(View view)
           
 View createCompositeView(Content content, CompositeViewSpecification specification, ViewAxis axis)
          Creates the composite view that this builder will create child views for, ie a table, list or form
 ViewAxis createViewAxis()
           
 View decorateSubview(View subview)
           
 ViewBuilder getReference()
           
 Size getRequiredSize(View view)
           
 boolean isOpen()
          Indicates whether this view is expanded, or iconized.
 boolean isReplaceable()
          Indicates whether this view can be replaced with another view (for the same value or reference).
 boolean isSubView()
           
 void layout(View view, Size maximumSize)
           
 void setReference(ViewBuilder design)
           
 

Method Detail

build

void build(View view)

createCompositeView

View createCompositeView(Content content,
                         CompositeViewSpecification specification,
                         ViewAxis axis)
Creates the composite view that this builder will create child views for, ie a table, list or form


createViewAxis

ViewAxis createViewAxis()

decorateSubview

View decorateSubview(View subview)

getReference

ViewBuilder getReference()

getRequiredSize

Size getRequiredSize(View view)

isOpen

boolean isOpen()
Indicates whether this view is expanded, or iconized.

Returns:
true if it is showing the object's details; false if it is showing the object only.

isReplaceable

boolean isReplaceable()
Indicates whether this view can be replaced with another view (for the same value or reference).

Returns:
true if it can be replaced by another view; false if it can't be replaces

isSubView

boolean isSubView()

layout

void layout(View view,
            Size maximumSize)

setReference

void setReference(ViewBuilder design)


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.