C
- the component classpublic class FileProperties<C>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected C |
comp
The associated panel.
|
protected java.lang.String |
name
The tab name.
|
protected java.lang.Object |
obj
The associated Object.
|
protected MetaData |
properties
The associated properties.
|
protected java.net.URL |
url
The associated URL (may be null).
|
Constructor and Description |
---|
FileProperties(java.lang.String name,
C comp)
Create a new FileProperties without any defined properties.
|
FileProperties(java.lang.String name,
C comp,
java.lang.Object obj)
Create a new FileProperties without any defined properties, and associate it with an Object.
|
FileProperties(java.lang.String name,
C comp,
java.lang.Object obj,
MetaData properties)
Create a new FileProperties with some defined properties, and associate it with an Object.
|
Modifier and Type | Method and Description |
---|---|
C |
getComponent()
Return the FileProperties associated panel.
|
java.io.File |
getFile()
Return the associated File (may be null).
|
MetaData |
getMetaData()
Return the MetaData associated with the panel.
|
java.lang.String |
getName()
Return the name of the panel.
|
java.lang.Object |
getObject()
Return the associated Object, if it exists, or else return null.
|
java.net.URL |
getURL()
Return the associated URL (may be null).
|
boolean |
isCompatibleWith(FileProperties prop)
Same as
isCompatibleWith(org.mdi.bootstrap.FileProperties, boolean) , with only partial compatibility. |
boolean |
isCompatibleWith(FileProperties prop,
boolean complete)
Look if two FileProperties are compatible.
|
boolean |
isCompatibleWith(MetaData meta)
Same as
isCompatibleWith(MetaData, boolean) , with only partial compatibility. |
boolean |
isCompatibleWith(MetaData meta,
boolean complete)
Look if two FileProperties are compatible.
|
void |
setMetaData(MetaData properties)
Set the MetaData to associate with the panel.
|
void |
setName(java.lang.String name)
Set the name of the panel.
|
void |
setObject(java.lang.Object obj)
Set the associated Object.
|
void |
setURL(java.net.URL url)
Set the associated URL.
|
protected MetaData properties
protected java.lang.String name
protected C comp
protected java.lang.Object obj
protected java.net.URL url
public FileProperties(java.lang.String name, C comp)
name
- the name of the tabcomp
- the component associated with the tabpublic FileProperties(java.lang.String name, C comp, java.lang.Object obj)
name
- the name of the tabcomp
- the component associated with the tabobj
- the associated Objectpublic FileProperties(java.lang.String name, C comp, java.lang.Object obj, MetaData properties)
name
- the name of the tabcomp
- the component associated with the tabobj
- the associated Objectproperties
- the associated MetaDatapublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the panelpublic C getComponent()
public MetaData getMetaData()
public void setMetaData(MetaData properties)
properties
- the MetaData to associate with the panelpublic java.lang.Object getObject()
public void setObject(java.lang.Object obj)
obj
- the associated Objectpublic void setURL(java.net.URL url)
url
- the urlpublic java.net.URL getURL()
public java.io.File getFile()
public boolean isCompatibleWith(MetaData meta, boolean complete)
meta
- the MetaData to compare withcomplete
- true if there must be equality for the MetaData keys, meaning that all properties in
each MetaData must match, false if only the keys of the MetaData to compare must matchpublic boolean isCompatibleWith(FileProperties prop, boolean complete)
prop
- the second FilePropertiescomplete
- true if there must be equality for the MetaData keys, meaning that all properties in
each MetaData must match, false if only the keys of the MetaData to compare must matchpublic boolean isCompatibleWith(MetaData meta)
isCompatibleWith(MetaData, boolean)
, with only partial compatibility. Only the keys of
the MetaData to compare must match, meaning that there can be additional keys in this FileProperties MetaData.meta
- the MetaData to compare withpublic boolean isCompatibleWith(FileProperties prop)
isCompatibleWith(org.mdi.bootstrap.FileProperties, boolean)
, with only partial compatibility. Only the keys of
the MetaData to compare must match, meaning that there can be additional keys in this FileProperties MetaData.prop
- the second FileProperties