|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.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 UIEditorCanvaspublic Controller getController()
Controller associated with this view. By default
returns null.
getController in interface ControllerProvidergetController in class Explorerpublic Context getContext(java.util.EventObject e)
getContext in class Viewe - the event to be considered.
View.getContext()public void setContext(Context context)
setContext in class Explorercontext - the Context to depict.editor,
View.getContext(),
getContext(EventObject)public void setOwner(View owner)
setOwner in class Explorerowner - the owning View.oracle.ide.addin.View#owner(),
oracle.ide.addin.ContextMenuListenerprotected Element[] getSelectionFromUI()
getSelectionFromUI in class Viewpublic CmtModel getModel()
getModel in class UIEditorCanvasmodel,
setModel(oracle.jdeveloper.cmt.CmtModel)public void setModel(CmtModel model)
setModel in class UIEditorCanvasmodel - the model to render.model,
getModel()public java.awt.Component getDefaultFocusComponent()
getDefaultFocusComponent in class UIEditorCanvaspublic void viewSelectionChanged(ViewSelectionEvent e)
viewSelectionChanged in interface ViewSelectionListenere - ViewSelectionEvent upon the UIEditorpublic void stateChanged(int state)
stateChanged in class Explorerstate - the new state.editor,
oracle.ide.addin.ViewSelectionListenerpublic void close()
close in class Vieworacle.ide.addin.ViewSelectionListener,
oracle.ide.addin.ContextMenuListenerpublic void menuWillShow(ContextMenu cMenu)
menuWillShow in interface ContextMenuListenercMenu - the ContextMenu popping up.public void menuWillHide(ContextMenu cMenu)
menuWillHide in interface ContextMenuListenercMenu - the ContextMenu popping up.public boolean handleDefaultAction(Context context)
handleDefaultAction in interface ContextMenuListenercontext - 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.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||