org.nakedobjects.plugins.dnd.viewer
Class SkylarkViewFactory

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.SkylarkViewFactory
All Implemented Interfaces:
DebugInfo, ViewFactory

public class SkylarkViewFactory
extends java.lang.Object
implements ViewFactory

This class holds all the different view types that all the different objects can be viewed as.


Field Summary
static int INTERNAL
           
static int WINDOW
           
 
Constructor Summary
SkylarkViewFactory()
           
 
Method Summary
 void addCompositeRootViewSpecification(ViewSpecification spec)
          Deprecated.  
 void addCompositeSubviewViewSpecification(ViewSpecification spec)
          Deprecated.  
 void addEmptyFieldSpecification(ViewSpecification spec)
           
 void addObjectIconSpecification(ViewSpecification spec)
          Deprecated.  
 void addRootWorkspaceSpecification(ViewSpecification spec)
          Deprecated.  
 void addServiceIconSpecification(ViewSpecification spec)
          Deprecated.  
 void addSpecification(ViewSpecification spec)
           
 void addSubviewApplicationClassIconSpecification(ViewSpecification spec)
          Deprecated.  
 void addSubviewIconSpecification(ViewSpecification spec)
          Deprecated.  
 void addValueFieldSpecification(ViewSpecification spec)
          Deprecated.  
 void addWorkspaceSpecification(ViewSpecification spec)
          Deprecated.  
 java.util.Enumeration availableViews(ViewRequirement requirement)
           
 java.util.Enumeration closedSubviews(Content forContent, View replacingView)
           
 View createDialog(Content content)
           
 View createDragViewOutline(View view)
           
 View createFieldView(ObjectContent content, ViewAxis axis)
           
 View createFieldView(TextParseableField content, ViewAxis axis)
           
 View createIcon(Content content)
           
 View createInnerWorkspace(Content content)
           
 View createInternalList(OneToManyField content, ViewAxis axis)
           
 View createMinimizedView(View view)
           
 View createView(ViewRequirement requirement)
           
 View createWindow(Content content)
           
 void debugData(DebugString sb)
           
 java.lang.String debugTitle()
           
 ViewSpecification getContentDragSpecification()
           
 ViewSpecification getEmptyFieldSpecification()
           
 ViewSpecification getIconizedRootViewSpecification(Content content)
           
 ViewSpecification getIconizedSubViewSpecification(Content content)
           
 ViewSpecification getOpenSubViewSpecification(ObjectContent content)
          Deprecated. - views should be specific about what subviews they create; and allow the user to change them later
 ViewSpecification getOverlayViewSpecification(Content content)
           
 ViewSpecification getSpecificationForRequirement(ViewRequirement requirement)
           
 ViewSpecification getValueFieldSpecification(TextParseableContent content)
           
 void setDragContentSpecification(ViewSpecification dragContentSpecification)
           
 java.util.Enumeration valueViews(Content forContent, View replacingView)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERNAL

public static final int INTERNAL
See Also:
Constant Field Values

WINDOW

public static final int WINDOW
See Also:
Constant Field Values
Constructor Detail

SkylarkViewFactory

public SkylarkViewFactory()
Method Detail

addSpecification

public void addSpecification(ViewSpecification spec)

addServiceIconSpecification

public void addServiceIconSpecification(ViewSpecification spec)
Deprecated. 


addCompositeRootViewSpecification

public void addCompositeRootViewSpecification(ViewSpecification spec)
Deprecated. 


addCompositeSubviewViewSpecification

public void addCompositeSubviewViewSpecification(ViewSpecification spec)
Deprecated. 


addEmptyFieldSpecification

public void addEmptyFieldSpecification(ViewSpecification spec)

addObjectIconSpecification

public void addObjectIconSpecification(ViewSpecification spec)
Deprecated. 


addSubviewIconSpecification

public void addSubviewIconSpecification(ViewSpecification spec)
Deprecated. 


addSubviewApplicationClassIconSpecification

public void addSubviewApplicationClassIconSpecification(ViewSpecification spec)
Deprecated. 


addValueFieldSpecification

public void addValueFieldSpecification(ViewSpecification spec)
Deprecated. 


addRootWorkspaceSpecification

public void addRootWorkspaceSpecification(ViewSpecification spec)
Deprecated. 


addWorkspaceSpecification

public void addWorkspaceSpecification(ViewSpecification spec)
Deprecated. 


closedSubviews

public java.util.Enumeration closedSubviews(Content forContent,
                                            View replacingView)
Specified by:
closedSubviews in interface ViewFactory

createIcon

public View createIcon(Content content)
Specified by:
createIcon in interface ViewFactory

createWindow

public View createWindow(Content content)
Specified by:
createWindow in interface ViewFactory

createDialog

public View createDialog(Content content)
Specified by:
createDialog in interface ViewFactory

createFieldView

public View createFieldView(ObjectContent content,
                            ViewAxis axis)
Specified by:
createFieldView in interface ViewFactory

createFieldView

public View createFieldView(TextParseableField content,
                            ViewAxis axis)
Specified by:
createFieldView in interface ViewFactory

createInternalList

public View createInternalList(OneToManyField content,
                               ViewAxis axis)
Specified by:
createInternalList in interface ViewFactory

createInnerWorkspace

public View createInnerWorkspace(Content content)
Specified by:
createInnerWorkspace in interface ViewFactory

debugData

public void debugData(DebugString sb)
Specified by:
debugData in interface DebugInfo

debugTitle

public java.lang.String debugTitle()
Specified by:
debugTitle in interface DebugInfo

getContentDragSpecification

public ViewSpecification getContentDragSpecification()
Specified by:
getContentDragSpecification in interface ViewFactory

getEmptyFieldSpecification

public ViewSpecification getEmptyFieldSpecification()

getIconizedRootViewSpecification

public ViewSpecification getIconizedRootViewSpecification(Content content)

getIconizedSubViewSpecification

public ViewSpecification getIconizedSubViewSpecification(Content content)
Specified by:
getIconizedSubViewSpecification in interface ViewFactory

getOpenSubViewSpecification

@Deprecated
public ViewSpecification getOpenSubViewSpecification(ObjectContent content)
Deprecated. - views should be specific about what subviews they create; and allow the user to change them later


getOverlayViewSpecification

public ViewSpecification getOverlayViewSpecification(Content content)
Specified by:
getOverlayViewSpecification in interface ViewFactory

getValueFieldSpecification

public ViewSpecification getValueFieldSpecification(TextParseableContent content)
Specified by:
getValueFieldSpecification in interface ViewFactory

valueViews

public java.util.Enumeration valueViews(Content forContent,
                                        View replacingView)
Specified by:
valueViews in interface ViewFactory

setDragContentSpecification

public void setDragContentSpecification(ViewSpecification dragContentSpecification)

createDragViewOutline

public View createDragViewOutline(View view)
Specified by:
createDragViewOutline in interface ViewFactory

createMinimizedView

public View createMinimizedView(View view)
Specified by:
createMinimizedView in interface ViewFactory

createView

public View createView(ViewRequirement requirement)
Specified by:
createView in interface ViewFactory

getSpecificationForRequirement

public ViewSpecification getSpecificationForRequirement(ViewRequirement requirement)

availableViews

public java.util.Enumeration availableViews(ViewRequirement requirement)
Specified by:
availableViews in interface ViewFactory


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