|
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 Subview
getController
in class AbstractView
public java.awt.Component getGUI()
getGUI
in interface Subview
public java.awt.Component getDefaultFocusComponent()
Editor
getDefaultFocusComponent
in interface Editor
getDefaultFocusComponent
in class AbstractEditor
public javax.swing.Icon getTabIcon()
getTabIcon
in interface Editor
getTabIcon
in class AbstractEditor
oracle.ide.EditorFrame
public void setContext(Context context)
setContext
in interface Editor
setContext
in class AbstractEditor
context
- The representation of the JavaSourceNode node to be edited.Context
public HelpInfo getHelpInfo()
getHelpInfo
in interface Helpable
getHelpInfo
in class AbstractView
public Toolbar getToolbar()
View
getToolbar
in interface View
getToolbar
in class AbstractView
public Element[] getSelection()
View
getSelection
in interface View
getSelection
in class AbstractView
public void open()
open
in interface Editor
setContext(oracle.ide.addin.Context)
,
JavaSourceNode
public void activate()
activate
in interface View
activate
in class AbstractView
oracle.ide.EditorFrame
public void deactivate()
deactivate
in interface View
deactivate
in class AbstractView
activate()
public void addViewSelectionListener(ViewSelectionListener l)
View
addViewSelectionListener
in interface View
addViewSelectionListener
in class AbstractView
l
- the ViewSelectionListener to add.public void sync()
public void update(java.lang.Object observed, UpdateMessage msg)
update
in interface Observer
observed
- The JavaSourceNode being observed.msg
- what has changed.UpdateMessage
public 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.CmtParseException
public 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 Subview
close
in class AbstractEditor
public 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 AbstractEditor
public void defaultCreate(PaletteEvent e)
ADAPaletteListener
defaultCreate
in interface ADAPaletteListener
e
- 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.