Extension SDK

oracle.jdevimpl.uieditor
Class UIEditorController

java.lang.Object
  extended byoracle.ide.addin.BaseController
      extended byoracle.jdevimpl.uieditor.UIEditorController
All Implemented Interfaces:
Controller

public final class UIEditorController
extends BaseController

The UIEditorController handles UIEditor related actions by invoking the relevant Command implmentations as determined by an IdeAction id. It is also responsible for setting the enabled/disabled state of the individual IdeAction instances thereby affecting the sensitivity of their associated menu items.

See Also:
IdeAction, Command, Controller, oracle.jdeveloper.diagram.type.UIEditor

Method Summary
 void addNode(UIEditor editor, java.lang.String type, oracle.jdeveloper.cmt.CmtModelNode target, oracle.jdeveloper.cmt.CmtModelNode aheadOf)
          Given a class name, add a new component to the models at no specific location.
 void addNode(UIEditor editor, java.lang.String type, oracle.jdeveloper.cmt.CmtModelNode target, java.awt.Point location, java.awt.Dimension size)
           
 void generateDefaultEvent(UIEditor editor)
           
static UIEditorController getInstance()
          Singleton accessor.
 boolean handleEvent(IdeAction action, Context context)
          Handle the UIEditor related IdeAction.
static void mouseAddingNode(oracle.jdevimpl.uieditor.uicanvas.ModelNode source, oracle.jdevimpl.uieditor.uicanvas.ModelNode target, java.awt.Point location, java.awt.Dimension size)
           
static void mouseMoveNode(boolean treatContainerAsComponent, oracle.jdevimpl.uieditor.uicanvas.ModelNode source, oracle.jdevimpl.uieditor.uicanvas.ModelNode target, java.awt.Point location)
          Update the status message during a mouse move.
 void mouseResizeNode(oracle.jdevimpl.uieditor.uicanvas.ModelNode source, java.awt.Point location, java.awt.Dimension size)
           
 void moveNodes(UIEditor editor, oracle.jdevimpl.uieditor.uicanvas.ModelNode[] sources, oracle.jdevimpl.uieditor.uicanvas.ModelNode target, java.awt.Point[] locations, java.awt.Point mouseOffset)
          Move a group of nodes to specific relative locations in a destination container
 void resizeNode(UIEditor editor, oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
          Resize a given node.
 boolean update(IdeAction action, Context context)
          Update the enabled state of the given action if it is recognized by this Controller.
 
Methods inherited from class oracle.ide.addin.BaseController
checkCommands, checkToolbarCommands, checkToolbarCommands, getView, supervisor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UIEditorController getInstance()
Singleton accessor.


handleEvent

public boolean handleEvent(IdeAction action,
                           Context context)
Handle the UIEditor related IdeAction. The id of the incoming action is compared to see if it matches any of the actions supported by this Controller. If found to be a supported action, an instance of the appropriate Command implementation is constructed and invoked within the CommandProcessor thereby including the change in the undo queue.

Specified by:
handleEvent in interface Controller
Overrides:
handleEvent in class BaseController
Parameters:
action - An IdeAction describing the user action.
context - Representation of the affected object, project, workspace.
Returns:
true if the controller handles the specified command.
See Also:
CommandProcessor, Command, oracle.jdeveloper.uieditor.UIEditor

update

public boolean update(IdeAction action,
                      Context context)
Update the enabled state of the given action if it is recognized by this Controller.

Specified by:
update in interface Controller
Overrides:
update in class BaseController
Parameters:
action - The IdeAction describing the user action.
context - Representation of the affected object, project, workspace.
Returns:
true if the controller handles the specified command.
See Also:
IdeAction, Context

addNode

public void addNode(UIEditor editor,
                    java.lang.String type,
                    oracle.jdeveloper.cmt.CmtModelNode target,
                    oracle.jdeveloper.cmt.CmtModelNode aheadOf)
Given a class name, add a new component to the models at no specific location.


moveNodes

public void moveNodes(UIEditor editor,
                      oracle.jdevimpl.uieditor.uicanvas.ModelNode[] sources,
                      oracle.jdevimpl.uieditor.uicanvas.ModelNode target,
                      java.awt.Point[] locations,
                      java.awt.Point mouseOffset)
Move a group of nodes to specific relative locations in a destination container


addNode

public void addNode(UIEditor editor,
                    java.lang.String type,
                    oracle.jdeveloper.cmt.CmtModelNode target,
                    java.awt.Point location,
                    java.awt.Dimension size)

resizeNode

public void resizeNode(UIEditor editor,
                       oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
Resize a given node.


mouseAddingNode

public static void mouseAddingNode(oracle.jdevimpl.uieditor.uicanvas.ModelNode source,
                                   oracle.jdevimpl.uieditor.uicanvas.ModelNode target,
                                   java.awt.Point location,
                                   java.awt.Dimension size)

mouseMoveNode

public static void mouseMoveNode(boolean treatContainerAsComponent,
                                 oracle.jdevimpl.uieditor.uicanvas.ModelNode source,
                                 oracle.jdevimpl.uieditor.uicanvas.ModelNode target,
                                 java.awt.Point location)
Update the status message during a mouse move.


mouseResizeNode

public void mouseResizeNode(oracle.jdevimpl.uieditor.uicanvas.ModelNode source,
                            java.awt.Point location,
                            java.awt.Dimension size)

generateDefaultEvent

public void generateDefaultEvent(UIEditor editor)

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.