public class RequestAllComponent extends Object implements HttpPanelComponentInterface, SearchableHttpPanelComponent, MessageLocationHighlighter
Modifier and Type | Field and Description |
---|---|
protected JToggleButton |
buttonShowView |
protected Message |
message |
static String |
NAME |
protected JPanel |
panelMain |
protected JPanel |
panelOptions |
protected HttpPanelComponentViewsManager |
views |
Constructor and Description |
---|
RequestAllComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultViewSelector(HttpPanelDefaultViewSelector defaultViewSelector,
Object options) |
void |
addView(HttpPanelView view,
Object options,
org.apache.commons.configuration.FileConfiguration fileConfiguration) |
void |
clearView() |
void |
clearView(boolean enableViewSelect) |
JToggleButton |
getButton() |
JPanel |
getMainPanel() |
JPanel |
getMoreOptionsPanel() |
String |
getName() |
JPanel |
getOptionsPanel() |
int |
getPosition() |
MessageLocationHighlight |
highlight(MessageLocation location)
Highlights the given
location , with an undefined highlight. |
MessageLocationHighlight |
highlight(MessageLocation location,
MessageLocationHighlight highlight)
Highlights the given
location with the given highlight . |
void |
highlightBody(SearchMatch sm) |
void |
highlightHeader(SearchMatch sm) |
protected void |
initUi() |
protected void |
initViews() |
boolean |
isEnabled(Message aMessage) |
void |
loadConfig(org.apache.commons.configuration.FileConfiguration fileConfiguration) |
void |
removeDefaultViewSelector(String defaultViewSelectorName,
Object options) |
void |
removeHighlight(MessageLocation location,
MessageLocationHighlight highlightReference)
Removes a previous highlight.
|
void |
removeView(String viewName,
Object options) |
void |
save() |
void |
saveConfig(org.apache.commons.configuration.FileConfiguration fileConfiguration) |
void |
searchBody(Pattern p,
List<SearchMatch> matches) |
void |
searchHeader(Pattern p,
List<SearchMatch> matches) |
void |
setEditable(boolean editable) |
void |
setEnableViewSelect(boolean enableViewSelect) |
void |
setMessage(Message aMessage) |
void |
setParentConfigurationKey(String configurationKey) |
void |
setSelected(boolean selected) |
HttpPanelView |
setSelectedView(String viewName) |
boolean |
supports(Class<? extends MessageLocation> classLocation)
If this replacer handles the given type of location, for example, when using a AMF replacer
it would not handle other locations than AMFLocation and a "text" replacer would not handle
AMF locations
|
boolean |
supports(MessageLocation location)
If this replacer handles the given type of location, for example, when using a AMF replacer
it would not handle other locations than AMFLocation and a "text" replacer would not handle
AMF locations
|
public static final String NAME
protected JToggleButton buttonShowView
protected JPanel panelOptions
protected JPanel panelMain
protected Message message
protected HttpPanelComponentViewsManager views
protected void initUi()
public void setParentConfigurationKey(String configurationKey)
setParentConfigurationKey
in interface HttpPanelComponentInterface
public JToggleButton getButton()
getButton
in interface HttpPanelComponentInterface
public JPanel getOptionsPanel()
getOptionsPanel
in interface HttpPanelComponentInterface
public JPanel getMoreOptionsPanel()
getMoreOptionsPanel
in interface HttpPanelComponentInterface
public JPanel getMainPanel()
getMainPanel
in interface HttpPanelComponentInterface
public void setSelected(boolean selected)
setSelected
in interface HttpPanelComponentInterface
public boolean isEnabled(Message aMessage)
isEnabled
in interface HttpPanelComponentInterface
protected void initViews()
public String getName()
getName
in interface HttpPanelComponentInterface
public int getPosition()
getPosition
in interface HttpPanelComponentInterface
public void setMessage(Message aMessage)
setMessage
in interface HttpPanelComponentInterface
public void save()
save
in interface HttpPanelComponentInterface
public void addView(HttpPanelView view, Object options, org.apache.commons.configuration.FileConfiguration fileConfiguration)
addView
in interface HttpPanelComponentInterface
public void removeView(String viewName, Object options)
removeView
in interface HttpPanelComponentInterface
public void clearView()
clearView
in interface HttpPanelComponentInterface
public void clearView(boolean enableViewSelect)
clearView
in interface HttpPanelComponentInterface
public void setEnableViewSelect(boolean enableViewSelect)
setEnableViewSelect
in interface HttpPanelComponentInterface
public void addDefaultViewSelector(HttpPanelDefaultViewSelector defaultViewSelector, Object options)
addDefaultViewSelector
in interface HttpPanelComponentInterface
public void removeDefaultViewSelector(String defaultViewSelectorName, Object options)
removeDefaultViewSelector
in interface HttpPanelComponentInterface
public void loadConfig(org.apache.commons.configuration.FileConfiguration fileConfiguration)
loadConfig
in interface HttpPanelComponentInterface
public void saveConfig(org.apache.commons.configuration.FileConfiguration fileConfiguration)
saveConfig
in interface HttpPanelComponentInterface
public void setEditable(boolean editable)
setEditable
in interface HttpPanelComponentInterface
public void highlightHeader(SearchMatch sm)
highlightHeader
in interface SearchableHttpPanelComponent
public void highlightBody(SearchMatch sm)
highlightBody
in interface SearchableHttpPanelComponent
public void searchHeader(Pattern p, List<SearchMatch> matches)
searchHeader
in interface SearchableHttpPanelComponent
public void searchBody(Pattern p, List<SearchMatch> matches)
searchBody
in interface SearchableHttpPanelComponent
public boolean supports(MessageLocation location)
MessageLocationConsumer
supports
in interface MessageLocationConsumer
location
- the location being checkedtrue
if the location is supported, false
otherwisepublic boolean supports(Class<? extends MessageLocation> classLocation)
MessageLocationConsumer
supports
in interface MessageLocationConsumer
classLocation
- the class of the location being checkedtrue
if the location is supported, false
otherwisepublic MessageLocationHighlight highlight(MessageLocation location)
MessageLocationHighlighter
location
, with an undefined highlight.highlight
in interface MessageLocationHighlighter
location
- the location that will be highlightednull
if it's was not possible to
highlightpublic MessageLocationHighlight highlight(MessageLocation location, MessageLocationHighlight highlight)
MessageLocationHighlighter
location
with the given highlight
.highlight
in interface MessageLocationHighlighter
location
- the location that will be highlightedhighlight
- the highlight applied to the locationnull
if it's was not possible to
highlightpublic void removeHighlight(MessageLocation location, MessageLocationHighlight highlightReference)
MessageLocationHighlighter
removeHighlight
in interface MessageLocationHighlighter
location
- the location of a previous highlighthighlightReference
- a reference to a previous highlightpublic HttpPanelView setSelectedView(String viewName)
setSelectedView
in interface HttpPanelComponentInterface