oracle.jdeveloper.library
Class JLibraryAdapter
java.lang.Object
oracle.javatools.data.HashStructureAdapter
oracle.jdeveloper.library.LibraryAdapter
oracle.jdeveloper.library.JLibraryAdapter
- All Implemented Interfaces:
- Displayable, JLibrary, JLibraryDefinition, JPaths, Library
public class JLibraryAdapter
- extends LibraryAdapter
- implements JLibrary
Encapsulates the notion of a Library as it is used
within JDeveloper.
Methods inherited from class oracle.jdeveloper.library.LibraryAdapter |
getClassPath, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getDocPath, getID, getLongLabel, getName, getShortLabel, getSourcePath, getToolTipText, isLocked, setClassPath, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setDocPath, setID, setLocked, setName, setSourcePath, toString |
Methods inherited from class oracle.javatools.data.HashStructureAdapter |
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JLibraryAdapter
public JLibraryAdapter(HashStructure hash)
equivalent
public boolean equivalent(Library lib)
- 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
- Overrides:
equivalent
in class LibraryAdapter
- Parameters:
lib
- the Library against which to test for equivalence.
- Returns:
- true if all public properties are equal.
initFromLibrary
public void initFromLibrary(Library lib)
- Description copied from interface:
Library
- Initialize all public properties, other than name, from the Library
provided.
- Specified by:
initFromLibrary
in interface Library
- Overrides:
initFromLibrary
in class LibraryAdapter
setIcon
public void setIcon(javax.swing.Icon icon)
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 LibraryAdapter
- Returns:
- the
Icon
to be displayed for the
Displayable
.
getDeployedByDefault
public java.lang.Boolean getDeployedByDefault()
throws AttributeMarker
- Specified by:
getDeployedByDefault
in interface JLibrary
- Throws:
AttributeMarker
setDeployedByDefault
public void setDeployedByDefault(java.lang.Boolean deploy)
- Specified by:
setDeployedByDefault
in interface JLibrary
getDefaultLibraryDefinition
public JLibraryDefinition getDefaultLibraryDefinition()
- Deprecated. JDK based versions desupported. Use JLibrary directly.
- Specified by:
getDefaultLibraryDefinition
in interface JLibrary
getLibraryDefinition
public JLibraryDefinition getLibraryDefinition(VersionNumber jdkVer)
- Deprecated. JDK based versions desupported. Use JLibrary directly.
- Specified by:
getLibraryDefinition
in interface JLibrary
Copyright © 1997, 2011, Oracle. All rights reserved.