|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.w3c.tools.resources.AttributeHolder
org.w3c.tools.resources.Resource
org.w3c.tools.resources.FramedResource
org.w3c.tools.resources.ResourceFrame
public class ResourceFrame
The resource frame class. A ResourceFrame can be attached to a resource.
| Field Summary | |
|---|---|
protected static java.lang.Class |
filterClass
The special class of filter. |
protected FrameEventListener |
frameListener
Our FrameEventListener. |
protected FramedResource |
resource
Our target resource. |
| Fields inherited from class org.w3c.tools.resources.FramedResource |
|---|
ATTR_OID, attrListener, debugEvent, event_disabled, framesRef, structListener |
| Fields inherited from class org.w3c.tools.resources.Resource |
|---|
ATTR_CONTEXT, ATTR_HELP_URL, ATTR_IDENTIFIER, ATTR_LAST_MODIFIED, ATTR_PARENT, ATTR_RESOURCE_FRAMES, ATTR_STORE_ENTRY, ATTR_URL, co, id |
| Fields inherited from class org.w3c.tools.resources.AttributeHolder |
|---|
attributes, values |
| Constructor Summary | |
|---|---|
ResourceFrame()
|
|
| Method Summary | |
|---|---|
void |
addFrameEventListener(FrameEventListener l)
Add a frame event listener. |
void |
attributeChanged(AttributeChangedEvent evt)
Listen its resource. |
boolean |
checkRequest(RequestInterface request)
Check if this kind of request can be perform by this resource. |
protected boolean |
eventDisabled()
|
protected void |
fireFrameEvent(FrameEvent evt)
Fire a frameEvent. |
void |
frameModified(FrameEvent evt)
This handles the FRAME_MODIFIED kind of events. |
ResourceFilter[] |
getFilters()
Get our whole list of filters. |
ResourceFilter[] |
getFilters(java.lang.Class cls)
Get the list of filters of this class. |
ResourceReference |
getFrameReference()
Get The FrameReference of this frame, or null if this frame is not registered. |
FramedResource |
getResource()
Get the target resource. |
ResourceReference |
getResourceReference()
Get the ResourceReference of that resource. |
protected SpaceEntry |
getSpaceEntry()
Get the space entry for that resource. |
java.lang.String |
getURLPath()
Get the file part of the URL this resource is attached to. |
boolean |
lookup(LookupState ls,
LookupResult lr)
Lookup the target resource. |
protected boolean |
lookupFilters(LookupState ls,
LookupResult lr)
lookup only filters. |
protected boolean |
lookupFrames(LookupState ls,
LookupResult lr)
lookup frames excluding filters. |
ReplyInterface |
perform(RequestInterface request)
Perform the request |
protected void |
postFrameEvent(int type)
Post a frameEvent. |
void |
processEvent(ResourceEvent evt)
(AWT Like), dspatch the Event to all our listeners. |
void |
registerResource(FramedResource resource)
Register a target resource. |
void |
removeFrameEventListener(FrameEventListener l)
Remove a frame event listener. |
void |
setValue(int idx,
java.lang.Object value)
We overide setValue, to fire event. |
void |
unregisterResource(Resource resource)
Register a target resource. |
protected void |
updateDefaultChildAttributes(java.util.Hashtable attrs)
If our target resource has some children, we could have some attribute to give to them. |
| Methods inherited from class org.w3c.tools.resources.Resource |
|---|
acceptUnload, checkMultipleLock, collectFrames, getContext, getFrame, getFrames, getHelpURL, getHelpURL, getIdentifier, getLastModified, getParent, getServer, getSpace, getStoreEntry, getValue, getValue, initialize, isInitialized, isUnloaded, pickleValues, setContext, setContext, setValue, unsafeGetContext, unsafeGetFrame, unsafeGetFrames, unsafeGetIdentifier, unsafeGetResourceReference, unsafeGetURLPath, unsafeGetValue, updateAttributes |
| Methods inherited from class org.w3c.tools.resources.AttributeHolder |
|---|
definesAttribute, definesAttribute, getAttributes, getBoolean, getChar, getClone, getClone, getDouble, getFloat, getInt, getLong, getString, getValue, lookupAttribute, print, setBoolean, setChar, setDouble, setFloat, setInt, setLong, setString, setValue, unsafeDefinesAttribute, unsafeGetDouble, unsafeGetString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.lang.Class filterClass
protected transient FrameEventListener frameListener
protected FramedResource resource
| Constructor Detail |
|---|
public ResourceFrame()
| Method Detail |
|---|
protected boolean eventDisabled()
eventDisabled in class FramedResourcepublic java.lang.String getURLPath()
getURLPath in class Resourceprotected SpaceEntry getSpaceEntry()
getSpaceEntry in class Resourcepublic ResourceReference getFrameReference()
public ResourceReference getResourceReference()
Resource
getResourceReference in class Resourceprotected void updateDefaultChildAttributes(java.util.Hashtable attrs)
attrs - A Hashtable.public boolean checkRequest(RequestInterface request)
request - A RequestInterface instance
public ReplyInterface perform(RequestInterface request)
throws ProtocolException,
ResourceException
perform in class FramedResourcerequest - the incomming request
ProtocolException - If an error relative to the protocol occurs
ResourceException - If an error not relative to the
protocol occurs
protected boolean lookupFilters(LookupState ls,
LookupResult lr)
throws ProtocolException
ProtocolException - If an error relative to the protocol occurs
protected boolean lookupFrames(LookupState ls,
LookupResult lr)
throws ProtocolException
ProtocolException - If an error relative to the protocol occurs
public boolean lookup(LookupState ls,
LookupResult lr)
throws ProtocolException
lookup in class FramedResourcels - The current lookup statelr - The result
ProtocolException - If an error relative to the protocol occurspublic void processEvent(ResourceEvent evt)
FramedResource
processEvent in class FramedResourceevt - The resourceEvent to dispatch.public void addFrameEventListener(FrameEventListener l)
l - The new frame event listener.public void removeFrameEventListener(FrameEventListener l)
l - The listener to remove.protected void postFrameEvent(int type)
the - frame event type.protected void fireFrameEvent(FrameEvent evt)
the - frame event type.public void attributeChanged(AttributeChangedEvent evt)
attributeChanged in interface AttributeChangedListenerevt - The AttributeChangeEvent describing the change.public void frameModified(FrameEvent evt)
FRAME_MODIFIED kind of events.
frameModified in interface FrameEventListenerframeModified in class FramedResourceevt - The event describing the change.
public void setValue(int idx,
java.lang.Object value)
setValue in class FramedResourceidx - The index of the attribute to modify.value - The new attribute value.public FramedResource getResource()
public void registerResource(FramedResource resource)
public void unregisterResource(Resource resource)
public ResourceFilter[] getFilters()
public ResourceFilter[] getFilters(java.lang.Class cls)
cls - The class of filters requested.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||