public class ExtensionHookView extends Object
The components added through the hook are removed when the extension is unloaded.
Note: This class is not thread-safe, the components should be added only
through the thread that hooks the extension
.
Constructor and Description |
---|
ExtensionHookView() |
Modifier and Type | Method and Description |
---|---|
void |
addContextPanelFactory(ContextPanelFactory contextPanelFactory)
Adds the given
ContextPanelFactory to the view hook, to be later added to the View . |
void |
addMainToolBarComponent(Component component)
Adds the given
Component (usually JButton , JToggleButton , JToolBar.Separator ) to the view hook, to be later added to the main tool bar panel. |
void |
addOptionPanel(AbstractParamPanel panel)
Adds the given
AbstractParamPanel to the view hook, to be later added to the Options dialogue . |
void |
addRequestPanelDisplayedMessageChangedListener(DisplayedMessageChangedListener messageChangedListener)
Adds the given
DisplayedMessageChangedListener to the view hook, to be later added to
the the View s HttpPanelRequest ChangeListeners. |
void |
addResponsePanelDisplayedMessageChangedListener(DisplayedMessageChangedListener messageChangedListener)
Adds the given
DisplayedMessageChangedListener to the view hook, to be later added to
the the View s HttpPanelResponse ChangeListeners. |
void |
addSelectPanel(AbstractPanel panel)
Adds the given
AbstractPanel to the view hook, to be later added to the WorkbenchPanel as a select panel. |
void |
addSessionPanel(AbstractParamPanel panel)
Adds the given
AbstractParamPanel to the view hook, to be later added to the Session Properties dialogue . |
void |
addStatusPanel(AbstractPanel panel)
Adds the given
AbstractPanel to the view hook, to be later added to the WorkbenchPanel as a status panel. |
void |
addWorkPanel(AbstractPanel panel)
Adds the given
AbstractPanel to the view hook, to be later added to the WorkbenchPanel as a work panel. |
public void addWorkPanel(AbstractPanel panel)
AbstractPanel
to the view hook, to be later added to the WorkbenchPanel
as a work
panel.panel
- the panel that will be added to the WorkbenchPanel
.View.getWorkbench()
public void addSelectPanel(AbstractPanel panel)
AbstractPanel
to the view hook, to be later added to the WorkbenchPanel
as a select
panel.panel
- the panel that will be added to the WorkbenchPanel
.View.getWorkbench()
public void addStatusPanel(AbstractPanel panel)
AbstractPanel
to the view hook, to be later added to the WorkbenchPanel
as a status
panel.panel
- the panel that will be added to the WorkbenchPanel
.View.getWorkbench()
public void addSessionPanel(AbstractParamPanel panel)
AbstractParamPanel
to the view hook, to be later added to the Session Properties dialogue
.panel
- the AbstractParamPanel
that will be added to the Options dialogue.View.getSessionDialog()
public void addOptionPanel(AbstractParamPanel panel)
AbstractParamPanel
to the view hook, to be later added to the Options dialogue
.panel
- the AbstractParamPanel
that will be added to the Options dialogue.View.getOptionsDialog(String)
public void addContextPanelFactory(ContextPanelFactory contextPanelFactory)
ContextPanelFactory
to the view hook, to be later added to the View
.contextPanelFactory
- the ContextPanelFactory
that will be added to the View
public void addMainToolBarComponent(Component component)
Component
(usually JButton
, JToggleButton
, JToolBar.Separator
) to the view hook, to be later added to the main tool bar panel.component
- the component
that will be added to the main tool bar panelMainToolbarPanel.addToolBarComponent(Component)
,
MainToolbarPanel.removeToolBarComponent(Component)
public void addRequestPanelDisplayedMessageChangedListener(DisplayedMessageChangedListener messageChangedListener)
DisplayedMessageChangedListener
to the view hook, to be later added to
the the View
s HttpPanelRequest
ChangeListeners.messageChangedListener
- the listener for the request panel.HttpPanel.addDisplayedMessageChangedListener(DisplayedMessageChangedListener)
public void addResponsePanelDisplayedMessageChangedListener(DisplayedMessageChangedListener messageChangedListener)
DisplayedMessageChangedListener
to the view hook, to be later added to
the the View
s HttpPanelResponse
ChangeListeners.messageChangedListener
- the listener for the response panel.HttpPanel.addDisplayedMessageChangedListener(DisplayedMessageChangedListener)