|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bigzip.plugin.ArchiveModel
Plugins provide BiGZiP will an subclass of Archive when a new archive is created or an existing archive is opened. The class is used to provide the user will access to details of the archive.
Field Summary | |
static java.lang.String |
ACTIONS_PROPERTY
|
static java.lang.String |
ARCHIVE_TITLE_PROPERTY
|
static java.lang.String |
COLUMN_INFO_PROPERTY
|
static java.lang.String |
ENTRIES_PROPERTY
|
static java.lang.String |
ENTRY_COUNT_PROPERTY
|
static java.lang.String |
TOTAL_COMPRESSED_SIZE_PROPERTY
|
static java.lang.String |
TOTAL_UNCOMPRESSED_SIZE_PROPERTY
|
Constructor Summary | |
ArchiveModel()
|
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to this list of listeners notified of changes in this Archive's properties. |
abstract void |
close()
Close the archive represented by this model and free any resources allocated. |
static void |
closeAllTemporaryFiles()
|
static boolean |
closeTemporaryFile(java.io.File temporaryFile)
|
static java.io.File |
createNewTemporaryFile()
|
protected void |
firePropertyChangeEvent(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires a PropertyChangeEvent at the listeners registered with this Archive. |
ArchiveAction |
getAction(int index)
|
ArchiveAction[] |
getActions()
|
java.lang.String |
getArchiveTitle()
Returns the title of the archive. |
ColumnInfo[] |
getColumnInfo()
|
ArchiveEntry[] |
getEntries()
Returns the list of entries in the archive. |
int |
getEntryCount()
|
java.lang.String |
getFileName()
|
javax.swing.JDialog |
getPropertiesDialog()
Returns a dialog box that allows the user to view and optionally modify properties of the archive. |
long |
getTotalCompressedSize()
Returns the sum of the sizes of the files compressed in the archive. |
long |
getTotalUncompressedSize()
Returns the total size of the files in the archive if the archive was completly uncompressed. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a previously added PropertyChangeListener object from the list of listeners notified of changes in this object. |
void |
saveRegistrationSettings()
Saves the user registration settings. |
void |
setActions(ArchiveAction[] actions)
Sets the actions available for this plugin. |
void |
setArchiveTitle(java.lang.String archiveTitle)
Sets the archive's title. |
void |
setColumnInfo(ColumnInfo[] columnInfo)
Sets the list of ColumnInfo objects that describes each of the extra table columns. |
void |
setEntries(ArchiveEntry[] entries)
Sets the list of entries in the archive. |
void |
setEntryCount(int entryCount)
Sets the number of entries for the archive. |
void |
setFilename(java.lang.String filename)
Sets the name of the file that this archive model represents. |
void |
setPropertiesDialog(javax.swing.JDialog propertiesDialog)
Sets the dialog that provides access to the archive's properties. |
static void |
setSettings(Settings settings)
|
void |
setTotalCompressedSize(long totalCompressedSize)
Sets the total compressed size. |
void |
setTotalUncompressedSize(long totalUncompressedSize)
Sets the total uncompressed size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ACTIONS_PROPERTY
public static final java.lang.String ARCHIVE_TITLE_PROPERTY
public static final java.lang.String COLUMN_INFO_PROPERTY
public static final java.lang.String ENTRIES_PROPERTY
public static final java.lang.String ENTRY_COUNT_PROPERTY
public static final java.lang.String TOTAL_COMPRESSED_SIZE_PROPERTY
public static final java.lang.String TOTAL_UNCOMPRESSED_SIZE_PROPERTY
Constructor Detail |
public ArchiveModel()
Method Detail |
public static java.io.File createNewTemporaryFile()
public static void closeAllTemporaryFiles()
public static boolean closeTemporaryFile(java.io.File temporaryFile)
public static void setSettings(Settings settings)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- PropertyChangeListener to be notified.public abstract void close() throws java.io.IOException
java.io.IOException
- An error occurs while closing the archive.protected void firePropertyChangeEvent(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public ArchiveAction getAction(int index)
index
- the specific action required with in the ArchiveAction array.public ArchiveAction[] getActions()
public java.lang.String getArchiveTitle()
public ColumnInfo[] getColumnInfo()
public ArchiveEntry[] getEntries()
public int getEntryCount()
public java.lang.String getFileName()
public javax.swing.JDialog getPropertiesDialog()
public long getTotalCompressedSize()
public long getTotalUncompressedSize()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void saveRegistrationSettings()
public void setActions(ArchiveAction[] actions)
actions
- List of available BiGZiPAction objects.public void setArchiveTitle(java.lang.String archiveTitle)
The
- archive's title.public void setColumnInfo(ColumnInfo[] columnInfo)
columnInfo
- The list of ColumnInfo objects.public void setEntries(ArchiveEntry[] entries)
The
- list of entries representing the files in the archive.public void setEntryCount(int entryCount)
entryCount
- Number of entries.public void setFilename(java.lang.String filename)
filename
- The name of the file.public void setPropertiesDialog(javax.swing.JDialog propertiesDialog)
public void setTotalCompressedSize(long totalCompressedSize)
totalCompressedSize
- The total compressed size.public void setTotalUncompressedSize(long totalUncompressedSize)
totalUncompressedSize
- The total uncompressed size.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |