org.eclipse.gmt.umlx.editor.property.descriptors
Class IntegerPropertyDescriptor<M>

java.lang.Object
  extended by org.eclipse.ui.views.properties.PropertyDescriptor
      extended by org.eclipse.ui.views.properties.TextPropertyDescriptor
          extended by org.eclipse.gmt.umlx.editor.property.descriptors.IntegerPropertyDescriptor<M>
All Implemented Interfaces:
IModelPropertyDescriptor, org.eclipse.ui.views.properties.IPropertyDescriptor
Direct Known Subclasses:
EIntPropertyDescriptor, GSheetNodeXPropertyDescriptor, GSheetNodeYPropertyDescriptor

public abstract class IntegerPropertyDescriptor<M>
extends org.eclipse.ui.views.properties.TextPropertyDescriptor
implements IModelPropertyDescriptor


Constructor Summary
IntegerPropertyDescriptor(EModelPropertySource<? extends M> propertySource, java.lang.String displayName)
           
 
Method Summary
static java.lang.String fromModel(int i)
           
 M getModel()
           
 IModelPropertySource2<? extends M> getSource()
           
 boolean isIdentity()
           
 boolean isResettable()
          Return true if property may be reset to no-value.
 boolean isSet()
          Return true if property has a value.
 boolean isSettable()
          Return true if property may be set to some changed value.
 boolean isVolatile()
           
 void resetProperty()
           
static int toModel(java.lang.Object string)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ui.views.properties.TextPropertyDescriptor
createPropertyEditor
 
Methods inherited from class org.eclipse.ui.views.properties.PropertyDescriptor
getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, isCompatibleWith, isLabelProviderSet, setAlwaysIncompatible, setCategory, setDescription, setFilterFlags, setHelpContextIds, setLabelProvider, setValidator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.property.IModelPropertyDescriptor
getProperty, setProperty
 
Methods inherited from interface org.eclipse.ui.views.properties.IPropertyDescriptor
createPropertyEditor, getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, isCompatibleWith
 

Constructor Detail

IntegerPropertyDescriptor

public IntegerPropertyDescriptor(EModelPropertySource<? extends M> propertySource,
                                 java.lang.String displayName)
Method Detail

fromModel

public static java.lang.String fromModel(int i)

getModel

public M getModel()
Specified by:
getModel in interface IModelPropertyDescriptor

getSource

public IModelPropertySource2<? extends M> getSource()
Specified by:
getSource in interface IModelPropertyDescriptor

isIdentity

public boolean isIdentity()
Specified by:
isIdentity in interface IModelPropertyDescriptor

isResettable

public boolean isResettable()
Description copied from interface: IModelPropertyDescriptor
Return true if property may be reset to no-value.

Specified by:
isResettable in interface IModelPropertyDescriptor
Returns:
true if no-value allowed

isSet

public boolean isSet()
Description copied from interface: IModelPropertyDescriptor
Return true if property has a value.

Specified by:
isSet in interface IModelPropertyDescriptor
Returns:
true if value exists

isSettable

public boolean isSettable()
Description copied from interface: IModelPropertyDescriptor
Return true if property may be set to some changed value.

Specified by:
isSettable in interface IModelPropertyDescriptor
Returns:
true if value may be changed

isVolatile

public boolean isVolatile()
Specified by:
isVolatile in interface IModelPropertyDescriptor

resetProperty

public void resetProperty()
Specified by:
resetProperty in interface IModelPropertyDescriptor

toModel

public static int toModel(java.lang.Object string)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object