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

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.builder.AbstractCompositeViewSpecification
All Implemented Interfaces:
CompositeViewSpecification, ViewSpecification
Direct Known Subclasses:
AbstractFormSpecification, AbstractListSpecification, AbstractTableSpecification, ActionDialogSpecification, CalendarSpecification, ExtendedFormSpecification, GridSpecification, HistogramSpecification, TableRowSpecification, TwoPartViewSpecification

public abstract class AbstractCompositeViewSpecification
extends java.lang.Object
implements CompositeViewSpecification


Field Summary
protected  ViewBuilder builder
           
 
Constructor Summary
AbstractCompositeViewSpecification()
           
 
Method Summary
protected  ViewAxis axis(Content content)
           
 View createView(Content content, ViewAxis axis)
          Create a new view to this specification for the specified context, and using the specified axis if specified (which can be null).
 View decorateSubview(View subview)
           
protected  View decorateView(View view)
           
 ViewBuilder getSubviewBuilder()
           
 boolean isAligned()
          Return true if the generated views are to have their sizes adjusted so they are consistent with surrounding views.
 boolean isOpen()
          Indicates whether views to this specification are open - displaying the attributes of the content object - or are closed - display only the title of the content object.
 boolean isReplaceable()
          Indicates whether this view can be replaced with another view (for the same value or reference).
 boolean isSubView()
           
protected  void resolveObject(Content content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.plugins.dnd.ViewSpecification
canDisplay, getName
 

Field Detail

builder

protected ViewBuilder builder
Constructor Detail

AbstractCompositeViewSpecification

public AbstractCompositeViewSpecification()
Method Detail

createView

public final View createView(Content content,
                             ViewAxis axis)
Description copied from interface: ViewSpecification
Create a new view to this specification for the specified context, and using the specified axis if specified (which can be null).

Specified by:
createView in interface ViewSpecification

axis

protected ViewAxis axis(Content content)

decorateView

protected View decorateView(View view)

getSubviewBuilder

public ViewBuilder getSubviewBuilder()
Specified by:
getSubviewBuilder in interface CompositeViewSpecification

decorateSubview

public View decorateSubview(View subview)

isOpen

public boolean isOpen()
Description copied from interface: ViewSpecification
Indicates whether views to this specification are open - displaying the attributes of the content object - or are closed - display only the title of the content object.

Specified by:
isOpen in interface ViewSpecification

isReplaceable

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

Specified by:
isReplaceable in interface ViewSpecification
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 ViewSpecification

isAligned

public boolean isAligned()
Description copied from interface: ViewSpecification
Return true if the generated views are to have their sizes adjusted so they are consistent with surrounding views.

Specified by:
isAligned in interface ViewSpecification

resolveObject

protected void resolveObject(Content content)


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