public class SelectMessageLocationsPanel extends HttpPanel implements MessageLocationProducer, MessageLocationHighlighter
HttpPanel
that allows to select and highlight locations in the displayed message.HttpPanel
,
MessageLocationProducer
,
MessageLocationHighlighter
,
Serialized FormHttpPanel.OptionsLocation
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
SelectMessageLocationsPanel() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(HttpPanelComponentInterface component,
org.apache.commons.configuration.FileConfiguration fileConfiguration) |
void |
addDefaultViewSelector(String componentName,
HttpPanelDefaultViewSelector defaultViewSelector,
Object options) |
void |
addFocusListener(MessageLocationProducerFocusListener fl)
Adds the focus listener, starting to be notified of changes in the focus.
|
void |
addView(String componentName,
HttpPanelView view,
Object options,
org.apache.commons.configuration.FileConfiguration fileConfiguration) |
MessageLocationHighlightsManager |
create()
Creates a
MessageLocationHighlightsManager responsible to manage the highlights of
the message locations produced. |
Class<? extends MessageLocation> |
getMessageLocationClass()
The type of
MessageLocation that it can produce. |
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 . |
protected void |
initComponents() |
protected void |
initSpecial() |
void |
removeDefaultViewSelector(String componentName,
String defaultViewSelectorName,
Object options) |
void |
removeFocusListener(MessageLocationProducerFocusListener fl)
Removes the focus listener.
|
void |
removeHighlight(MessageLocation location,
MessageLocationHighlight highlightReference)
Removes a previous highlight.
|
void |
removeView(String componentName,
String viewName,
Object options) |
void |
reset() |
boolean |
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
|
addDisplayedMessageChangedListener, addMessagePanelEventListener, addOptions, addOptionsSeparator, bodySearch, clearView, clearView, fireMessageViewChangedEvent, getCurrentComponent, getEnabledComponents, getMessage, headerSearch, highlightBody, highlightHeader, isEditable, isEnableViewSelect, loadConfig, removeComponent, removeDisplayedMessageChangedListener, removeMessagePanelEventListener, saveConfig, saveData, setEditable, setEnableViewSelect, setMessage, setMessage, updateContent
getDefaultAccelerator, getIcon, getMnemonic, getTabIndex, isHideable, isLocked, isPinned, isShowByDefault, isTabVisible, setDefaultAccelerator, setHideable, setIcon, setLocked, setMnemonic, setParent, setPinned, setShowByDefault, setTabFocus, setTabIndex, tabSelected
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public void addFocusListener(MessageLocationProducerFocusListener fl)
MessageLocationProducer
addFocusListener
in interface MessageLocationProducer
fl
- the focus listener that will be removedpublic void removeFocusListener(MessageLocationProducerFocusListener fl)
MessageLocationProducer
removeFocusListener
in interface MessageLocationProducer
fl
- the focus listener that will be removedpublic void addComponent(HttpPanelComponentInterface component, org.apache.commons.configuration.FileConfiguration fileConfiguration)
addComponent
in class HttpPanel
public void addView(String componentName, HttpPanelView view, Object options, org.apache.commons.configuration.FileConfiguration fileConfiguration)
public void removeView(String componentName, String viewName, Object options)
removeView
in class HttpPanel
public void addDefaultViewSelector(String componentName, HttpPanelDefaultViewSelector defaultViewSelector, Object options)
addDefaultViewSelector
in class HttpPanel
public void removeDefaultViewSelector(String componentName, String defaultViewSelectorName, Object options)
removeDefaultViewSelector
in class HttpPanel
protected void initComponents()
initComponents
in class HttpPanel
protected void initSpecial()
initSpecial
in class HttpPanel
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 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 boolean setSelectedView(String viewName)
public void reset()