|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.tools.SpreadSheetViewerPanel
public class SpreadSheetViewerPanel
A panel for viewing SpreadSheet files.
| Nested Class Summary | |
|---|---|
static class |
SpreadSheetViewerPanel.TabbedPane
A specialized tabbed pane with a few methods for easier access. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
FILENAME
the name of the props file. |
protected SpreadSheetFileChooser |
m_FileChooser
the filedialog for loading CSV files. |
protected JMenuBar |
m_MenuBar
the menu bar, if used. |
protected JMenuItem |
m_MenuItemFileClose
the "close" menu item. |
protected JMenuItem |
m_MenuItemFileExit
the "exit" menu item. |
protected JMenuItem |
m_MenuItemFileOpen
the "open" menu item. |
protected JMenu |
m_MenuItemFileOpenRecent
the "load recent" submenu. |
protected JMenuItem |
m_MenuItemViewDisplayedDecimals
the "displayed decimals" menu item. |
protected JMenuItem |
m_MenuItemViewDisplayedDecimalsAll
the "displayed decimals (all)" menu item. |
protected static Properties |
m_Properties
the properties. |
protected RecentFilesHandler |
m_RecentFilesHandler
the recent files handler. |
protected SpreadSheetViewerPanel.TabbedPane |
m_TabbedPane
the tabbed pane for displaying the CSV files. |
static String |
SESSION_FILE
the file to store the recent files in. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SpreadSheetViewerPanel()
|
|
| Method Summary | |
|---|---|
protected void |
close()
Closes the dialog or frame. |
protected void |
closeFile()
Closes the current active tab. |
JMenuBar |
getMenuBar()
Creates a menu bar (singleton per panel object). |
static Properties |
getProperties()
Returns the properties that define the editor. |
Class[] |
getSendToClasses()
Returns the classes that the supporter generates. |
Object |
getSendToItem(Class[] cls)
Returns the object to send. |
boolean |
hasSendToItem(Class[] cls)
Checks whether something to send is available. |
protected void |
initGUI()
Initializes the widgets. |
protected void |
initialize()
Initializes the members. |
void |
load(AbstractSpreadSheetReader reader,
File file)
Loads the specified file. |
void |
load(File file)
Loads the specified file. |
protected void |
open()
Opens one or more CSV files. |
protected void |
updateMenu()
updates the enabled state of the menu items. |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, finishInit, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, main, setParentTitle, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String FILENAME
public static final String SESSION_FILE
protected static Properties m_Properties
protected SpreadSheetViewerPanel.TabbedPane m_TabbedPane
protected JMenuBar m_MenuBar
protected JMenuItem m_MenuItemFileOpen
protected JMenu m_MenuItemFileOpenRecent
protected JMenuItem m_MenuItemFileClose
protected JMenuItem m_MenuItemFileExit
protected JMenuItem m_MenuItemViewDisplayedDecimals
protected JMenuItem m_MenuItemViewDisplayedDecimalsAll
protected SpreadSheetFileChooser m_FileChooser
protected RecentFilesHandler m_RecentFilesHandler
| Constructor Detail |
|---|
public SpreadSheetViewerPanel()
| Method Detail |
|---|
protected void initialize()
initialize in class BasePanelprotected void initGUI()
initGUI in class BasePanelpublic JMenuBar getMenuBar()
getMenuBar in interface MenuBarProviderprotected void updateMenu()
protected void open()
public void load(File file)
reader - the reader to use for reading the filefile - the file to load
public void load(AbstractSpreadSheetReader reader,
File file)
reader - the reader to use for reading the filefile - the file to loadprotected void closeFile()
protected void close()
public Class[] getSendToClasses()
getSendToClasses in interface SendToActionSupporterpublic boolean hasSendToItem(Class[] cls)
hasSendToItem in interface SendToActionSupportercls - the classes to retrieve the item for
public Object getSendToItem(Class[] cls)
getSendToItem in interface SendToActionSupportercls - the classes to retrieve the item for
public static Properties getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||