|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.addin.AbstractView
oracle.ide.editor.AbstractEditor
oracle.jdevimpl.uieditor.UIEditor
Editor implementation whose visuals depict the GUI declared in a
JavaSourceNode instance. This implementation presents a canvas
upon which individual Component instances are parented in their
specified layout as derived from the class member declarations and the
property set statements found in the jbInit method.
Whenever this Editor is the active View, it will
host additional menus in the View menu of the main menubar. A
context menu is also offered allowing quick access to some actions.
| Nested Class Summary |
| Nested classes inherited from class oracle.ide.editor.AbstractEditor |
AbstractEditor.LayoutData |
| Field Summary | |
static java.lang.String |
MODEL_NAME
|
| Fields inherited from class oracle.ide.editor.AbstractEditor |
_context, _editorFrame, CUSTOM_BORDER |
| Fields inherited from class oracle.ide.addin.AbstractView |
owner, SEPARATOR, viewListeners, viewSelectionListeners |
| Fields inherited from interface oracle.ide.addin.View |
PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP |
| Constructor Summary | |
UIEditor()
Constructor. |
|
| Method Summary | |
void |
activate()
Respond to a user activation of this Editor via such actions as selecting our Tab from an EditorFrame. |
void |
addViewSelectionListener(ViewSelectionListener l)
Add a ViewSelectionListener. |
void |
changeSelection(Element node,
boolean isShift,
boolean isCtrl)
|
void |
changeSelection(oracle.jdevimpl.uieditor.uicanvas.ModelNode target,
java.awt.Point offset,
java.awt.Dimension size)
|
void |
close()
Closes the view |
void |
commit(java.lang.String caption)
|
void |
deactivate()
Respond to a user deactivate of this Editor via such actions as selecting another View. |
void |
defaultCreate(PaletteEvent e)
Notify listeners that an Item has been selected using the ENTER key on the component palette. |
UIEditorCanvas |
getActiveCanvas()
|
oracle.jdeveloper.cmt.CmtComponentModel |
getComponentModel()
|
Controller |
getController()
Get the Controller associated with this View. |
java.awt.Component |
getDefaultFocusComponent()
This method is used to know what component should get the focus by default. |
static LogPage |
getErrorLog()
|
java.awt.Component |
getGUI()
Get the GUI root for this View. |
HelpInfo |
getHelpInfo()
|
java.lang.String |
getModelName()
|
Element[] |
getSelection()
Gets the selection context. |
oracle.jdeveloper.cmt.CmtSubcomponent[] |
getSubcomponents()
Returns an array of CmtSubcomponents belonging to the current Component under design |
javax.swing.Icon |
getTabIcon()
Get the Icon to use when displaying this View as a tab in a JTabbedPane host such as the EditorFrame. |
Toolbar |
getToolbar()
Returns the toolbar associated with this view. |
boolean |
isSelected(Element element)
|
void |
onPreferredLayoutActivate()
Classes that extend AbstractEditor override this method to initialize their preferred layout when that layour becomes the active layout. |
void |
open()
Display the GUI of the JavaSourceNode on the canvas area of this Editor. |
void |
open(oracle.jdeveloper.cmt.CmtComponentModel source)
Open a given component for editing by registering a view reopens are ignored |
void |
setContext(Context context)
Initialize based on the Element described by the incoming Context argument. |
void |
setSelection(Element[] elements)
|
void |
sync()
|
void |
update(java.lang.Object observed,
UpdateMessage msg)
Respond to a change in the JavaSourceNode node being depicted. |
| Methods inherited from class oracle.ide.addin.AbstractView |
addViewListener, fireViewActivated, fireViewClosed, fireViewDeactivated, fireViewSelectionChanged, getId, isVisible, loadToolbar, loadToolbar, removeViewListener, removeViewSelectionListener, setId, setOwner, show, updateTitle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.ide.addin.View |
addViewListener, getId, removeViewListener, removeViewSelectionListener, updateTitle |
| Methods inherited from interface oracle.ide.addin.Subview |
isVisible, show |
| Field Detail |
public static final java.lang.String MODEL_NAME
| Constructor Detail |
public UIEditor()
| Method Detail |
public Controller getController()
getController in interface SubviewgetController in class AbstractViewpublic java.awt.Component getGUI()
getGUI in interface Subviewpublic java.awt.Component getDefaultFocusComponent()
Editor
getDefaultFocusComponent in interface EditorgetDefaultFocusComponent in class AbstractEditorpublic javax.swing.Icon getTabIcon()
getTabIcon in interface EditorgetTabIcon in class AbstractEditororacle.ide.EditorFramepublic void setContext(Context context)
setContext in interface EditorsetContext in class AbstractEditorcontext - The representation of the JavaSourceNode node to be edited.Contextpublic HelpInfo getHelpInfo()
getHelpInfo in interface HelpablegetHelpInfo in class AbstractViewpublic Toolbar getToolbar()
View
getToolbar in interface ViewgetToolbar in class AbstractViewpublic Element[] getSelection()
View
getSelection in interface ViewgetSelection in class AbstractViewpublic void open()
open in interface EditorsetContext(oracle.ide.addin.Context),
JavaSourceNodepublic void activate()
activate in interface Viewactivate in class AbstractVieworacle.ide.EditorFramepublic void deactivate()
deactivate in interface Viewdeactivate in class AbstractViewactivate()public void addViewSelectionListener(ViewSelectionListener l)
View
addViewSelectionListener in interface ViewaddViewSelectionListener in class AbstractViewl - the ViewSelectionListener to add.public void sync()
public void update(java.lang.Object observed,
UpdateMessage msg)
update in interface Observerobserved - The JavaSourceNode being observed.msg - what has changed.UpdateMessagepublic UIEditorCanvas getActiveCanvas()
public static LogPage getErrorLog()
public java.lang.String getModelName()
public oracle.jdeveloper.cmt.CmtComponentModel getComponentModel()
throws oracle.jdeveloper.cmt.CmtParseException
oracle.jdeveloper.cmt.CmtParseExceptionpublic oracle.jdeveloper.cmt.CmtSubcomponent[] getSubcomponents()
public void setSelection(Element[] elements)
public void open(oracle.jdeveloper.cmt.CmtComponentModel source)
public void close()
Subview
close in interface Subviewclose in class AbstractEditorpublic boolean isSelected(Element element)
public void changeSelection(Element node,
boolean isShift,
boolean isCtrl)
public void changeSelection(oracle.jdevimpl.uieditor.uicanvas.ModelNode target,
java.awt.Point offset,
java.awt.Dimension size)
public void commit(java.lang.String caption)
public void onPreferredLayoutActivate()
AbstractEditor
onPreferredLayoutActivate in class AbstractEditorpublic void defaultCreate(PaletteEvent e)
ADAPaletteListener
defaultCreate in interface ADAPaletteListenere - Associated PaletteEvent (Palette Object)
|
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.