Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.console.gui.objects.DumpFileObject Class Reference

Inheritance diagram for org.objectweb.cjdbc.console.gui.objects.DumpFileObject:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.console.gui.objects.DumpFileObject:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DumpFileObject (File dumpFile)
File getDumpFile ()
String getDumpName ()

Package Functions

void setDisplayName ()

Detailed Description

This class defines a DumpFileObject to represent graphically dump files

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 46 of file DumpFileObject.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.gui.objects.DumpFileObject.DumpFileObject File  dumpFile  ) 
 

Creates a new DumpFileObject.java object

Parameters:
dumpFile name of the dump file

Definition at line 58 of file DumpFileObject.java.

00059   {
00060     this.dumpFile = dumpFile;
00061     this.dumpFileName = dumpFile.getName();
00062     this.df = new SimpleDateFormat();
00063     this.setActionCommand(GuiConstants.BACKEND_STATE_RESTORE);
00064     setIcon(GuiIcons.DUMP_FILE_ICON);
00065     setBackground(Color.white);
00066     setDisplayName();
00067     setVerticalTextPosition(SwingConstants.BOTTOM);
00068     setFont(GuiConstants.CENTER_PANE_FONT);
00069 
00070     setToolTipText("File:" + dumpFileName + "\nLast Modified:"
00071         + df.format(new Date(dumpFile.lastModified())));
00072   }


Member Function Documentation

File org.objectweb.cjdbc.console.gui.objects.DumpFileObject.getDumpFile  ) 
 

Returns the dumpFile value.

Returns:
Returns the dumpFile.

Definition at line 97 of file DumpFileObject.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionDeleteDump().

00098   {
00099     return dumpFile;
00100   }

String org.objectweb.cjdbc.console.gui.objects.DumpFileObject.getDumpName  ) 
 

Return the dump file name.

Returns:
the dump name

Definition at line 107 of file DumpFileObject.java.

00108   {
00109     String name = dumpFile.getName();
00110     return name.substring(0, name.indexOf(Constants.ZIP_EXT));
00111   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:30 2005 for C-JDBC by  doxygen 1.3.9.1