Extension SDK

oracle.jdeveloper.cm.dt
Class BaseConnections

java.lang.Object
  extended byoracle.ide.model.DefaultDisplayable
      extended byoracle.ide.model.DefaultElement
          extended byoracle.ide.model.DefaultFolder
              extended byoracle.jdeveloper.cm.dt.BaseConnections
All Implemented Interfaces:
Data, Displayable, Element, Folder, Subject

public abstract class BaseConnections
extends DefaultFolder
implements Subject

The BaseConnections class is the base folder type for classes of connections This is a singleton class.


Field Summary
 
Fields inherited from class oracle.ide.model.DefaultFolder
_children
 
Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED
 
Constructor Summary
BaseConnections()
           
 
Method Summary
 void attach(Observer observer)
          Registers an observer interested in being notified when the internal state of the class implementing the Subject interface changes.
abstract  ConnectionNode create(java.net.URL url)
           
 void detach(Observer observer)
          Unregisters an observer that is not interested anymore in being notified when the internal state of the class implementing the Subject interface changes.
 Attributes getAttributes()
          This method returns an Attributes object that encodes the attributes of the Element.
 java.util.Iterator getChildren()
          Part of the Element interface.
abstract  java.lang.String getConnectionClassName()
           
 javax.swing.Icon getIcon()
          Part of Element interface.
 java.lang.String getLongLabel()
          Returns a long label that can be displayed to the user.
abstract  java.lang.String getShortLabel()
          Returns a short label that can be displayed to the user.
 java.lang.String getToolTipText()
          Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this Displayable.
 void notifyObservers(java.lang.Object observed, UpdateMessage change)
          Notifies all observers that the state of the subject has changed.
 
Methods inherited from class oracle.ide.model.DefaultFolder
add, canAdd, canRemove, containsChild, copyToImpl, equalsImpl, mayHaveChildren, remove, removeAll, size
 
Methods inherited from class oracle.ide.model.DefaultElement
getData
 
Methods inherited from class oracle.ide.model.DefaultDisplayable
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.ide.model.Data
getData
 
Methods inherited from interface oracle.ide.model.Displayable
toString
 

Constructor Detail

BaseConnections

public BaseConnections()
Method Detail

getShortLabel

public abstract java.lang.String getShortLabel()
Description copied from interface: Displayable
Returns a short label that can be displayed to the user. Generally, the value of the returned String is considered translatable and should therefore be placed in an appropriate resource file. When possible, the returned label should be reasonably short enough to show in the navigator or explorer windows but long enough to clearly identify and distinguish the Displayable.

Specified by:
getShortLabel in interface Displayable
Overrides:
getShortLabel in class DefaultDisplayable
See Also:
Displayable.getShortLabel()

getConnectionClassName

public abstract java.lang.String getConnectionClassName()

create

public abstract ConnectionNode create(java.net.URL url)

getLongLabel

public java.lang.String getLongLabel()
Description copied from interface: Displayable
Returns a long label that can be displayed to the user. Generally, the value of the returned String is considered translatable and should therefore be placed in an appropriate resource file. The long label differs from the short label essentially on length. Usually the long label will only be shown on-demand and in places where horizontal space is more available. Examples are the status bar and tooltips.

Specified by:
getLongLabel in interface Displayable
Overrides:
getLongLabel in class DefaultDisplayable
See Also:
Displayable.getLongLabel()

getIcon

public javax.swing.Icon getIcon()
Description copied from class: DefaultFolder
Part of Element interface. The default implementation returns null, which causes a default folder icon to be used.

Specified by:
getIcon in interface Displayable
Overrides:
getIcon in class DefaultFolder
See Also:
Displayable.getIcon()

getToolTipText

public java.lang.String getToolTipText()
Description copied from interface: Displayable
Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this Displayable. In many cases it may be appropriate for this method to return the same value as Displayable.getLongLabel().

Specified by:
getToolTipText in interface Displayable
Overrides:
getToolTipText in class DefaultDisplayable
See Also:
Displayable.getToolTipText()

getChildren

public java.util.Iterator getChildren()
Description copied from class: DefaultFolder
Part of the Element interface. This implementation returns an Iterator over the current list of children.

Specified by:
getChildren in interface Element
Overrides:
getChildren in class DefaultFolder
See Also:
Element.getChildren()

attach

public void attach(Observer observer)
Description copied from interface: Subject
Registers an observer interested in being notified when the internal state of the class implementing the Subject interface changes. Implementors should do nothing when the same observer is added more than once.

Specified by:
attach in interface Subject
Parameters:
observer - the Observer interested in change notification messages.

detach

public void detach(Observer observer)
Description copied from interface: Subject
Unregisters an observer that is not interested anymore in being notified when the internal state of the class implementing the Subject interface changes. Implementors should do nothing when the same observer is removed more than once.

Specified by:
detach in interface Subject
Parameters:
observer - the Observer disinterested in change notification messages.

notifyObservers

public void notifyObservers(java.lang.Object observed,
                            UpdateMessage change)
Description copied from interface: Subject
Notifies all observers that the state of the subject has changed.

Specified by:
notifyObservers in interface Subject
Parameters:
observed - the subject whose state has changed.
change - what changed.

getAttributes

public Attributes getAttributes()
Description copied from interface: Element
This method returns an Attributes object that encodes the attributes of the Element. Changing the attribute settings on the return object changes the element attributes. Subclasses should use their super class attributes object to define their own attributes. This allows subclasses to inherit their super class attributes. If a subclass does not wish to inherit attributes, they should first call getAttributes().clear() and define new attributes.

Specified by:
getAttributes in interface Element
Overrides:
getAttributes in class DefaultElement
See Also:
Element.getAttributes()

Extension SDK

 

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