vooga.levelEditor.ui
Class LevelEditorUI

java.lang.Object
  extended by vooga.levelEditor.ui.LevelEditorUI

public class LevelEditorUI
extends java.lang.Object

The umbrella class for the Level Editor UI. Forwards UI requests to underlying components.

Author:
Phil Puryear

Constructor Summary
LevelEditorUI()
          Create a new LevelEditorUI object.
 
Method Summary
 void construct(LevelEditorModel model, LevelEditorController controller)
          Builds the Level Editor GUI, given a model and a controller.
 void dispose()
          Disposes the top level frame
 javax.swing.JFrame getTopLevelFrame()
          Returns the top level frame
 java.io.File openFileChooser()
          Opens the "open" file chooser
 java.io.File saveFileChooser()
          Opens the "save as" file chooser
 void showError(java.lang.String message)
          Displays a modal error with the supplied message.
 void showObjectPropertiesDialog(InstantiatedGameItemModel itemModel)
          Displays box where parameters of object may be changed
 void toggleCurrentLevelObjectListVisible()
          Toggles the visibility of the Current Level Object List.
 void toggleObjectBrowserVisible()
          Toggles the visibility of the Object Browser.
 void toggleRenderWindowVisible()
          Toggles the visibility of the Render Window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LevelEditorUI

public LevelEditorUI()
Create a new LevelEditorUI object. Does not construct the GUI yet.

Method Detail

construct

public void construct(LevelEditorModel model,
                      LevelEditorController controller)
Builds the Level Editor GUI, given a model and a controller. We need these items to build the GUI so that various components can register themselves as observers of model data, as well as hook up to event listeners and such in the controller.


toggleObjectBrowserVisible

public void toggleObjectBrowserVisible()
Toggles the visibility of the Object Browser.


toggleRenderWindowVisible

public void toggleRenderWindowVisible()
Toggles the visibility of the Render Window.


toggleCurrentLevelObjectListVisible

public void toggleCurrentLevelObjectListVisible()
Toggles the visibility of the Current Level Object List.


showError

public void showError(java.lang.String message)
Displays a modal error with the supplied message.


showObjectPropertiesDialog

public void showObjectPropertiesDialog(InstantiatedGameItemModel itemModel)
Displays box where parameters of object may be changed

Parameters:
itemModel -

dispose

public void dispose()
Disposes the top level frame


getTopLevelFrame

public javax.swing.JFrame getTopLevelFrame()
Returns the top level frame

Returns:

openFileChooser

public java.io.File openFileChooser()
Opens the "open" file chooser

Returns:

saveFileChooser

public java.io.File saveFileChooser()
Opens the "save as" file chooser

Returns: