|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.ide.model.DefaultFolder
oracle.jdeveloper.cm.dt.Connections
The Connections class is the folder responsible maintaining
the database 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 | |
Connections()
Constructor. |
|
| Method Summary | |
void |
addConnection(ConnectionDescriptor connDesc)
Added a named connection to the Navigator |
void |
addConnection(java.lang.String connName)
Added a named connection to the Navigator |
void |
addConnection(java.lang.String connName,
boolean notifyObs)
Added a named connection to the Navigator |
void |
attach(Observer observer)
Registers an observer interested in being notified when the internal state of the class implementing the Subject interface
changes. |
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. |
java.util.Iterator |
getChildren()
Part of the Element interface. |
ConnectionNode |
getConnectionNode(java.lang.String connName)
Gets the ConnectionNode for a given connection name
|
javax.swing.Icon |
getIcon()
Part of Element interface. |
static Connections |
getInstance()
The Connections folder is a singleton class. |
java.lang.String |
getLongLabel()
Returns a long label that can be displayed to the user. |
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 |
loadConnections()
Addin authors should not call this method. |
void |
notifyObservers(java.lang.Object observed,
UpdateMessage change)
Notifies all observers that the state of the subject has changed. |
void |
registerConnectionClass(java.lang.String cClass,
BaseConnections node)
|
void |
removeConnection(ConnectionDescriptor connDesc)
Removes a named connection to the Navigator |
void |
removeConnection(java.lang.String connName)
Removes a named connection to the Navigator |
| 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 |
getAttributes, 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.Element |
getAttributes |
| Methods inherited from interface oracle.ide.model.Data |
getData |
| Methods inherited from interface oracle.ide.model.Displayable |
toString |
| Constructor Detail |
public Connections()
throws SingletonClassException
SingletonClassException - thrown when this class is instantiated
more than once.| Method Detail |
public static Connections getInstance()
Connections folder is a singleton class. This method
gets this folder's single instance.
Connections folder single instance.public void addConnection(java.lang.String connName)
public void addConnection(java.lang.String connName,
boolean notifyObs)
public void addConnection(ConnectionDescriptor connDesc)
public void removeConnection(java.lang.String connName)
public void removeConnection(ConnectionDescriptor connDesc)
public java.lang.String getShortLabel()
DisplayableString 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.
getShortLabel in interface DisplayablegetShortLabel in class DefaultDisplayableDisplayable.getShortLabel()public java.lang.String getLongLabel()
DisplayableString 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.
getLongLabel in interface DisplayablegetLongLabel in class DefaultDisplayableDisplayable.getLongLabel()public javax.swing.Icon getIcon()
DefaultFolderElement interface. The default implementation
returns null, which causes a default folder icon to be
used.
getIcon in interface DisplayablegetIcon in class DefaultFolderDisplayable.getIcon()public java.lang.String getToolTipText()
DisplayableDisplayable.
In many cases it may be appropriate for this method to return the
same value as Displayable.getLongLabel().
getToolTipText in interface DisplayablegetToolTipText in class DefaultDisplayableDisplayable.getToolTipText()public java.util.Iterator getChildren()
DefaultFolderElement interface. This implementation returns
an Iterator over the current list of children.
getChildren in interface ElementgetChildren in class DefaultFolderElement.getChildren()public void loadConnections()
public ConnectionNode getConnectionNode(java.lang.String connName)
ConnectionNode for a given connection name
Note: this will open the connection node if it is not already opened.
public void registerConnectionClass(java.lang.String cClass,
BaseConnections node)
public void attach(Observer observer)
SubjectSubject interface
changes.
Implementors should do nothing when the same observer is added more
than once.
attach in interface Subjectobserver - the Observer interested in change notification
messages.public void detach(Observer observer)
SubjectSubject
interface changes.
Implementors should do nothing when the same observer is removed more
than once.
detach in interface Subjectobserver - the Observer disinterested in change
notification messages.
public void notifyObservers(java.lang.Object observed,
UpdateMessage change)
Subject
notifyObservers in interface Subjectobserved - the subject whose state has changed.change - what changed.
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.