public abstract class AbstractLibrary extends LibraryElement implements Library
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTYCLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY| Constructor and Description |
|---|
AbstractLibrary()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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()
This implementation returns a plain document icon.
|
java.lang.Object |
getID() |
java.lang.String |
getShortLabel()
This implementation returns a place-holder
String. |
void |
initFromLibrary(Library library)
Initialize all public properties, other than name, from the Library
provided.
|
boolean |
isDirty()
True if the data in the object has been modified.
|
boolean |
isLocked() |
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state.
|
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) |
getAttributes, getChildren, getData, mayHaveChildrengetLongLabel, getToolTipText, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClassPath, getDocPath, getSourcePathgetLongLabel, getToolTipText, toStringpublic AbstractLibrary()
public boolean equivalent(Library library)
Libraryequivalent in interface Librarylibrary - the Library against which to test for equivalence.public void initFromLibrary(Library library)
LibraryinitFromLibrary in interface Librarylibrary - the Library from which to fetch property values.public void setClassPath(URLPath clsPath)
setClassPath in interface JPathspublic void setSourcePath(URLPath srcPath)
setSourcePath in interface JPathspublic void setDocPath(URLPath docPath)
setDocPath in interface JPathspublic java.lang.Object getID()
@Deprecated public URLPath getDefaultClassPath()
getDefaultClassPath in interface Library@Deprecated public void setDefaultClassPath(URLPath clsPath)
setDefaultClassPath in interface Library@Deprecated public URLPath getDefaultSourcePath()
getDefaultSourcePath in interface Library@Deprecated public void setDefaultSourcePath(URLPath srcPath)
setDefaultSourcePath in interface Library@Deprecated public URLPath getDefaultDocPath()
getDefaultDocPath in interface Library@Deprecated public void setDefaultDocPath(URLPath docPath)
setDefaultDocPath in interface Librarypublic void markDirty(boolean dirty)
DirtyablemarkDirty(...) instead of
setDirty(...) so that the JavaBeans
Introspector will not
mistakenly identify "dirty" as a JavaBean property.markDirty in interface DirtyablemarkDirty in class LibraryElementdirty - If true, sets the object as being
dirty; if false, sets the object as being up-to-date.public boolean isDirty()
DirtyableisDirty in interface DirtyableisDirty in class LibraryElementtrue if the data in the object has been modified.public java.lang.String getShortLabel()
DefaultDisplayableString.getShortLabel in interface DisplayablegetShortLabel in class DefaultDisplayableDisplayable
that can be shown to the user.Displayable.getShortLabel()public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic javax.swing.Icon getIcon()
DefaultDisplayablegetIcon in interface DisplayablegetIcon in class DefaultDisplayableIcon to be displayed for the
Displayable.Displayable.getIcon()protected final void copyToImpl(AbstractLibrary copy)
protected boolean equalsImpl(AbstractLibrary other)