com.ebmwebsourcing.webdesigner.presentation.gwt.client.designer
Class DesignerController

java.lang.Object
  extended by com.ebmwebsourcing.webdesigner.presentation.gwt.client.designer.DesignerController

public class DesignerController
extends java.lang.Object

Controller that exposes the main functionalities for the designer

Author:
nfleury

Constructor Summary
DesignerController(Designer designer)
           
 
Method Summary
 void activateDrawingPanelById(java.lang.String id)
           
 Designer getDesigner()
           
 DesignerModel getModel()
           
 void loadDiagram(DiagramSyntax syntax, SyntaxModel model)
          Loads a new diagram in a new tab
 void mask()
           
 void mask(java.lang.String msg)
           
 void maskActiveDrawingPanel()
          Masks the DrawingPanel/Tab that currently has the focus
 void maskActiveDrawingPanel(java.lang.String msg)
          Masks the DrawingPanel/Tab that currently has the focus
 void refreshDiagram(java.lang.String id, SyntaxModel model, boolean activate)
          Reload a diagram with a specific id with the specified model
 void showError(java.lang.String msg)
           
 void showInfo(java.lang.String msg)
           
 void unmask()
           
 void unmaskActiveDrawingPanel()
          Unmask the DrawingPanel/Tab that currently has the focus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesignerController

public DesignerController(Designer designer)
Method Detail

loadDiagram

public void loadDiagram(DiagramSyntax syntax,
                        SyntaxModel model)
Loads a new diagram in a new tab

Parameters:
syntax -
model -

refreshDiagram

public void refreshDiagram(java.lang.String id,
                           SyntaxModel model,
                           boolean activate)
Reload a diagram with a specific id with the specified model

Parameters:
id - of the syntaxmodel diagram that should already be loaded
model - the new model to display
activate - if True the tab will be activated

activateDrawingPanelById

public void activateDrawingPanelById(java.lang.String id)

showInfo

public void showInfo(java.lang.String msg)

showError

public void showError(java.lang.String msg)

mask

public void mask()

mask

public void mask(java.lang.String msg)

unmask

public void unmask()

maskActiveDrawingPanel

public void maskActiveDrawingPanel()
Masks the DrawingPanel/Tab that currently has the focus


maskActiveDrawingPanel

public void maskActiveDrawingPanel(java.lang.String msg)
Masks the DrawingPanel/Tab that currently has the focus

Parameters:
msg - Message to display

unmaskActiveDrawingPanel

public void unmaskActiveDrawingPanel()
Unmask the DrawingPanel/Tab that currently has the focus


getModel

public DesignerModel getModel()

getDesigner

public Designer getDesigner()


Copyright © 2010 eBM WebSourcing. All Rights Reserved.