Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.txt2xml.gui
Class GuiController  view GuiController download GuiController.java

java.lang.Object
  extended byorg.scopemvc.controller.basic.BasicController
      extended byorg.txt2xml.gui.GuiController
All Implemented Interfaces:
org.scopemvc.core.Controller

public class GuiController
extends org.scopemvc.controller.basic.BasicController


Field Summary
private  java.io.File currentDirectory
           
static java.lang.String LOAD_CONFIG
           
static java.lang.String LOAD_SOURCE
           
private static java.util.logging.Logger LOG
           
static java.lang.String PROCESS
           
static java.lang.String SAVE_CONFIG
           
static java.lang.String SAVE_SOURCE
           
 
Fields inherited from class org.scopemvc.controller.basic.BasicController
CHANGE_MODEL_CONTROL_ID, EXIT_CONTROL_ID, HIDE_VIEW_CONTROL_ID
 
Constructor Summary
(package private) GuiController()
           
 
Method Summary
protected  void doHandleControl(org.scopemvc.core.Control inControl)
           Override this to recognise Controls that this Controller can handle.
private  void doLoadConfig()
           
private  void doLoadSource()
           
private  void doProcess()
           
private  void doSaveConfig()
           
private  void doSaveSource()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.scopemvc.controller.basic.BasicController
addChild, bindModelToView, getChildren, getModel, getParent, getTopParent, getView, handleControl, handleControlException, hideView, hideView, passControlToParent, removeChild, setModel, setModelAndView, setParent, setView, showError, showView, showView, shutdown, startup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final java.util.logging.Logger LOG

PROCESS

public static final java.lang.String PROCESS
See Also:
Constant Field Values

LOAD_SOURCE

public static final java.lang.String LOAD_SOURCE
See Also:
Constant Field Values

LOAD_CONFIG

public static final java.lang.String LOAD_CONFIG
See Also:
Constant Field Values

SAVE_SOURCE

public static final java.lang.String SAVE_SOURCE
See Also:
Constant Field Values

SAVE_CONFIG

public static final java.lang.String SAVE_CONFIG
See Also:
Constant Field Values

currentDirectory

private java.io.File currentDirectory
Constructor Detail

GuiController

GuiController()
Method Detail

doHandleControl

protected void doHandleControl(org.scopemvc.core.Control inControl)
                        throws org.scopemvc.core.ControlException
Description copied from class: org.scopemvc.controller.basic.BasicController

Override this to recognise Controls that this Controller can handle. Any unhandled Controls are passed up the chain of responsibility to parent Controllers.

 protected void doHandleControl(Control inControl) throws ControlException {
     if (inControl.matchesID(FOO_CONTROL_ID)) {
         doFoo(inControl.getParameter());
     } else if (inControl.matchesID(BAR_CONTROL_ID)) {
         doBar(inControl.getParameter());
     }
 }
 

If something goes wrong when running some presentation logic, throw a ControlException which results in a call to BasicController.handleControlException(org.scopemvc.core.ControlException)>BasicController.handleControlException(org.scopemvc.core.ControlException) 55 ).


doProcess

private void doProcess()

doLoadSource

private void doLoadSource()

doLoadConfig

private void doLoadConfig()

doSaveSource

private void doSaveSource()

doSaveConfig

private void doSaveConfig()

main

public static void main(java.lang.String[] args)