Extension SDK 10.1.2

oracle.ide.composite
Class DefaultCompositeFileElementProxy

java.lang.Object
  extended byoracle.ide.composite.DefaultCompositeFileElementProxy
All Implemented Interfaces:
CompositeFileElementProxy

public class DefaultCompositeFileElementProxy
extends java.lang.Object
implements CompositeFileElementProxy

The default implementation class for a CompositeFileElementProxy based on a container-style composite element type. An observer is attached to the composite elements of this proxy type to fire a composite state change event through the registry class when the container state is modified.


Constructor Summary
DefaultCompositeFileElementProxy(java.lang.Class compositeElementClass)
          Constructs a DefaultCompositeFileElementProxy object.
 
Method Summary
protected  void addChildURLs(java.util.Collection compositeFileUrls, Element parent)
           
protected  void addLocatableURL(java.util.Collection compositeFileUrls, java.lang.Object o)
           
protected  void addParentURL(java.util.Collection compositeFileUrls, Element parent)
           
protected  void attachContainerStateObserver(Element element)
          Attaches a container state observer to the given element and its children.
 java.lang.Class getCompositeElementClass()
          Gets the composite element class handled by this proxy.
 java.net.URL[] getCompositeFileURLs(Element compositeElement)
          Gets the file URLs represented by the given composite element, attaching a container state observer to all composite children.
protected  java.util.Collection getContainerFileURLs(Element compositeElement)
          Gets the file URLs represented by the given composite element.
protected  boolean isContainerStyleRecursive()
          Asks whether this proxy behaves recursively with respect to its composite elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCompositeFileElementProxy

public DefaultCompositeFileElementProxy(java.lang.Class compositeElementClass)
Constructs a DefaultCompositeFileElementProxy object.

Parameters:
compositeElementClass - the class of composite elements for the proxy.
Method Detail

getCompositeElementClass

public java.lang.Class getCompositeElementClass()
Gets the composite element class handled by this proxy. By default, returns the class with which this proxy instance was constructed.

Specified by:
getCompositeElementClass in interface CompositeFileElementProxy
Returns:
the composite element class.

getCompositeFileURLs

public java.net.URL[] getCompositeFileURLs(Element compositeElement)
Gets the file URLs represented by the given composite element, attaching a container state observer to all composite children.

Specified by:
getCompositeFileURLs in interface CompositeFileElementProxy
Parameters:
compositeElement - the composite element.
Returns:
the composite file URLs.

attachContainerStateObserver

protected void attachContainerStateObserver(Element element)
Attaches a container state observer to the given element and its children.

Parameters:
element - the element.

getContainerFileURLs

protected java.util.Collection getContainerFileURLs(Element compositeElement)
Gets the file URLs represented by the given composite element. By default, this includes all child elements that implement the Locatable interface and the element itself, if also a Locatable.

Parameters:
compositeElement - the composite element.
Returns:
the composite file URLs.

isContainerStyleRecursive

protected boolean isContainerStyleRecursive()
Asks whether this proxy behaves recursively with respect to its composite elements. By default, returns true.

Returns:
a verdict on recursive container behavior.

addParentURL

protected void addParentURL(java.util.Collection compositeFileUrls,
                            Element parent)

addChildURLs

protected void addChildURLs(java.util.Collection compositeFileUrls,
                            Element parent)

addLocatableURL

protected void addLocatableURL(java.util.Collection compositeFileUrls,
                               java.lang.Object o)

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.