org.eclipse.gmt.umlx.editor.facets
Class TextFacet

java.lang.Object
  extended by org.eclipse.gmt.umlx.editor.facets.AbstractFacet<GStickyNote>
      extended by org.eclipse.gmt.umlx.editor.facets.TextFacet
All Implemented Interfaces:
IFacet<GStickyNote>

public class TextFacet
extends AbstractFacet<GStickyNote>


Method Summary
<T> void
change(FacetIterator<T> facetIterator, FacetIterator<? extends GStickyNote> modelIterator)
           
static TextFacet getInstance(java.lang.Class<? extends GStickyNote> modelClass)
           
 void prepare(ModelState<? extends GStickyNote> modelState, GStickyNote newModel)
           
 void requestModifications(ModelState<? extends GStickyNote> modelState, IAbstractCommand rootCommand)
           
<P> void
setNewText(IModelState modelState, java.lang.String newText)
           
 void setOldModel(ModelState<? extends GStickyNote> modelState, GStickyNote oldModel)
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.facets.AbstractFacet
objectDifference, objectValueDifference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TextFacet getInstance(java.lang.Class<? extends GStickyNote> modelClass)

change

public <T> void change(FacetIterator<T> facetIterator,
                       FacetIterator<? extends GStickyNote> modelIterator)
Specified by:
change in interface IFacet<GStickyNote>
Specified by:
change in class AbstractFacet<GStickyNote>

prepare

public void prepare(ModelState<? extends GStickyNote> modelState,
                    GStickyNote newModel)
Specified by:
prepare in interface IFacet<GStickyNote>
Specified by:
prepare in class AbstractFacet<GStickyNote>

requestModifications

public void requestModifications(ModelState<? extends GStickyNote> modelState,
                                 IAbstractCommand rootCommand)
Specified by:
requestModifications in interface IFacet<GStickyNote>
Specified by:
requestModifications in class AbstractFacet<GStickyNote>

setNewText

public <P> void setNewText(IModelState modelState,
                           java.lang.String newText)

setOldModel

public void setOldModel(ModelState<? extends GStickyNote> modelState,
                        GStickyNote oldModel)
Specified by:
setOldModel in interface IFacet<GStickyNote>
Specified by:
setOldModel in class AbstractFacet<GStickyNote>