org.nakedobjects.plugins.dnd.viewer.builder
Class AbstractViewBuilder

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.builder.AbstractViewBuilder
All Implemented Interfaces:
ViewBuilder
Direct Known Subclasses:
ActionFieldBuilder, ApplicationWorkspaceBuilder, CollectionElementBuilder, DropDownListBuilder, ObjectFieldBuilder

public abstract class AbstractViewBuilder
extends java.lang.Object
implements ViewBuilder


Constructor Summary
AbstractViewBuilder()
           
 
Method Summary
abstract  void build(View view)
           
 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)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.plugins.dnd.ViewBuilder
createCompositeView
 

Constructor Detail

AbstractViewBuilder

public AbstractViewBuilder()
Method Detail

build

public abstract void build(View view)
Specified by:
build in interface ViewBuilder

createViewAxis

public ViewAxis createViewAxis()
Specified by:
createViewAxis in interface ViewBuilder

decorateSubview

public View decorateSubview(View subview)
Specified by:
decorateSubview in interface ViewBuilder

getReference

public ViewBuilder getReference()
Specified by:
getReference in interface ViewBuilder

getRequiredSize

public Size getRequiredSize(View view)
Specified by:
getRequiredSize in interface ViewBuilder

isOpen

public boolean isOpen()
Description copied from interface: ViewBuilder
Indicates whether this view is expanded, or iconized.

Specified by:
isOpen in interface ViewBuilder
Returns:
true if it is showing the object's details; false if it is showing the object only.

isReplaceable

public boolean isReplaceable()
Description copied from interface: ViewBuilder
Indicates whether this view can be replaced with another view (for the same value or reference).

Specified by:
isReplaceable in interface ViewBuilder
Returns:
true if it can be replaced by another view; false if it can't be replaces

isSubView

public boolean isSubView()
Specified by:
isSubView in interface ViewBuilder

layout

public void layout(View view,
                   Size maximumSize)
Specified by:
layout in interface ViewBuilder

setReference

public void setReference(ViewBuilder design)
Specified by:
setReference in interface ViewBuilder

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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