Package com.luciad.lucy.util.context
Class TLcyModelContext
java.lang.Object
com.luciad.lucy.util.context.TLcyModelContext
This context object defines everything related to an
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 Summary
ConstructorsConstructorDescriptionTLcyModelContext(ILcdModel aModel) Creates a new context object for the givenILcdModel, withnullfor theILcdLayerand theILcdView.TLcyModelContext(ILcdModel aModel, ILcdLayer aLayer, ILcdView aView) Creates a new context object for theILcdModelof the specifiedILcdLayer. -
Method Summary
-
Constructor Details
-
TLcyModelContext
Creates a new context object for the givenILcdModel, withnullfor theILcdLayerand theILcdView.- Parameters:
aModel- TheILcdModelfor which this object provides the context. This must not benull.
-
TLcyModelContext
Creates a new context object for theILcdModelof the specifiedILcdLayer.- Parameters:
aModel- TheILcdModelfor which this object provides the context. This must not benull.aLayer- TheILcdLayerin which the model is displayed. This may benullif this information is not available.aView- TheILcdViewin which the model is displayed. This may benullif this information is not available.
-
-
Method Details
-
getModel
Returns theILcdModelfor which this object provides the context.- Returns:
- The
ILcdModelfor which this object provides the context. This will never benull.
-
getLayer
Returns the layer in which theILcdModelis displayed.- Returns:
- The layer in which the
ILcdModelis displayed. This may benull.
-
getView
Returns theILcdViewin which theILcdModelis displayed.- Returns:
- The
ILcdViewin which theILcdModelis displayed. This may benull.
-
toString
-
equals
This method will return
truewhen bothTLcyModelContextinstances have an equal model, layer and view. -
hashCode
public int hashCode()
-