org.grinvin.main

Class GrinvinWindow

Implemented Interfaces:
HasURI, WorkspaceListener

public class GrinvinWindow
extends JFrame
implements HasURI, WorkspaceListener

This class represents the GrInvIn main window.

Nested Class Summary

class
GrinvinWindow.GrinvinWindowComponentType

Constructor Summary

GrinvinWindow()
Creates a new instance of GrinvinWindow

Method Summary

void
addTabsChangeListener(ChangeListener l)
GrinvinWindow.GrinvinWindowComponentType
getSelectedTab()
URI
getURI()
Window
getWindow(String key)
Retrieve the application window with the given key.
WorksheetListModel
getWorksheetListModel()
ListSelectionModel
getWorksheetListSelectionModel()
void
locationChanged()
This method is called when the location of the workspace is changed.
void
registerWindow(String key, Window window)
Register the application window for the given key.
void
removeTabsChangeListener(ChangeListener l)
void
setSelectedTab(GrinvinWindow.GrinvinWindowComponentType key)
void
setURI(URI uri)
void
setWorksheetListModel(WorksheetListModel model)
void
setupContents()
Setup the GUI contents of this window.

Constructor Details

GrinvinWindow

public GrinvinWindow()
Creates a new instance of GrinvinWindow

Method Details

addTabsChangeListener

public void addTabsChangeListener(ChangeListener l)

getSelectedTab

public GrinvinWindow.GrinvinWindowComponentType getSelectedTab()

getURI

public URI getURI()
Specified by:
getURI in interface HasURI

getWindow

public Window getWindow(String key)
Retrieve the application window with the given key.

getWorksheetListModel

public WorksheetListModel getWorksheetListModel()

getWorksheetListSelectionModel

public ListSelectionModel getWorksheetListSelectionModel()

locationChanged

public void locationChanged()
This method is called when the location of the workspace is changed.
Specified by:
locationChanged in interface WorkspaceListener

registerWindow

public void registerWindow(String key,
                           Window window)
Register the application window for the given key. Also installs a menu command which enables the window to be made visible.

removeTabsChangeListener

public void removeTabsChangeListener(ChangeListener l)

setSelectedTab

public void setSelectedTab(GrinvinWindow.GrinvinWindowComponentType key)

setURI

public void setURI(URI uri)
Specified by:
setURI in interface HasURI

setWorksheetListModel

public void setWorksheetListModel(WorksheetListModel model)

setupContents

public void setupContents()
Setup the GUI contents of this window.