|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--elge.gui.ElgeGUI
This is a start up class for the ELGE GUI.
This class provides the basic menu functions for Project options, Help options etc.
This class also provides basic methods which have something to do with gui like selecting object, file etc.
Field Summary |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
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, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ElgeGUI()
Creates new form ElgeGUI |
Method Summary | |
void |
configureBean(Object bean)
Shows a BeanConfigurer for the bean param |
Graph |
configureGraph(Project pt,
Graph gr)
Shows a GraphConfigurer for a graph param |
protected javax.help.HelpBroker |
getHelpBroker()
Creates a HelpBroker if HelpSet is available. |
protected String |
getValidProjectName()
Asks user for the project name and cheks it. |
protected void |
newProject()
Creates new project. |
protected void |
openProject()
Opens the project. |
void |
populateRecentMenu()
Makes the recent projects available at the menu. |
void |
projectAlreadyOpened()
Shows dialog that project has been already opened. |
void |
propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
recentItemActionPerformed(ActionEvent evt,
String path)
This is called when the recent project is clicked. |
protected void |
saveAllProjects()
Saves all projects and informs the user. |
File |
selectDirectory(String startDir)
Shows a directory dialog to select a directory. |
Object |
selectMonitor()
Shows the PoolSelector for the Monitor class. |
List |
selectMonitoredCustomValues(Project pt)
Displayes the form for selected idents that the monitors can store. |
File |
selectProjectDirectory(String startDir)
show a file chooser dialog for selecting a project dir. |
Class |
selectWorld()
Shows the dialog for selecting the world. |
Object |
selectWorldAgentTemplate()
Shows the PoolSelector for the WorldAgent class. |
void |
showError(String message,
String exmsg)
Shows a dialog for error message. |
void |
showMainHelp()
show the main help window. |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Constructor Detail |
public ElgeGUI()
Method Detail |
public void populateRecentMenu()
public void recentItemActionPerformed(ActionEvent evt, String path)
evt
- the event objectpath
- the selected path to project.protected String getValidProjectName()
Engine.checkProjectName(java.lang.String)
protected void saveAllProjects()
Engine.saveProjects()
protected void openProject()
Engine.loadProject(java.io.File)
protected void newProject()
Engine.createProject(java.lang.String, elge.world.World)
,
getValidProjectName()
public Class selectWorld()
PoolSelector
public Object selectWorldAgentTemplate()
PoolSelector
public Object selectMonitor()
Monitor
,
PoolSelector
public List selectMonitoredCustomValues(Project pt)
This dialog is used in GraphConfigurer
pt
- The project to load the monitors from.
GraphConfigurer
public void configureBean(Object bean)
bean
- the bean to be configuredpublic Graph configureGraph(Project pt, Graph gr)
pt
- the project graph is ingr
- the graph to be configured
public void showError(String message, String exmsg)
message
- simple error messageexmsg
- error message detailpublic void propertyChange(PropertyChangeEvent evt)
For GUI it listens on RecentProjects property to update the recent menu
propertyChange
in interface PropertyChangeListener
evt
- A PropertyChangeEvent object describing the event source
and the property that has changed.populateRecentMenu()
public File selectProjectDirectory(String startDir)
startDir
- dir to start browsing from
public File selectDirectory(String startDir)
startDir
- startup dir.
public void projectAlreadyOpened()
public void showMainHelp()
protected javax.help.HelpBroker getHelpBroker()
Engine.getHelpSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |