Extension SDK 10.1.3.36.73

oracle.jdeveloper.library
Class AbstractLibrary

java.lang.Object
  extended byoracle.ide.model.DefaultDisplayable
      extended byoracle.ide.model.DefaultElement
          extended byoracle.jdeveloper.library.LibraryElement
              extended byoracle.jdeveloper.library.AbstractLibrary
All Implemented Interfaces:
oracle.javatools.data.Dirtyable, Dirtyable, Displayable, Element, JPaths, Library
Direct Known Subclasses:
AbstractDerivedLibrary, AddinJDK, AddinLibrary

public abstract class AbstractLibrary
extends LibraryElement
implements Library

A read only, partial implementation of Libary.


Field Summary
 
Fields inherited from interface oracle.jdeveloper.library.Library
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTY
 
Fields inherited from interface oracle.jdeveloper.library.JPaths
CLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY
 
Constructor Summary
AbstractLibrary()
          Default constructor.
 
Method Summary
protected  void copyToImpl(AbstractLibrary copy)
           
 boolean equals(java.lang.Object o)
           
protected  boolean equalsImpl(AbstractLibrary other)
           
 boolean equivalent(Library library)
          Determine whether the given Library is equivalent to this one with respect to the values of its public properties other than name.
 URLPath getDefaultClassPath()
          Deprecated. use getClassPath()
 URLPath getDefaultDocPath()
          Deprecated. use getDocPath()
 URLPath getDefaultSourcePath()
          Deprecated. use getSourcePath()
 javax.swing.Icon getIcon()
          Returns an Icon that can be shown in association with this Displayable.
 java.lang.Object getID()
           
 java.lang.String getShortLabel()
          Returns a short label that can be displayed to the user.
 void initFromLibrary(Library library)
          Initialize all public properties, other than name, from the Library provided.
 boolean isDirty()
           
 boolean isLocked()
           
 void markDirty(boolean dirty)
           
 void setClassPath(URLPath clsPath)
           
 void setDefaultClassPath(URLPath clsPath)
          Deprecated. use setClassPath(URLPath)
 void setDefaultDocPath(URLPath docPath)
          Deprecated. use setDocPath(URLPath)
 void setDefaultSourcePath(URLPath srcPath)
          Deprecated. use setSourcePath(URLPath)
 void setDocPath(URLPath docPath)
           
 void setLocked(boolean isLocked)
           
 void setName(java.lang.String name)
           
 void setSourcePath(URLPath srcPath)
           
 
Methods inherited from class oracle.ide.model.DefaultElement
getAttributes, getChildren, getData, mayHaveChildren
 
Methods inherited from class oracle.ide.model.DefaultDisplayable
getLongLabel, getToolTipText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.jdeveloper.library.Library
getName
 
Methods inherited from interface oracle.jdeveloper.library.JPaths
getClassPath, getDocPath, getSourcePath
 
Methods inherited from interface oracle.ide.model.Displayable
getLongLabel, getToolTipText, toString
 

Constructor Detail

AbstractLibrary

public AbstractLibrary()
Default constructor. Required for JavaBean status.

Method Detail

equivalent

public boolean equivalent(Library library)
Description copied from interface: Library
Determine whether the given Library is equivalent to this one with respect to the values of its public properties other than name.

Specified by:
equivalent in interface Library
Parameters:
library - the Library against which to test for equivalence.
Returns:
true if all public properties are equal.

initFromLibrary

public void initFromLibrary(Library library)
Description copied from interface: Library
Initialize all public properties, other than name, from the Library provided.

Specified by:
initFromLibrary in interface Library

setClassPath

public void setClassPath(URLPath clsPath)
Specified by:
setClassPath in interface JPaths

setSourcePath

public void setSourcePath(URLPath srcPath)
Specified by:
setSourcePath in interface JPaths

setDocPath

public void setDocPath(URLPath docPath)
Specified by:
setDocPath in interface JPaths

isLocked

public boolean isLocked()
Specified by:
isLocked in interface JPaths

setLocked

public void setLocked(boolean isLocked)
Specified by:
setLocked in interface JPaths

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Library

getID

public java.lang.Object getID()
Specified by:
getID in interface Library

getDefaultClassPath

public URLPath getDefaultClassPath()
Deprecated. use getClassPath()

Specified by:
getDefaultClassPath in interface Library

setDefaultClassPath

public void setDefaultClassPath(URLPath clsPath)
Deprecated. use setClassPath(URLPath)

Specified by:
setDefaultClassPath in interface Library

getDefaultSourcePath

public URLPath getDefaultSourcePath()
Deprecated. use getSourcePath()

Specified by:
getDefaultSourcePath in interface Library

setDefaultSourcePath

public void setDefaultSourcePath(URLPath srcPath)
Deprecated. use setSourcePath(URLPath)

Specified by:
setDefaultSourcePath in interface Library

getDefaultDocPath

public URLPath getDefaultDocPath()
Deprecated. use getDocPath()

Specified by:
getDefaultDocPath in interface Library

setDefaultDocPath

public void setDefaultDocPath(URLPath docPath)
Deprecated. use setDocPath(URLPath)

Specified by:
setDefaultDocPath in interface Library

markDirty

public void markDirty(boolean dirty)
Specified by:
markDirty in interface oracle.javatools.data.Dirtyable
Overrides:
markDirty in class LibraryElement

isDirty

public boolean isDirty()
Specified by:
isDirty in interface oracle.javatools.data.Dirtyable
Overrides:
isDirty in class LibraryElement

getShortLabel

public 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()

equals

public boolean equals(java.lang.Object o)

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: Displayable
Returns an Icon that can be shown in association with this Displayable. Typically the icon will be used in a tree control or list control. Therefore the icon must fit naturally within the space normally given to items within those controls. Such icons are usually 16x16 in size or, if there is a one-pixel transparent padding around the edge, 18x18 in size. It is strongly recommended that icons returned by this method be either 16x16 or 18x18 in size. If null is returned, the control may show a default icon, or it may show no icon, whichever is appropriate.

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

copyToImpl

protected final void copyToImpl(AbstractLibrary copy)

equalsImpl

protected final boolean equalsImpl(AbstractLibrary other)

Extension SDK 10.1.3.36.73

 

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