org.nakedobjects.plugins.dnd.viewer.table
Class AbstractTableSpecification

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.builder.AbstractCompositeViewSpecification
      extended by org.nakedobjects.plugins.dnd.viewer.table.AbstractTableSpecification
All Implemented Interfaces:
CompositeViewSpecification, SubviewSpec, ViewSpecification
Direct Known Subclasses:
InternalTableSpecification, WindowTableSpecification

public abstract class AbstractTableSpecification
extends AbstractCompositeViewSpecification
implements SubviewSpec


Field Summary
 
Fields inherited from class org.nakedobjects.plugins.dnd.viewer.builder.AbstractCompositeViewSpecification
builder
 
Constructor Summary
AbstractTableSpecification()
           
 
Method Summary
protected  ViewAxis axis(Content content)
           
 boolean canDisplay(Content content, ViewRequirement requirement)
          Determines if the view created to this specification can display the specified type.
 View createSubview(Content content, ViewAxis axis, int fieldNumber)
           
protected  View decorateView(View view)
           
protected abstract  View doCreateView(View table, Content content, ViewAxis axis)
           
 java.lang.String getName()
           
 boolean isReplaceable()
          Indicates whether this view can be replaced with another view (for the same value or reference).
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.builder.AbstractCompositeViewSpecification
createView, decorateSubview, getSubviewBuilder, isAligned, isOpen, isSubView, resolveObject
 
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.SubviewSpec
decorateSubview
 

Constructor Detail

AbstractTableSpecification

public AbstractTableSpecification()
Method Detail

canDisplay

public boolean canDisplay(Content content,
                          ViewRequirement requirement)
Description copied from interface: ViewSpecification
Determines if the view created to this specification can display the specified type. Returns true if it can.

Specified by:
canDisplay in interface ViewSpecification

createSubview

public View createSubview(Content content,
                          ViewAxis axis,
                          int fieldNumber)
Specified by:
createSubview in interface SubviewSpec

axis

protected ViewAxis axis(Content content)
Overrides:
axis in class AbstractCompositeViewSpecification

decorateView

protected View decorateView(View view)
Overrides:
decorateView in class AbstractCompositeViewSpecification

doCreateView

protected abstract View doCreateView(View table,
                                     Content content,
                                     ViewAxis axis)

getName

public java.lang.String getName()
Specified by:
getName 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
Overrides:
isReplaceable in class AbstractCompositeViewSpecification
Returns:
true if it can be replaced by another view; false if it can't be replaces


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