public class HttpPanelComponentViewsManager extends Object implements ItemListener, MessageLocationHighlighter
Constructor and Description |
---|
HttpPanelComponentViewsManager(HttpPanel owner,
String configurationKey) |
HttpPanelComponentViewsManager(HttpPanel owner,
String configurationKey,
String label) |
HttpPanelComponentViewsManager(String configurationKey) |
HttpPanelComponentViewsManager(String configurationKey,
String label) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultViewSelector(HttpPanelDefaultViewSelector defaultViewSelector) |
void |
addView(HttpPanelView view) |
void |
addView(HttpPanelView view,
org.apache.commons.configuration.FileConfiguration fileConfiguration) |
void |
clearView() |
void |
clearView(boolean enableViewSelect) |
JComponent |
getSelectableViewsComponent() |
JPanel |
getViewsPanel() |
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 |
highlight(SearchMatch sm) |
void |
itemStateChanged(ItemEvent e) |
void |
loadConfig(org.apache.commons.configuration.FileConfiguration fileConfiguration) |
void |
removeDefaultViewSelector(String defaultViewSelectorName) |
void |
removeHighlight(MessageLocation location,
MessageLocationHighlight highlightReference)
Removes a previous highlight.
|
void |
removeView(String viewName) |
void |
save() |
void |
saveConfig(org.apache.commons.configuration.FileConfiguration fileConfiguration) |
void |
search(Pattern p,
List<SearchMatch> matches) |
void |
setConfigurationKey(String parentKey) |
void |
setEditable(boolean editable) |
void |
setEnableViewSelect(boolean enableViewSelect) |
void |
setMessage(Message aMessage) |
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 HttpPanelComponentViewsManager(String configurationKey)
public HttpPanelComponentViewsManager(String configurationKey, String label)
public HttpPanelComponentViewsManager(HttpPanel owner, String configurationKey)
public JComponent getSelectableViewsComponent()
public JPanel getViewsPanel()
public void setSelected(boolean selected)
public void setMessage(Message aMessage)
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void save()
public void addView(HttpPanelView view)
public void addView(HttpPanelView view, org.apache.commons.configuration.FileConfiguration fileConfiguration)
public void removeView(String viewName)
public void clearView()
public void clearView(boolean enableViewSelect)
public void setEnableViewSelect(boolean enableViewSelect)
public void addDefaultViewSelector(HttpPanelDefaultViewSelector defaultViewSelector)
public void removeDefaultViewSelector(String defaultViewSelectorName)
public void setConfigurationKey(String parentKey)
public void loadConfig(org.apache.commons.configuration.FileConfiguration fileConfiguration)
public void saveConfig(org.apache.commons.configuration.FileConfiguration fileConfiguration)
public void setEditable(boolean editable)
public void highlight(SearchMatch sm)
public void search(Pattern p, List<SearchMatch> matches)
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)