Class ConsoleOutputPane

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.Observer, javax.accessibility.Accessible

    public class ConsoleOutputPane
    extends javax.swing.JPanel
    implements java.util.Observer
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JPanel

        javax.swing.JPanel.AccessibleJPanel
      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.JButton apply  
      private javax.swing.JCheckBox autorefresh  
      private boolean canChange  
      private javax.swing.JCheckBox caseSensitive  
      private javax.swing.JButton copyPlain  
      private javax.swing.JButton copyRich  
      (package private) java.awt.event.ActionListener defaultActionSingleton  
      private java.util.concurrent.atomic.AtomicBoolean done
      when various threads update (and it can be)underlying jeditorpane simultaneously, then it can lead to unpredictable issues synchronization is done in invoke later
      private javax.swing.JCheckBox highLight  
      private javax.swing.JPopupMenu insertChars  
      private javax.swing.JEditorPane jEditorPane1  
      private javax.swing.JPanel jPanel2  
      private javax.swing.JScrollPane jpanel2scrollpane  
      private javax.swing.JScrollPane jScrollPane1  
      private int lastPosition  
      private java.lang.Object lastSearchTag  
      private static Logger LOG  
      private javax.swing.JCheckBox mark  
      private javax.swing.JRadioButton match  
      private ConsoleOutputPaneModel model  
      private javax.swing.JButton next  
      private javax.swing.JRadioButton notMatch  
      private javax.swing.JButton previous  
      private javax.swing.JButton refresh  
      private javax.swing.JTextField regExFilter  
      private javax.swing.JCheckBox regExLabel  
      private javax.swing.JCheckBox revertSort  
      private javax.swing.JTextField search  
      private javax.swing.text.DefaultHighlighter.DefaultHighlightPainter searchHighlight  
      private javax.swing.JLabel searchLabel  
      private javax.swing.JCheckBox showApp  
      private javax.swing.JCheckBox showCode  
      private javax.swing.JCheckBox showDate  
      private javax.swing.JCheckBox showDebug  
      private javax.swing.JCheckBox showErr  
      private javax.swing.JCheckBox showHeaders  
      private javax.swing.JButton showHide  
      private javax.swing.JCheckBox showInfo  
      private javax.swing.JCheckBox showItw  
      private javax.swing.JCheckBox showLevel  
      private javax.swing.JCheckBox showMessage  
      private javax.swing.JCheckBox showOrigin  
      private javax.swing.JCheckBox showOut  
      private javax.swing.JCheckBox showThreadHash  
      private javax.swing.JCheckBox showThreadName  
      private javax.swing.JCheckBox showUser  
      private javax.swing.JComboBox<java.lang.String> sortBy  
      private javax.swing.JLabel sortByLabel  
      private javax.swing.JCheckBox sortCopyAll  
      private javax.swing.JLabel statistics  
      private javax.swing.JCheckBox wordWrap  
      • Fields inherited from class javax.swing.JComponent

        listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • Fields inherited from class java.awt.Component

        accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void copyPlainActionPerformed​(java.awt.event.ActionEvent evt)  
      private void copyRichActionPerformed​(java.awt.event.ActionEvent evt)  
      private java.awt.event.ActionListener createDefaultAction()  
      private void fillClipBoard​(boolean mark, boolean forceSort)  
      private java.awt.event.ActionListener getDefaultActionSingleton()  
      private void initComponents()  
      private void markActionPerformed​(java.awt.event.ActionEvent evt)  
      private void nextActionPerformed​(java.awt.event.ActionEvent evt)  
      private void previousActionPerformed​(java.awt.event.ActionEvent evt)  
      private void refreshAction()  
      private void refreshPane()  
      private void refreshPaneBody​(boolean reset)  
      private void setHeadersCheckBoxesEnabled​(boolean enable)  
      private void setMessagesCheckBoxesEnabled​(boolean enable)  
      private void showHideActionPerformed​(java.awt.event.ActionEvent evt)  
      void update​(java.util.Observable o, java.lang.Object arg)  
      private void updateModel()  
      private void updatePane​(boolean reset)  
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • Methods inherited from class javax.swing.JComponent

        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
      • Methods inherited from class java.awt.Container

        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
      • Methods inherited from class java.awt.Component

        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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • LOG

        private static final Logger LOG
      • canChange

        private boolean canChange
      • lastPosition

        private int lastPosition
      • searchHighlight

        private final javax.swing.text.DefaultHighlighter.DefaultHighlightPainter searchHighlight
      • lastSearchTag

        private java.lang.Object lastSearchTag
      • defaultActionSingleton

        final java.awt.event.ActionListener defaultActionSingleton
      • done

        private final java.util.concurrent.atomic.AtomicBoolean done
        when various threads update (and it can be)underlying jeditorpane simultaneously, then it can lead to unpredictable issues synchronization is done in invoke later
      • apply

        private final javax.swing.JButton apply
      • autorefresh

        private final javax.swing.JCheckBox autorefresh
      • caseSensitive

        private final javax.swing.JCheckBox caseSensitive
      • copyPlain

        private final javax.swing.JButton copyPlain
      • copyRich

        private final javax.swing.JButton copyRich
      • highLight

        private final javax.swing.JCheckBox highLight
      • jEditorPane1

        private final javax.swing.JEditorPane jEditorPane1
      • jpanel2scrollpane

        private final javax.swing.JScrollPane jpanel2scrollpane
      • jPanel2

        private final javax.swing.JPanel jPanel2
      • jScrollPane1

        private final javax.swing.JScrollPane jScrollPane1
      • mark

        private final javax.swing.JCheckBox mark
      • match

        private final javax.swing.JRadioButton match
      • next

        private final javax.swing.JButton next
      • notMatch

        private final javax.swing.JRadioButton notMatch
      • previous

        private final javax.swing.JButton previous
      • refresh

        private final javax.swing.JButton refresh
      • regExFilter

        private final javax.swing.JTextField regExFilter
      • regExLabel

        private final javax.swing.JCheckBox regExLabel
      • revertSort

        private final javax.swing.JCheckBox revertSort
      • search

        private final javax.swing.JTextField search
      • searchLabel

        private final javax.swing.JLabel searchLabel
      • showCode

        private final javax.swing.JCheckBox showCode
      • showDate

        private final javax.swing.JCheckBox showDate
      • showDebug

        private final javax.swing.JCheckBox showDebug
      • showErr

        private final javax.swing.JCheckBox showErr
      • showHeaders

        private final javax.swing.JCheckBox showHeaders
      • showHide

        private final javax.swing.JButton showHide
      • showInfo

        private final javax.swing.JCheckBox showInfo
      • showItw

        private final javax.swing.JCheckBox showItw
      • showApp

        private final javax.swing.JCheckBox showApp
      • showLevel

        private final javax.swing.JCheckBox showLevel
      • showMessage

        private final javax.swing.JCheckBox showMessage
      • showOrigin

        private final javax.swing.JCheckBox showOrigin
      • showOut

        private final javax.swing.JCheckBox showOut
      • showThreadHash

        private final javax.swing.JCheckBox showThreadHash
      • showThreadName

        private final javax.swing.JCheckBox showThreadName
      • showUser

        private final javax.swing.JCheckBox showUser
      • sortCopyAll

        private final javax.swing.JCheckBox sortCopyAll
      • sortBy

        private final javax.swing.JComboBox<java.lang.String> sortBy
      • sortByLabel

        private final javax.swing.JLabel sortByLabel
      • statistics

        private final javax.swing.JLabel statistics
      • wordWrap

        private final javax.swing.JCheckBox wordWrap
      • insertChars

        private final javax.swing.JPopupMenu insertChars
    • Method Detail

      • update

        public void update​(java.util.Observable o,
                           java.lang.Object arg)
        Specified by:
        update in interface java.util.Observer
      • createDefaultAction

        private final java.awt.event.ActionListener createDefaultAction()
      • getDefaultActionSingleton

        private final java.awt.event.ActionListener getDefaultActionSingleton()
      • refreshPane

        private final void refreshPane()
      • updatePane

        private final void updatePane​(boolean reset)
      • refreshPaneBody

        private final void refreshPaneBody​(boolean reset)
                                    throws javax.swing.text.BadLocationException,
                                           java.io.IOException
        Throws:
        javax.swing.text.BadLocationException
        java.io.IOException
      • initComponents

        private final void initComponents()
      • setHeadersCheckBoxesEnabled

        private final void setHeadersCheckBoxesEnabled​(boolean enable)
      • setMessagesCheckBoxesEnabled

        private final void setMessagesCheckBoxesEnabled​(boolean enable)
      • refreshAction

        private final void refreshAction()
      • markActionPerformed

        private final void markActionPerformed​(java.awt.event.ActionEvent evt)
      • previousActionPerformed

        private final void previousActionPerformed​(java.awt.event.ActionEvent evt)
      • nextActionPerformed

        private final void nextActionPerformed​(java.awt.event.ActionEvent evt)
      • showHideActionPerformed

        private final void showHideActionPerformed​(java.awt.event.ActionEvent evt)
      • copyPlainActionPerformed

        private final void copyPlainActionPerformed​(java.awt.event.ActionEvent evt)
      • copyRichActionPerformed

        private final void copyRichActionPerformed​(java.awt.event.ActionEvent evt)
      • fillClipBoard

        private final void fillClipBoard​(boolean mark,
                                         boolean forceSort)
      • updateModel

        private final void updateModel()