|
|||||||||
| 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.AbstractContainer
public abstract class AbstractContainer
The top level class for Resource Container.
| Field Summary | |
|---|---|
static java.lang.String |
ur
|
| 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 | |
|---|---|
AbstractContainer()
|
|
| Method Summary | |
|---|---|
void |
attributeChanged(AttributeChangedEvent evt)
Gets called when a property changes. |
abstract ResourceReference |
createDefaultResource(java.lang.String name)
Create a default child resource in that container. |
abstract void |
delete(java.lang.String name)
Remove a child resource from that container. |
java.util.Enumeration |
enumerateResourceIdentifiers()
|
abstract java.util.Enumeration |
enumerateResourceIdentifiers(boolean all)
Enumerate children resource identifiers. |
abstract ResourceReference |
lookup(java.lang.String name)
Lookup a children in the container. |
abstract void |
registerResource(java.lang.String name,
Resource resource,
java.util.Hashtable defs)
Initialize and register the given resource within that container. |
void |
resourceCreated(StructureChangedEvent evt)
A new resource has been created in some space. |
void |
resourceModified(StructureChangedEvent evt)
This handles the RESOURCE_MODIFIED kind of events. |
void |
resourceRemoved(StructureChangedEvent evt)
A resource is about to be removed This handles the RESOURCE_REMOVED kind of events. |
void |
resourceUnloaded(StructureChangedEvent evt)
A resource is about to be unloaded This handles the RESOURCE_UNLOADED kind of events. |
protected ResourceContext |
updateDefaultChildAttributes(java.util.Hashtable attrs)
Ask our frames to update default child attributes. |
| Methods inherited from class org.w3c.tools.resources.Resource |
|---|
acceptUnload, checkMultipleLock, collectFrames, getContext, getFrame, getFrames, getHelpURL, getHelpURL, getIdentifier, getLastModified, getParent, getResourceReference, getServer, getSpace, getSpaceEntry, getStoreEntry, getURLPath, 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 |
|---|
public static java.lang.String ur
| Constructor Detail |
|---|
public AbstractContainer()
| Method Detail |
|---|
public void resourceModified(StructureChangedEvent evt)
RESOURCE_MODIFIED kind of events.
resourceModified in interface StructureChangedListenerevt - The StructureChangeEvent.public void resourceCreated(StructureChangedEvent evt)
RESOURCE_CREATED kind of events.
resourceCreated in interface StructureChangedListenerevt - The event describing the change.public void resourceRemoved(StructureChangedEvent evt)
RESOURCE_REMOVED kind of events.
resourceRemoved in interface StructureChangedListenerevt - The event describing the change.public void resourceUnloaded(StructureChangedEvent evt)
RESOURCE_UNLOADED kind of events.
resourceUnloaded in interface StructureChangedListenerevt - The event describing the change.public void attributeChanged(AttributeChangedEvent evt)
attributeChanged in interface AttributeChangedListenerevt - The AttributeChangeEvent describing the change.public abstract java.util.Enumeration enumerateResourceIdentifiers(boolean all)
enumerateResourceIdentifiers in interface ContainerInterfaceall - Should all resources be enumerated ? Resources are often
created on demand only, this flag allows the caller to tell the
container about wether it is interested only in already created
resources, or in all resources (even the one that have not yet been
created).
public java.util.Enumeration enumerateResourceIdentifiers()
protected ResourceContext updateDefaultChildAttributes(java.util.Hashtable attrs)
attrs - A hashtable.public abstract ResourceReference lookup(java.lang.String name)
lookup in interface ContainerInterfacename - The name of the children to lookup.
the resource from its store.
public abstract void delete(java.lang.String name)
throws MultipleLockException
delete in interface ContainerInterfacename - The name of the child to remove.
MultipleLockException - If someone else
has locked the resource.public abstract ResourceReference createDefaultResource(java.lang.String name)
name - The identifier for the new resource.
public abstract void registerResource(java.lang.String name,
Resource resource,
java.util.Hashtable defs)
throws InvalidResourceException
registerResource in interface ContainerInterfacename - The identifier for the resource.resource - An unitialized resource instance.defs - A default set of init attribute values (may be
null).
InvalidResourceException - If an error occurs during the
registration.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||