|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectEventObject
MapLayerEvent
public class MapLayerEvent
Event fired when some layer property changes.
Layer
,
LayerListener
,
Serialized Form
Field Summary | |
---|---|
static int |
DATA_CHANGED
Flag set when the data attached to this layer changed. |
static int |
FILTER_CHANGED
Flag set when the definition query attached to this layer changed. |
static int |
METADATA_CHANGED
Flag set when the some metadata (like the title) changes |
static int |
STYLE_CHANGED
Flag set when the style attached to this layer changed. |
static int |
VISIBILITY_CHANGED
Flag set when the layer visibility changed. |
Fields inherited from class EventObject |
---|
source |
Constructor Summary | |
---|---|
MapLayerEvent(Object source,
int reason)
Creates a new instance of LayerEvent with the specified reason. |
Method Summary | |
---|---|
int |
getReason()
Returns the reason why this event is fired. |
Methods inherited from class EventObject |
---|
getSource, toString |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int VISIBILITY_CHANGED
getReason()
,
Constant Field Valuespublic static final int METADATA_CHANGED
getReason()
,
Constant Field Valuespublic static final int DATA_CHANGED
getReason()
,
Constant Field Valuespublic static final int STYLE_CHANGED
getReason()
,
Constant Field Valuespublic static final int FILTER_CHANGED
getReason()
,
Constant Field ValuesConstructor Detail |
---|
public MapLayerEvent(Object source, int reason) throws IllegalArgumentException
LayerEvent
with the specified reason.
source
- The source of the event change.reason
- Why the event was fired.
IllegalArgumentException
- If the reason
is not a valid enum.Method Detail |
---|
public int getReason()
VISIBILITY_CHANGED
or
#TITLE_CHANGED
constants.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |