KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ca > directory > jxplorer > editor > odspreadsheetxlseditor


1 package com.ca.directory.jxplorer.editor;
2
3 import com.ca.commons.cbutil.CBIntText;
4
5 import java.awt.*;
6
7
8
9 /**
10  * Class that extends BaseODMediaEditor to basically customise the display with
11  * the title 'odSpreadSheetXLS' and to add a launch button that when clicked creates
12  * a temp file and tries to launch the file in the default player.
13  * @author Trudi.
14  */

15  
16 public class odspreadsheetxlseditor extends baseodmediaeditor
17 {
18
19    /**
20     * Calls the BaseODMediaEditor constructor, sets the dialog title, the file
21     * name and the extension.
22     * @param owner handle to the application frame, used to display dialog boxes.
23     */

24
25     public odspreadsheetxlseditor(Frame owner)
26     {
27         super(owner);
28         super.setDialogTitle(CBIntText.get("odSpreadSheetXLS"));
29         super.setFileName("odSpreadSheetXLS");
30         super.setExtension(".xls");
31     }
32 }
Popular Tags