public class JLibraryAdapter extends LibraryAdapter implements JLibrary
_hash
DEPLOYED_BY_DEFAULT_PROPERTY
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTY
CLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY
Constructor and Description |
---|
JLibraryAdapter(HashStructure hash) |
Modifier and Type | Method and Description |
---|---|
boolean |
equivalent(Library lib)
Determine whether the given Library is equivalent to this one with respect
to the values of its public properties other than name.
|
JLibraryDefinition |
getDefaultLibraryDefinition()
Deprecated.
JDK based versions desupported. Use JLibrary directly.
|
java.lang.Boolean |
getDeployedByDefault() |
javax.swing.Icon |
getIcon()
Returns an
Icon that can be shown in association with this
Displayable . |
JLibraryDefinition |
getLibraryDefinition(VersionNumber jdkVer)
Deprecated.
JDK based versions desupported. Use JLibrary directly.
|
void |
initFromLibrary(Library lib)
Initialize all public properties, other than name, from the Library
provided.
|
void |
setDeployedByDefault(java.lang.Boolean deploy) |
void |
setIcon(javax.swing.Icon icon) |
getClassPath, getClassPath, getClassPath, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getDocPath, getDocPath, getDocPath, getID, getLongLabel, getName, getShortLabel, getSourcePath, getSourcePath, getSourcePath, getToolTipText, isLocked, setClassPath, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setDocPath, setID, setLocked, setName, setSourcePath, toString
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, getName, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setName
getClassPath, getDocPath, getSourcePath, isLocked, setClassPath, setDocPath, setLocked, setSourcePath
getLongLabel, getShortLabel, getToolTipText, toString
public JLibraryAdapter(HashStructure hash)
public boolean equivalent(Library lib)
Library
equivalent
in interface Library
equivalent
in class LibraryAdapter
lib
- the Library against which to test for equivalence.public void initFromLibrary(Library lib)
Library
initFromLibrary
in interface Library
initFromLibrary
in class LibraryAdapter
lib
- the Library from which to fetch property values.public void setIcon(javax.swing.Icon icon)
public javax.swing.Icon getIcon()
Displayable
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.getIcon
in interface Displayable
getIcon
in class LibraryAdapter
Icon
to be displayed for the
Displayable
.public java.lang.Boolean getDeployedByDefault() throws AttributeMarker
getDeployedByDefault
in interface JLibrary
AttributeMarker
public void setDeployedByDefault(java.lang.Boolean deploy)
setDeployedByDefault
in interface JLibrary
@Deprecated public JLibraryDefinition getDefaultLibraryDefinition()
getDefaultLibraryDefinition
in interface JLibrary
@Deprecated public JLibraryDefinition getLibraryDefinition(VersionNumber jdkVer)
getLibraryDefinition
in interface JLibrary