public interface ViewDelegate
Modifier and Type | Method and Description |
---|---|
void |
addContextPanelFactory(ContextPanelFactory contextPanelFactory)
Adds the given context panel factory to the view delegate.
|
void |
displayMessage(Message message)
Displays the given
message in the main message panels (Request/Response). |
KeyStroke |
getDefaultDeleteKeyStroke()
Gets the default
KeyStroke used to delete items (e.g. |
MainFrame |
getMainFrame() |
default KeyStroke |
getMenuShortcutKeyStroke(int keyCode,
int modifiers,
boolean onKeyRelease)
Convenience method that returns a key stroke with the menu shortcut key mask already applied
along with the given values.
|
OutputPanel |
getOutputPanel() |
MainPopupMenu |
getPopupMenu() |
HttpPanelRequest |
getRequestPanel() |
HttpPanelResponse |
getResponsePanel() |
SessionDialog |
getSessionDialog() |
SiteMapPanel |
getSiteTreePanel() |
WaitMessageDialog |
getWaitMessageDialog(String msg) |
void |
removeContextPanelFactory(ContextPanelFactory contextPanelFactory)
Removes the given context panel factory from the view delegate, and any previously created
panels for the contexts.
|
int |
showConfirmDialog(String msg) |
void |
showMessageDialog(String msg) |
void |
showWarningDialog(String msg) |
int |
showYesNoCancelDialog(String msg) |
MainFrame getMainFrame()
SiteMapPanel getSiteTreePanel()
OutputPanel getOutputPanel()
SessionDialog getSessionDialog()
int showConfirmDialog(String msg)
int showYesNoCancelDialog(String msg)
void showWarningDialog(String msg)
void showMessageDialog(String msg)
WaitMessageDialog getWaitMessageDialog(String msg)
MainPopupMenu getPopupMenu()
HttpPanelRequest getRequestPanel()
HttpPanelResponse getResponsePanel()
void addContextPanelFactory(ContextPanelFactory contextPanelFactory)
The factory will be called whenever a panel is required for a context and notified when a context (or contexts) are no longer needed.
contextPanelFactory
- the context panel factory that should be addedIllegalArgumentException
- if the context panel factory is null
.removeContextPanelFactory(ContextPanelFactory)
void removeContextPanelFactory(ContextPanelFactory contextPanelFactory)
contextPanelFactory
- the context panel factory that should be removedIllegalArgumentException
- if the context panel factory is null
.addContextPanelFactory(ContextPanelFactory)
void displayMessage(Message message)
message
in the main message panels (Request/Response).
If the given message
is null
the panels are cleared.
message
- the message to displaygetRequestPanel()
,
getResponsePanel()
KeyStroke getDefaultDeleteKeyStroke()
KeyStroke
used to delete items (e.g. HistoryReference
,
Alert
) show in the view (e.g. History tab, Alerts tree).KeyStroke
to delete items.default KeyStroke getMenuShortcutKeyStroke(int keyCode, int modifiers, boolean onKeyRelease)
keyCode
- the keyboard key.modifiers
- the key modifiers.onKeyRelease
- true
if on key release, false
otherwise.KeyStroke.getKeyStroke(int, int, boolean)