Package com.luciad.view
Class TLcdDomainObjectContext
java.lang.Object
com.luciad.view.TLcdDomainObjectContext
- Direct Known Subclasses:
TLcyDomainObjectContext,TLspDomainObjectContext
This context object defines everything related to a domain object: the
ILcdModel in
which it is contained, and the ILcdLayer and the ILcdView in which it
is displayed.- Since:
- 2012.1
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdDomainObjectContext(Object aDomainObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView) Creates a new context instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the domain object for which this object provides the context.getLayer()Returns theILcdLayerin which the domain object is displayed.getModel()Returns the model in which the domain object is contained.getView()Returns theILcdViewin which the domain object is displayed.inthashCode()toString()
-
Constructor Details
-
TLcdDomainObjectContext
public TLcdDomainObjectContext(Object aDomainObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView) Creates a new context instance.- Parameters:
aDomainObject- The domain object for which this object provides the context. This must not benull.aModel- TheILcdModelthat contains theaDomainObject. This may benullif this information is not available.aLayer- TheILcdLayerin whichaModelis displayed. This may benullif this information is not available.aView- TheILcdViewin whichaLayeris displayed. This may benullif this information is not available.
-
-
Method Details
-
getModel
Returns the model in which the domain object is contained.- Returns:
- The model in which the domain object is contained. This may be
null.
-
getDomainObject
Returns the domain object for which this object provides the context.- Returns:
- The domain object for which this object provides the context. This will never be
null.
-
getLayer
Returns theILcdLayerin which the domain object is displayed.- Returns:
- The
ILcdLayerin which the domain object is displayed. This may benull.
-
getView
Returns theILcdViewin which the domain object is displayed.- Returns:
- The
ILcdViewin which the domain object is displayed. This may benull.
-
toString
-
hashCode
public int hashCode() -
equals
-