|
||||||||||
| 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.JInternalFrame
org.simbrain.world.dataworld.DataWorldFrame
public class DataWorldFrame
DataWorldFrame is a "spreadsheet world" used to send rows of raw data to input nodes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JInternalFrame |
|---|
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon |
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JInternalFrame |
|---|
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
| 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 javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DataWorldFrame()
This method is the default constructor. |
|
DataWorldFrame(Workspace ws)
Construct a new world panel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Responds to actions performed. |
void |
addMenuBar(DataWorld table)
Creates the Menu Bar and adds it to the frame. |
File |
getCurrentFile()
|
String |
getGenericPath()
|
String |
getPath()
|
int |
getTheHeight()
|
int |
getTheWidth()
|
Workspace |
getWorkspace()
|
DataWorld |
getWorld()
|
int |
getXpos()
|
int |
getYpos()
|
void |
init()
Initilaizes items needed to create frame. |
void |
initBounds()
For Castor. |
void |
internalFrameActivated(InternalFrameEvent e)
Responds to internal frame activated event. |
void |
internalFrameClosed(InternalFrameEvent e)
Responds to internal frame closed event. |
void |
internalFrameClosing(InternalFrameEvent e)
Responds to internal frame closing event. |
void |
internalFrameDeactivated(InternalFrameEvent e)
Responds to internal frame deactivated event. |
void |
internalFrameDeiconified(InternalFrameEvent e)
Responds to internal frame deiconified event. |
void |
internalFrameIconified(InternalFrameEvent e)
Responds to internal frame iconified event. |
void |
internalFrameOpened(InternalFrameEvent e)
Responds to internal frame opened event. |
boolean |
isChangedSinceLastSave()
|
void |
menuCanceled(MenuEvent e)
Menu canceled event. |
void |
menuDeselected(MenuEvent e)
Menu deselected event. |
void |
menuSelected(MenuEvent e)
Menu selected event. |
boolean |
openWorld()
Show the dialog for choosing a world to open. |
void |
pack()
|
void |
readWorld(File theFile)
Read a world from a world-xml file. |
void |
saveWorld()
Opens a file-save dialog and saves world information to the specified file. |
void |
saveWorld(File worldFile)
Save a specified file Called by "save". |
void |
setChangedSinceLastSave(boolean hasChangedSinceLastSave)
|
void |
setPath(String path)
|
void |
setTheHeight(int theHeight)
|
void |
setTheWidth(int theWidth)
|
void |
setWorkspace(Workspace workspace)
|
void |
setWorldName(String name)
Sets the name of the world. |
void |
setXpos(int xpos)
|
void |
setYpos(int ypos)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataWorldFrame()
public DataWorldFrame(Workspace ws)
ws - Workspace| Method Detail |
|---|
public void init()
public void addMenuBar(DataWorld table)
table - Table to be used for worldpublic File getCurrentFile()
public DataWorld getWorld()
public boolean openWorld()
public void readWorld(File theFile)
theFile - the xml file containing world informationpublic void saveWorld()
public void saveWorld(File worldFile)
worldFile - File to save worldpublic void internalFrameOpened(InternalFrameEvent e)
internalFrameOpened in interface InternalFrameListenere - Internal frame eventpublic void internalFrameClosing(InternalFrameEvent e)
internalFrameClosing in interface InternalFrameListenere - Internal frame eventpublic void internalFrameClosed(InternalFrameEvent e)
internalFrameClosed in interface InternalFrameListenere - Internal frame eventpublic void internalFrameIconified(InternalFrameEvent e)
internalFrameIconified in interface InternalFrameListenere - Internal frame eventpublic void internalFrameDeiconified(InternalFrameEvent e)
internalFrameDeiconified in interface InternalFrameListenere - Internal frame eventpublic void internalFrameActivated(InternalFrameEvent e)
internalFrameActivated in interface InternalFrameListenere - Internal frame eventpublic void internalFrameDeactivated(InternalFrameEvent e)
internalFrameDeactivated in interface InternalFrameListenere - Internal frame eventpublic void setPath(String path)
path - The path to set; used in persistence.public String getPath()
public String getGenericPath()
public Workspace getWorkspace()
public void setWorkspace(Workspace workspace)
workspace - The workspace to set.public void initBounds()
public int getXpos()
public void setXpos(int xpos)
xpos - The xpos to set.public int getYpos()
public void setYpos(int ypos)
ypos - The ypos to set.public int getTheHeight()
public void setTheHeight(int theHeight)
theHeight - The theHeight to set.public int getTheWidth()
public void setTheWidth(int theWidth)
theWidth - The theWidth to set.public void setWorldName(String name)
name - The value to be setpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - Action eventpublic boolean isChangedSinceLastSave()
public void setChangedSinceLastSave(boolean hasChangedSinceLastSave)
hasChangedSinceLastSave - The changedSinceLastSave to set.public void menuSelected(MenuEvent e)
menuSelected in interface MenuListenere - Menu eventpublic void menuDeselected(MenuEvent e)
menuDeselected in interface MenuListenere - Menu eventpublic void menuCanceled(MenuEvent e)
menuCanceled in interface MenuListenere - Menu eventpublic void pack()
pack in class JInternalFrameJFrame
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||