org.nakedobjects.plugins.dnd.viewer.basic
Class UnlinedTextFieldSpecification

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.builder.AbstractFieldSpecification
      extended by org.nakedobjects.plugins.dnd.viewer.basic.UnlinedTextFieldSpecification
All Implemented Interfaces:
ViewSpecification

public class UnlinedTextFieldSpecification
extends AbstractFieldSpecification

Creates a single line text field without the baseline being drawn.


Constructor Summary
UnlinedTextFieldSpecification()
           
 
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.
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.builder.AbstractFieldSpecification
isOpen, isReplaceable, isResizeable, isSubView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnlinedTextFieldSpecification

public UnlinedTextFieldSpecification()
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
Overrides:
canDisplay in class AbstractFieldSpecification

createView

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


getName

public java.lang.String getName()

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
Overrides:
isAligned in class AbstractFieldSpecification


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