public class TLcyModelContext extends Object
ILcdModel
, more specifically
the ILcdLayer
and the ILcdView
in which it is displayed.
This class if for example used by the Table View action.
This action creates instances of this class, and creates a customizer panel for it using the
factories available as service
.Constructor and Description |
---|
TLcyModelContext(ILcdModel aModel)
Creates a new context object for the given
ILcdModel , with null
for the ILcdLayer and the ILcdView . |
TLcyModelContext(ILcdModel aModel,
ILcdLayer aLayer,
ILcdView aView)
Creates a new context object for the
ILcdModel of the specified
ILcdLayer . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ILcdLayer |
getLayer()
Returns the layer in which the
ILcdModel is displayed. |
ILcdModel |
getModel()
Returns the
ILcdModel for which this object provides the context. |
ILcdView |
getView()
Returns the
ILcdView in which the ILcdModel is displayed. |
int |
hashCode() |
String |
toString() |
public TLcyModelContext(ILcdModel aModel)
ILcdModel
, with null
for the ILcdLayer
and the ILcdView
.aModel
- The ILcdModel
for which this object provides the context.
This must not be null
.public TLcyModelContext(ILcdModel aModel, ILcdLayer aLayer, ILcdView aView)
ILcdModel
of the specified
ILcdLayer
.aModel
- The ILcdModel
for which this object provides the context.
This must not be null
.aLayer
- The ILcdLayer
in which the model is displayed.
This may be null
if this information is not available.aView
- The ILcdView
in which the model is displayed.
This may be null
if this information is not available.public ILcdModel getModel()
ILcdModel
for which this object provides the context.ILcdModel
for which this object provides the context. This will never
be null
.public ILcdLayer getLayer()
ILcdModel
is displayed.ILcdModel
is displayed.
This may be null
.public ILcdView getView()
ILcdView
in which the ILcdModel
is displayed.ILcdView
in which the ILcdModel
is displayed.
This may be null
.public boolean equals(Object obj)
This method will return true
when both TLcyModelContext
instances
have an equal model, layer and view.