Package com.luciad.lucy.util.context
Class TLcyDomainObjectContext
java.lang.Object
com.luciad.view.TLcdDomainObjectContext
com.luciad.lucy.util.context.TLcyDomainObjectContext
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.
This class if for example used by the Object Properties action.
This action creates instances of this class, and creates a customizer panel for it using the
factories available as service
.-
Constructor Summary
ConstructorDescriptionTLcyDomainObjectContext
(Object aDomainObject, ILcdModel aModel) Creates a new context instance.TLcyDomainObjectContext
(Object aDomainObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView) Creates a new context instance. -
Method Summary
Methods inherited from class com.luciad.view.TLcdDomainObjectContext
equals, getDomainObject, getLayer, getView, hashCode, toString
-
Constructor Details
-
TLcyDomainObjectContext
Creates a new context instance.- Parameters:
aDomainObject
- The domain object for which this object provides the context. This must not benull
.aModel
- TheILcdModel
that contains theaDomainObject
. This must not benull
.
-
TLcyDomainObjectContext
public TLcyDomainObjectContext(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
- TheILcdModel
that contains theaDomainObject
. This must not benull
.aLayer
- TheILcdLayer
in whichaModel
is displayed. This may benull
if this information is not available.aView
- TheILcdView
in whichaLayer
is displayed. This may benull
if this information is not available.
-
-
Method Details
-
getModel
Returns the model in which the domain object is contained.- Overrides:
getModel
in classTLcdDomainObjectContext
- Returns:
- The model in which the domain object is contained. Will never be
null
.
-