|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
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.view.ViewDecorator
public class ViewDecorator
Base decorator object for View implementations.
Field Summary |
---|
Fields inherited from class oracle.ide.view.View |
---|
EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP |
Constructor Summary | |
---|---|
protected |
ViewDecorator(View decorated)
Creates a ViewDecorator. |
Method Summary | |
---|---|
void |
activate()
|
void |
close()
|
void |
deactivate()
Cleans up after this view stops being the active view. |
Context |
getContext(java.util.EventObject event)
|
ContextMenu |
getContextMenu()
|
Controller |
getController()
Get the Controller associated with this view. |
protected View |
getDecorated()
|
java.awt.Component |
getGUI()
|
HelpInfo |
getHelpInfo()
|
protected Element[] |
getSelectionFromUI()
This method retrieve's the selection in this View directly from the UI. |
Toolbar |
getToolbar()
Get the toolbar associated with this view. |
View |
getViewWithoutDecoration()
Returns the View without any decorators. |
protected boolean |
isDecorated()
|
boolean |
isVisible()
|
void |
loadLayout(PropertyAccess p)
|
protected java.lang.String |
newId()
Generates a unique view ID. |
void |
saveLayout(PropertyAccess p)
|
protected void |
setDecorated(View decorated)
|
protected void |
setOwner(View owner)
|
void |
setToolbarVisible(boolean visible)
|
void |
show()
Shows the view if hidden. |
void |
updateTitle(java.lang.Object obj)
Called when the view needs to update its title based on the specified object. |
void |
updateVisibleActions(UpdateMessage updateMessage)
Called when the IDE or an extension requests that the View updates the enabled state of any actions
that are visible on screen. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ViewDecorator(View decorated)
decorated
- the View to decorateMethod Detail |
---|
protected final View getDecorated()
protected void setDecorated(View decorated)
public View getViewWithoutDecoration()
View
getViewWithoutDecoration
in class View
public void activate()
activate
in class View
public void deactivate()
View
deactivate
in class View
public void close()
close
in class View
public Context getContext(java.util.EventObject event)
getContext
in class View
event
- event associated with the context.
public ContextMenu getContextMenu()
getContextMenu
in class View
ContextMenu
, if any.public Controller getController()
ControllerProvider
Controller
associated with this view.
getController
in interface ControllerProvider
getController
in class View
public java.awt.Component getGUI()
getGUI
in class View
public HelpInfo getHelpInfo()
getHelpInfo
in interface Helpable
getHelpInfo
in class View
protected Element[] getSelectionFromUI()
View
getSelectionFromUI
in class View
public Toolbar getToolbar()
View
getToolbar
in class View
public boolean isVisible()
isVisible
in class View
public void loadLayout(PropertyAccess p)
loadLayout
in class View
protected java.lang.String newId()
View
newId
in class View
public void saveLayout(PropertyAccess p)
saveLayout
in class View
protected void setOwner(View owner)
setOwner
in class View
public void setToolbarVisible(boolean visible)
setToolbarVisible
in class View
public void show()
View
show
in class View
public void updateTitle(java.lang.Object obj)
View
updateTitle
in class View
obj
- the specified object.public void updateVisibleActions(UpdateMessage updateMessage)
View
View
updates the enabled state of any actions
that are visible on screen. Typically this will involve updating actions that are in visible toolbars. If a
View
contains or manages other nested instances of View
, the outer call to
updateVisibleActions
should propagate inward to call the updateVisibleActions
of all
visible, nested View
s.
updateVisibleActions
in class View
updateMessage
- information on what is triggering the update. Implementations may make use of this
information to decide whether or not an update is necessary, since updating the enabled state of a toolbar button
may be a lengthy operation. For example, buttons that control a remote debugger would involve network I/O and
evaluating their updated state could be avoided if the updateMessage indicates that the source of the update is not
relevant to the debugger.protected boolean isDecorated()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |