org.nakedobjects.plugins.dnd
Interface ViewSpecification

All Known Subinterfaces:
CompositeViewSpecification
All Known Implementing Classes:
AbstractCompositeViewSpecification, AbstractFieldSpecification, AbstractFormSpecification, AbstractListSpecification, AbstractTableSpecification, ActionDialogSpecification, CalendarSpecification, CheckboxField.Specification, ClosedCollectionNodeSpecification, ColorField.Specification, CompositeNodeSpecification, DetailedMessageViewSpecification, DragContentSpecification, EmptyField.Specification, EmptyNodeSpecification, ExpandableListSpecification, ExtendedFormSpecification, FallbackView.Specification, FieldErrorView.Specification, FormWithDetailSpecification, GridSpecification, HistogramSpecification, IconSpecification, ImageField.Specification, InnerWorkspaceSpecification, InternalFormSpecification, InternalFormWithoutCollectionsSpecification, InternalListSpecification, InternalTableSpecification, ListWithDetailSpecification, ListWithExpandableElementsSpecification, MessageDialogSpecification, OpenCollectionNodeSpecification, OpenObjectNodeSpecification, PasswordFieldSpecification, RootIconSpecification, RootWorkspaceSpecification, ServiceIconSpecification, SimpleListSpecification, SubviewIconSpecification, SummaryFormSpecification, SummaryListWindowSpecification, TableRowSpecification, TextFieldSpecification, TreeSpecification, TreeWithDetailSpecification, TwoPartViewSpecification, UnlinedTextFieldSpecification, WindowExpandableFormSpecification, WindowFormSpecification, WindowTableSpecification, WorkspaceSpecification, WrappedTextFieldSpecification

public interface ViewSpecification

Describes a view, and how it is built.


Method Summary
 boolean canDisplay(Content content, ViewRequirement requirement)
          Determines if the view created to this specification can display the specified type.
 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).
 java.lang.String getName()
           
 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()
           
 

Method Detail

createView

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).


getName

java.lang.String getName()

isOpen

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.


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()

canDisplay

boolean canDisplay(Content content,
                   ViewRequirement requirement)
Determines if the view created to this specification can display the specified type. Returns true if it can.


isAligned

boolean isAligned()
Return true if the generated views are to have their sizes adjusted so they are consistent with surrounding views.



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