|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.addin.BaseController
oracle.jdevimpl.uieditor.UIEditorController
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.
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 |
public static UIEditorController getInstance()
public boolean handleEvent(IdeAction action, Context context)
handleEvent
in interface Controller
handleEvent
in class BaseController
action
- An IdeAction describing the user action.context
- Representation of the affected object, project, workspace.
CommandProcessor
,
Command
,
oracle.jdeveloper.uieditor.UIEditor
public boolean update(IdeAction action, Context context)
update
in interface Controller
update
in class BaseController
action
- The IdeAction describing the user action.context
- Representation of the affected object, project, workspace.
IdeAction
,
Context
public void addNode(UIEditor editor, java.lang.String type, oracle.jdeveloper.cmt.CmtModelNode target, oracle.jdeveloper.cmt.CmtModelNode aheadOf)
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)
public void addNode(UIEditor editor, java.lang.String type, oracle.jdeveloper.cmt.CmtModelNode target, java.awt.Point location, java.awt.Dimension size)
public void resizeNode(UIEditor editor, oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
public static void mouseAddingNode(oracle.jdevimpl.uieditor.uicanvas.ModelNode source, oracle.jdevimpl.uieditor.uicanvas.ModelNode target, java.awt.Point location, java.awt.Dimension size)
public static void mouseMoveNode(boolean treatContainerAsComponent, oracle.jdevimpl.uieditor.uicanvas.ModelNode source, oracle.jdevimpl.uieditor.uicanvas.ModelNode target, java.awt.Point location)
public void mouseResizeNode(oracle.jdevimpl.uieditor.uicanvas.ModelNode source, java.awt.Point location, java.awt.Dimension size)
public void generateDefaultEvent(UIEditor editor)
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.