public class ViewProxy extends View
ViewProxy class provides a weak
or soft proxy to a given view. This can be useful
where a reference to a view is needed but it shouldn't interfere with
finalization or garbage collection.EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addViewListener(ViewListener l) |
void |
addViewSelectionListener(ViewSelectionListener l) |
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. |
java.awt.Component |
getGUI() |
HelpInfo |
getHelpInfo() |
protected Element[] |
getSelectionFromUI()
This method retrieve's the selection in this View directly from the UI.
|
java.lang.String |
getTabName() |
Toolbar |
getToolbar()
Get the toolbar associated with this view.
|
View |
getViewWithoutDecoration()
Returns the View without any decorators.
|
boolean |
isVisible() |
void |
loadLayout(PropertyAccess p) |
protected java.lang.String |
newId()
Generates a unique view ID.
|
static ViewProxy |
newSoftProxy(View delegate) |
static ViewProxy |
newWeakProxy(View delegate) |
void |
removeViewListener(ViewListener l) |
void |
removeViewSelectionListener(ViewSelectionListener l) |
void |
saveLayout(PropertyAccess p) |
protected void |
setOwner(View owner) |
void |
setToolbarVisible(boolean visible) |
void |
show()
Shows the view if hidden.
|
java.lang.String |
toString() |
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. |
addViewStateListener, fireViewCollapsed, fireViewExpanded, fireViewSelectionChanged, getContext, getId, getSelection, loadManifestToolbar, loadManifestToolbar, owner, removeViewStateListener, scheduleUpdateSelection, setId, updateSelection, updateSelectionImpl, updateToolbarActions, updateVisibleActionspublic java.awt.Component getGUI()
public void addViewListener(ViewListener l)
addViewListener in class Viewpublic void addViewSelectionListener(ViewSelectionListener l)
addViewSelectionListener in class Viewpublic void deactivate()
Viewdeactivate in class Viewpublic Context getContext(java.util.EventObject event)
getContext in class Viewevent - event associated with the context.public ContextMenu getContextMenu()
getContextMenu in class ViewContextMenu, if any.public Controller getController()
ControllerProviderController associated with this view.getController in interface ControllerProvidergetController in class Viewpublic HelpInfo getHelpInfo()
getHelpInfo in interface HelpablegetHelpInfo in class Viewprotected Element[] getSelectionFromUI()
ViewgetSelectionFromUI in class Viewpublic java.lang.String getTabName()
getTabName in class Viewpublic Toolbar getToolbar()
ViewgetToolbar in class Viewpublic View getViewWithoutDecoration()
ViewgetViewWithoutDecoration in class Viewpublic void loadLayout(PropertyAccess p)
loadLayout in class Viewprotected java.lang.String newId()
Viewpublic void removeViewListener(ViewListener l)
removeViewListener in class Viewpublic void removeViewSelectionListener(ViewSelectionListener l)
removeViewSelectionListener in class Viewpublic void saveLayout(PropertyAccess p)
saveLayout in class Viewpublic void setToolbarVisible(boolean visible)
setToolbarVisible in class Viewpublic void show()
Viewpublic void updateTitle(java.lang.Object obj)
ViewupdateTitle in class Viewobj - the specified object.public void updateVisibleActions(UpdateMessage updateMessage)
ViewView 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 Views.updateVisibleActions in class ViewupdateMessage - 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.