C - the component classpublic class FileProperties<C>
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected C | compThe associated component which is encapsulated in the associated tab. | 
| protected java.lang.String | nameThe tab name. | 
| protected java.lang.Object | objThe associated Object. | 
| protected MetaData | propertiesThe associated properties. | 
| protected java.net.URL | urlThe 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,
              boolean isCloseable)Create a new FileProperties without any defined properties. | 
| FileProperties(java.lang.String name,
              C comp,
              boolean isCloseable,
              boolean isEditable)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,
              boolean isCloseable)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,
              boolean isCloseable,
              boolean isEditable)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. | 
| FileProperties(java.lang.String name,
              C comp,
              java.lang.Object obj,
              MetaData properties,
              boolean isCloseable,
              boolean isEditable)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 | isCloseable()Return true if the associated tab is closeable. | 
| 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. | 
| boolean | isEditable()Return true if the associated tab message area is isEditable. | 
| void | setCloseable(boolean isCloseable)Set if the associated tab is closeable. | 
| void | setEditable(boolean isEditable)Set if the associated tab message area is isEditable. | 
| 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,
                      boolean isCloseable)
name - the name of the tabcomp - the component associated with the tabisCloseable - true if the tab is closeablepublic FileProperties(java.lang.String name,
                      C comp,
                      boolean isCloseable,
                      boolean isEditable)
name - the name of the tabcomp - the component associated with the tabisCloseable - true if the tab is closeableisEditable - true if the tab is editablepublic 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,
                      boolean isCloseable)
name - the name of the tabcomp - the component associated with the tabobj - the associated ObjectisCloseable - true if the tab is closeablepublic FileProperties(java.lang.String name,
                      C comp,
                      java.lang.Object obj,
                      boolean isCloseable,
                      boolean isEditable)
name - the name of the tabcomp - the component associated with the tabobj - the associated ObjectisCloseable - true if the tab is closeableisEditable - true if the tab is editablepublic 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 FileProperties(java.lang.String name,
                      C comp,
                      java.lang.Object obj,
                      MetaData properties,
                      boolean isCloseable,
                      boolean isEditable)
name - the name of the tabcomp - the component associated with the tabobj - the associated Objectproperties - the associated MetaDataisCloseable - true if the tab is closeableisEditable - true if the tab is editable    *public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the panelpublic void setCloseable(boolean isCloseable)
isCloseable - true if the associated tab is closeablepublic boolean isCloseable()
public void setEditable(boolean isEditable)
isEditable - true if the associated tab message area is isEditablepublic boolean isEditable()
public 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