org.nakedobjects.metamodel.facets.propparam.multiline
Class MultiLineFacetAbstract

java.lang.Object
  extended by org.nakedobjects.metamodel.facets.FacetAbstract
      extended by org.nakedobjects.metamodel.facets.MultipleValueFacetAbstract
          extended by org.nakedobjects.metamodel.facets.propparam.multiline.MultiLineFacetAbstract
All Implemented Interfaces:
Facet, MultipleValueFacet, MultiLineFacet
Direct Known Subclasses:
MultiLineFacetAnnotation, MultiLineFacetNone

public abstract class MultiLineFacetAbstract
extends MultipleValueFacetAbstract
implements MultiLineFacet


Constructor Summary
MultiLineFacetAbstract(int numberOfLines, boolean preventWrapping, FacetHolder holder)
           
 
Method Summary
 int numberOfLines()
          How many lines to use.
 boolean preventWrapping()
          Whether carriage returns should be used to split over multiple lines or not.
protected  java.lang.String toStringValues()
           
static java.lang.Class<? extends Facet> type()
           
 
Methods inherited from class org.nakedobjects.metamodel.facets.FacetAbstract
alwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toString, unwrapObject, unwrapString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.metamodel.facets.Facet
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet
 

Constructor Detail

MultiLineFacetAbstract

public MultiLineFacetAbstract(int numberOfLines,
                              boolean preventWrapping,
                              FacetHolder holder)
Method Detail

type

public static java.lang.Class<? extends Facet> type()

numberOfLines

public int numberOfLines()
Description copied from interface: MultiLineFacet
How many lines to use.

Specified by:
numberOfLines in interface MultiLineFacet

preventWrapping

public boolean preventWrapping()
Description copied from interface: MultiLineFacet
Whether carriage returns should be used to split over multiple lines or not.

If set to true, then user must use carriage returns to split. If set to false, then the viewer should automatically wrap when spills over the length of one line.

Specified by:
preventWrapping in interface MultiLineFacet

toStringValues

protected java.lang.String toStringValues()
Overrides:
toStringValues in class FacetAbstract


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