    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.tools.resources.ResourceFrame

    java.lang.Object
       |
       +----org.w3c.tools.resources.AttributeHolder
               |
               +----org.w3c.tools.resources.Resource
                       |
                       +----org.w3c.tools.resources.FramedResource
                               |
                               +----org.w3c.tools.resources.ResourceFrame

public class ResourceFrame
extends FramedResource
implements AttributeChangedListener

The resource frame class. A ResourceFrame can be attached to a resource.

##

frameListener
  Our FrameEventListener.
resource
  Our target resource.

##

ResourceFrame()

##

addFrameEventListener(FrameEventListener)
  Add a frame event listener.
attributeChanged(AttributeChangedEvent)
  Listen its resource.
checkRequest(RequestInterface)
  Check if this kind of request can be perform by this resource.
fireFrameEvent(FrameEvent)
  Fire a frameEvent.
getFrameReference()
  Get The FrameReference of this frame, or null if this frame is not registered.
getResource()
  Get the target resource.
getSpaceEntry()
  Get the space entry for that resource.
lookup(LookupState, LookupResult)
  FIXME doc
perform(RequestInterface)
  FIXME doc
postFrameEvent(int)
  Post a frameEvent.
processEvent(ResourceEvent)
  (AWT Like), dspatch the Event to all our listeners.
registerResource(FramedResource)
  Register a target resource.
removeFrameEventListener(FrameEventListener)
  Remove a frame event listener.
setValue(int, Object)
  We overide setValue, to fire event.
unregisterResource(Resource)
  Register a target resource.
updateDefaultChildAttributes(Hashtable)
  If our target resource has some children, we could have some attribute to give to them.

##

frameListener

     protected transient FrameEventListener frameListener

  Our FrameEventListener.

resource

     protected FramedResource resource

  Our target resource.

##

ResourceFrame

     public ResourceFrame()

##

getSpaceEntry

     protected SpaceEntry getSpaceEntry()

  Get the space entry for that resource. This Object is use to retrieve the resource in the resource space. A ResourceFrame has no SpaceEntry.

  Returns:
    always null.
  Overrides:
    getSpaceEntry in class Resource

getFrameReference

     public ResourceReference getFrameReference()

  Get The FrameReference of this frame, or null if this frame is not registered.

  Returns:
    A ResourceReference instance.

updateDefaultChildAttributes

     protected void updateDefaultChildAttributes(Hashtable attrs)

  If our target resource has some children, we could have some attribute to give to them.

  Parameters:
    attrs - A Hashtable.

checkRequest

     public boolean checkRequest(RequestInterface request)

  Check if this kind of request can be perform by this resource.

  Parameters:
    request - A RequestInterface instance
  Returns:
    a boolean.

perform

     public ReplyInterface perform(RequestInterface request) throws ProtocolException, NotAProtocolException

  FIXME doc

  Overrides:
    perform in class FramedResource

lookup

     public boolean lookup(LookupState ls,
                           LookupResult lr) throws ProtocolException

  FIXME doc

  Overrides:
    lookup in class FramedResource

processEvent

     public void processEvent(ResourceEvent evt)

  (AWT Like), dspatch the Event to all our listeners.

  Overrides:
    processEvent in class FramedResource

addFrameEventListener

     public void addFrameEventListener(FrameEventListener l)

  Add a frame event listener.

  Parameters:
    l - The new frame event listener.

removeFrameEventListener

     public void removeFrameEventListener(FrameEventListener l)

  Remove a frame event listener.

  Parameters:
    l - The listener to remove.

postFrameEvent

     protected void postFrameEvent(int type)

  Post a frameEvent.

  Parameters:
    the - frame event type.

fireFrameEvent

     protected void fireFrameEvent(FrameEvent evt)

  Fire a frameEvent.

  Parameters:
    the - frame event type.

attributeChanged

     public void attributeChanged(AttributeChangedEvent evt)

  Listen its resource.

setValue

     public synchronized void setValue(int idx,
                                       Object value)

  We overide setValue, to fire event.

  Parameters:
    idx - The index of the attribute to modify.
    value - The new attribute value.
  Overrides:
    setValue in class FramedResource

getResource

     public FramedResource getResource()

  Get the target resource.

  Returns:
    a resource instance.

registerResource

     public void registerResource(FramedResource resource)

  Register a target resource.

  Parameters:
    e - resource The resource to register.

unregisterResource

     public void unregisterResource(Resource resource)

  Register a target resource.

  Parameters:
    e - resource The resource to register.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index