public class HttpRequestHeaderPanelSyntaxHighlightTextView extends HttpPanelSyntaxHighlightTextView implements SelectableContentHttpMessageContainer
HttpPanelSyntaxHighlightTextView.CustomPopupMenu
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
DEFAULT_MESSAGE_CONTAINER_NAME
Constructor and Description |
---|
HttpRequestHeaderPanelSyntaxHighlightTextView(RequestHeaderStringHttpPanelViewModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addFocusListener(MessageLocationProducerFocusListener focusListener)
Adds the focus listener, starting to be notified of changes in the focus.
|
MessageLocationHighlightsManager |
create()
Creates a
MessageLocationHighlightsManager responsible to manage the highlights of
the message locations produced. |
protected HttpPanelSyntaxHighlightTextArea |
createHttpPanelTextArea() |
Component |
getComponent()
Returns the GUI component of the message container.
|
protected org.zaproxy.zap.extension.httppanel.view.syntaxhighlight.components.split.request.HttpRequestHeaderPanelSyntaxHighlightTextView.HttpRequestHeaderPanelSyntaxHighlightTextArea |
getHttpPanelTextArea() |
HttpMessage |
getMessage()
Returns the contained message.
|
Class<HttpMessage> |
getMessageClass()
Returns the
Class of the container's message, for use as runtime type token. |
Class<? extends MessageLocation> |
getMessageLocationClass()
The type of
MessageLocation that it can produce. |
String |
getName()
Returns the name of the message container.
|
MessageLocation |
getSelection()
Obtains the current selected location.
|
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 . |
boolean |
isEmpty()
Tells whether or not the message container is empty, that is, doesn't contain any message.
|
void |
removeFocusListener(MessageLocationProducerFocusListener focusListener)
Removes the focus listener.
|
void |
removeHighlight(MessageLocation location,
MessageLocationHighlight highlightReference)
Removes a previous highlight.
|
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
|
dataChanged, getCaptionName, getModel, getPane, getPosition, getTargetViewName, hasChanged, highlight, isEditable, isEnabled, loadConfiguration, save, saveConfiguration, search, setEditable, setParentConfigurationKey, setSelected
public static final String NAME
public HttpRequestHeaderPanelSyntaxHighlightTextView(RequestHeaderStringHttpPanelViewModel model)
protected HttpPanelSyntaxHighlightTextArea createHttpPanelTextArea()
createHttpPanelTextArea
in class HttpPanelSyntaxHighlightTextView
protected org.zaproxy.zap.extension.httppanel.view.syntaxhighlight.components.split.request.HttpRequestHeaderPanelSyntaxHighlightTextView.HttpRequestHeaderPanelSyntaxHighlightTextArea getHttpPanelTextArea()
getHttpPanelTextArea
in class HttpPanelSyntaxHighlightTextView
public String getName()
MessageContainer
The name should be unique among other containers since it will be used to uniquely identify them.
getName
in interface HttpPanelView
getName
in interface MessageContainer<HttpMessage>
getName
in class HttpPanelSyntaxHighlightTextView
null
.public Class<HttpMessage> getMessageClass()
MessageContainer
Class
of the container's message, for use as runtime type token.getMessageClass
in interface MessageContainer<HttpMessage>
Class
of the container's message.public Class<? extends MessageLocation> getMessageLocationClass()
MessageLocationProducer
MessageLocation
that it can produce.getMessageLocationClass
in interface MessageLocationProducer
public MessageLocation getSelection()
MessageLocationProducer
getSelection
in interface MessageLocationProducer
public MessageLocationHighlightsManager create()
MessageLocationProducer
MessageLocationHighlightsManager
responsible to manage the highlights of
the message locations produced.create
in interface MessageLocationProducer
MessageLocationHighlightsManager
public 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 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 void addFocusListener(MessageLocationProducerFocusListener focusListener)
MessageLocationProducer
addFocusListener
in interface MessageLocationProducer
focusListener
- the focus listener that will be removedpublic void removeFocusListener(MessageLocationProducerFocusListener focusListener)
MessageLocationProducer
removeFocusListener
in interface MessageLocationProducer
focusListener
- the focus listener that will be removedpublic HttpMessage getMessage()
SingleMessageContainer
null
if no message is present or an error
occurred while getting the message (for example, failed to read a persisted message).getMessage
in interface SingleMessageContainer<HttpMessage>
null
if not present or an error occurred while
getting the message.public Component getComponent()
MessageContainer
Actual type of the component depends on the implementation, example component types:
JList
, JTable
, JTextArea
, ...
getComponent
in interface MessageContainer<HttpMessage>
null
.public boolean isEmpty()
MessageContainer
isEmpty
in interface MessageContainer<HttpMessage>
true
if the container is empty, false
otherwise.