oracle.jdeveloper.cm.dt
Class BaseConnections
java.lang.Object
oracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.ide.model.DefaultFolder
oracle.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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.ide.model.Data |
getData |
BaseConnections
public BaseConnections()
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()
Copyright © 1997, 2004, Oracle. All rights reserved.