|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.view.View oracle.ide.explorer.Explorer oracle.jdeveloper.uieditor.UIEditorCanvas oracle.jdeveloper.uieditor.AbstractCanvas
public abstract class AbstractCanvas
AbstractCanvas provides an implementation of UIEditorCanvas based upon Explorer which provides a default implementation for all UIEditorCanvas behavior. Integrators are encouraged to extend this class for any UIEditorCanvas introduced.
UIEditorCanvas
,
Explorer
Field Summary | |
---|---|
protected UIEditor |
editor
UIEditor to which this canvas is associated. |
protected CmtModel |
model
Current model being rendered by this canvas. |
protected static IdeAction |
SERIALIZE_ACTION
IdeAction for serializing a selected GUI control. |
static javax.swing.JMenuItem |
SERIALIZE_ITEM
Item to appear in main menu for serializing a selected GUI control. |
static int |
X_MARGIN
The horizontal inset to use when redering a GUI on a UIEditorCanvas. |
static int |
Y_MARGIN
The vertical inset to use when rendering a GUI on a UIEditorCanvas. |
Fields inherited from class oracle.ide.explorer.Explorer |
---|
CLOSED, defaultNode, defaultProject, defaultWorkspace, HIDDEN, SHOWN |
Fields inherited from class oracle.ide.view.View |
---|
EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP |
Constructor Summary | |
---|---|
protected |
AbstractCanvas()
Constructor. |
Method Summary | |
---|---|
void |
close()
Respond to the associated UIEditor closing. |
Context |
getContext(java.util.EventObject e)
Get the Context relative to the given event. |
Controller |
getController()
Gets the Controller associated with this view. |
java.awt.Component |
getDefaultFocusComponent()
Get the Component that should reciev focus upon activation of this canvas. |
CmtModel |
getModel()
Get the current model being rendered. |
protected Element[] |
getSelectionFromUI()
Get the current selection. |
UIEditor |
getUIEditor()
Get the UIEditor associated with this UIEditorCanvas. |
boolean |
handleDefaultAction(Context context)
Handle the default action of the UIEditor ContextMenu. |
void |
menuWillHide(ContextMenu cMenu)
Respond to the UIEditor ContextMenu popping down. |
void |
menuWillShow(ContextMenu cMenu)
Respond to the UIEditor ContextMenu popping up. |
void |
setContext(Context context)
Set the Context. |
void |
setModel(CmtModel model)
Set the current model to render. |
void |
setOwner(View owner)
Set the owning View. |
void |
stateChanged(int state)
Respond to a change of state between hidden, shown or closed. |
void |
viewSelectionChanged(ViewSelectionEvent e)
Respond to a ViewSelectionEvent in our associated UIEditor by firing our own ViewSelectionEvent reflecting the new selection. |
Methods inherited from class oracle.ide.explorer.Explorer |
---|
getContextMenu, getTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int X_MARGIN
public static final int Y_MARGIN
public static javax.swing.JMenuItem SERIALIZE_ITEM
protected static IdeAction SERIALIZE_ACTION
protected UIEditor editor
protected CmtModel model
Constructor Detail |
---|
protected AbstractCanvas()
Method Detail |
---|
public final UIEditor getUIEditor()
getUIEditor
in class UIEditorCanvas
public Controller getController()
Controller
associated with this view. By default
returns null.
getController
in interface ControllerProvider
getController
in class Explorer
public Context getContext(java.util.EventObject e)
getContext
in class View
e
- the event to be considered.
View.getContext()
public void setContext(Context context)
setContext
in class Explorer
context
- the Context to depict.editor
,
View.getContext()
,
getContext(EventObject)
public void setOwner(View owner)
setOwner
in class Explorer
owner
- the owning View.oracle.ide.addin.View#owner()
,
oracle.ide.addin.ContextMenuListener
protected Element[] getSelectionFromUI()
getSelectionFromUI
in class View
public CmtModel getModel()
getModel
in class UIEditorCanvas
model
,
setModel(oracle.jdeveloper.cmt.CmtModel)
public void setModel(CmtModel model)
setModel
in class UIEditorCanvas
model
- the model to render.model
,
getModel()
public java.awt.Component getDefaultFocusComponent()
getDefaultFocusComponent
in class UIEditorCanvas
public void viewSelectionChanged(ViewSelectionEvent e)
viewSelectionChanged
in interface ViewSelectionListener
e
- ViewSelectionEvent upon the UIEditorpublic void stateChanged(int state)
stateChanged
in class Explorer
state
- the new state.editor
,
oracle.ide.addin.ViewSelectionListener
public void close()
close
in class View
oracle.ide.addin.ViewSelectionListener
,
oracle.ide.addin.ContextMenuListener
public void menuWillShow(ContextMenu cMenu)
menuWillShow
in interface ContextMenuListener
cMenu
- the ContextMenu popping up.public void menuWillHide(ContextMenu cMenu)
menuWillHide
in interface ContextMenuListener
cMenu
- the ContextMenu popping up.public boolean handleDefaultAction(Context context)
handleDefaultAction
in interface ContextMenuListener
context
- the Context upon which to perform the default action.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |