| java.lang.Object java.util.EventObject net.refractions.udig.project.LayerEvent
LayerEvent | public class LayerEvent extends EventObject (Code) | | An event indicating a change in a layer.
author: Jesse since: 1.0.0 |
Inner Class :public static enum EventType | |
Field Summary | |
final public static int | ALL | final public static int | FILTER | final public static int | RESOURCE | final public static int | STYLE The contents of the blackboard have changed. |
Constructor Summary | |
public | LayerEvent(ILayer layer) Creates a new event for the given source, indicating that all labels provided by the source
are no longer valid and should be updated. | public | LayerEvent(ILayer layer, EventType type) | public | LayerEvent(ILayer layer, EventType type, Object oldValue, Object newValue) |
ALL | final public static int ALL(Code) | | Indicates something somewhere is different - make no assumptions
|
FILTER | final public static int FILTER(Code) | | Indicate a change has occured the the filter (defines the selection)
|
RESOURCE | final public static int RESOURCE(Code) | | Resource used by the layer has changed
|
STYLE | final public static int STYLE(Code) | | The contents of the blackboard have changed.
|
LayerEvent | public LayerEvent(ILayer layer)(Code) | | Creates a new event for the given source, indicating that all labels provided by the source
are no longer valid and should be updated.
Parameters: source - the label provider |
LayerEvent | public LayerEvent(ILayer layer, EventType type)(Code) | | Creates a specific kind of layer event, FILTER, RESOURCE, ALL or STYLE
|
LayerEvent | public LayerEvent(ILayer layer, EventType type, Object oldValue, Object newValue)(Code) | | Creates a specific kind of layer event, FILTER, RESOURCE, ALL or STYLE
|
getOldValue | public Object getOldValue()(Code) | | Returns the oldValue. |
getSource | public ILayer getSource()(Code) | | The layer being modified.
The modified layer See Also: ILayer |
getType | public EventType getType()(Code) | | Type of event
|
setNewValue | public void setNewValue(Object newValue)(Code) | | Parameters: newValue - The newValue to set. |
setOldValue | public void setOldValue(Object oldValue)(Code) | | Parameters: oldValue - The oldValue to set. |
setType | public void setType(EventType type)(Code) | | Type of event
See Also: EventType Parameters: type - |
|
|