org.gvsig.fmap.dal.resource
Interface ResourceNotification


public interface ResourceNotification

A resource notification is related to a change in the state of a resource. It is sent to all resource observers when appropriate. The notification contains the type of change and access to the resource information. This includes:

Author:
jmvivo

Field Summary
static String CHANGED
          A resource property has been changed
static String CLOSE
          A resource is being closed
static String CLOSED
          A resource has been closed
static String DISPOSE
          A resource is being disposed
static String OPEN
          A resource is being opened
static String OPENED
          A resource has been opened
static String PREPARE
          A resource has been prepared
 
Method Summary
 ResourceParameters getParameters()
          Returns the parameters of the resource that caused this notification.
 Resource getResource()
          Returns the resource that caused this notification.
 String getType()
          Returns the type of this notification.
 

Field Detail

OPENED

static final String OPENED
A resource has been opened

See Also:
Constant Field Values

CLOSED

static final String CLOSED
A resource has been closed

See Also:
Constant Field Values

PREPARE

static final String PREPARE
A resource has been prepared

See Also:
Constant Field Values

CHANGED

static final String CHANGED
A resource property has been changed

See Also:
Constant Field Values

DISPOSE

static final String DISPOSE
A resource is being disposed

See Also:
Constant Field Values

OPEN

static final String OPEN
A resource is being opened

See Also:
Constant Field Values

CLOSE

static final String CLOSE
A resource is being closed

See Also:
Constant Field Values
Method Detail

getParameters

ResourceParameters getParameters()
Returns the parameters of the resource that caused this notification.

Returns:
the parameters of this notification's source

getResource

Resource getResource()
Returns the resource that caused this notification.

Returns:
this notification's source

getType

String getType()
Returns the type of this notification.

Returns:
this notification's type. For the allowed values see the constants defined in this interface.


Copyright © 2004-2012 gvSIG. All Rights Reserved.