Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.jdeveloper.webapp.metadata
Interface ComponentEditorContext


public interface ComponentEditorContext

A component editor context provides more contextual information a component editor might need.

See Also:
ContextualComponentEditor

Method Summary
 void closeEditor()
          Callback method for notifying the component editor environment that the component editor should be closed due to a user action.
 java.util.List<java.lang.Object> getComponentData()
          This returns a read only list of data objects associated with the component.
 oracle.bali.xml.gui.XmlGui getGui()
          This returns the XmlGui that the component editor may be embedded into.
 oracle.bali.xml.metadata.XmlKey getKey()
          This returns the XmlKey of the component element and will never be null.
 org.w3c.dom.Element getNode()
          This returns the Element representing the component and will never be null.
 oracle.bali.xml.model.XmlView getView()
          This returns the XmlView that the component element belongs and will never be null.
 oracle.bali.xml.gui.GuiXmlContext getXmlContext()
          This returns the GuiXmlContext that the component editor works in, and will never be null.
 boolean requestNewComponentData()
          Requests new value of the component data from the component editor context.
 void updateEditorSize(java.awt.Dimension size)
          Callback method for notifying the component editor environment that the size of the component has changed.
 

Method Detail

getXmlContext

oracle.bali.xml.gui.GuiXmlContext getXmlContext()
This returns the GuiXmlContext that the component editor works in, and will never be null.

Returns:

getGui

oracle.bali.xml.gui.XmlGui getGui()
This returns the XmlGui that the component editor may be embedded into. The value may be null. Returned value is usually an instance of the ComponentXmlGui.

See Also:
ComponentXmlGui

getView

oracle.bali.xml.model.XmlView getView()
This returns the XmlView that the component element belongs and will never be null.


getNode

org.w3c.dom.Element getNode()
This returns the Element representing the component and will never be null.


getKey

oracle.bali.xml.metadata.XmlKey getKey()
This returns the XmlKey of the component element and will never be null.


getComponentData

java.util.List<java.lang.Object> getComponentData()
This returns a read only list of data objects associated with the component. The way the data is associated with a component depends on the XmlGui the component editor is embedded into.


requestNewComponentData

boolean requestNewComponentData()
Requests new value of the component data from the component editor context. Once the new component data is available the component editor will be notified by ContextualComponentEditor.componentDataChanged(). Component editor should not make assumption when will the new component data be available. It could be available immidiatly within this method call, or it could be available later, or in some cases component editor can be released before the new component data becomes available.

Returns:
False if the request can not be serviced.

closeEditor

void closeEditor()
Callback method for notifying the component editor environment that the component editor should be closed due to a user action.


updateEditorSize

void updateEditorSize(java.awt.Dimension size)
Callback method for notifying the component editor environment that the size of the component has changed. As are result of this call the component editor environment will try to adjust itself to accomodate new size of the editor.

Parameters:
size -

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.