public abstract class EventWrapperViewPanel<T extends java.io.Serializable>
extends javax.swing.JPanel
implements de.huxhorn.sulky.buffers.DisposeOperation, de.huxhorn.sulky.buffers.FlushOperation
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EVENT_SOURCE_PROPERTY |
static java.lang.String |
FILTER_CONDITION_PROPERTY |
static java.lang.String |
PAUSED_PROPERTY |
static java.lang.String |
SCROLLING_TO_BOTTOM_PROPERTY |
static java.lang.String |
SELECTED_EVENT_PROPERTY |
static java.lang.String |
STATE_PROPERTY |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
EventWrapperViewPanel(MainFrame mainFrame,
de.huxhorn.lilith.engine.EventSource<T> eventSource) |
Modifier and Type | Method and Description |
---|---|
void |
addNotify() |
void |
clear() |
protected abstract void |
closeConnection(de.huxhorn.lilith.data.eventsource.SourceIdentifier sourceIdentifier) |
void |
copySelection() |
protected abstract EventWrapperViewTable<T> |
createTable(EventWrapperTableModel<T> tableModel) |
protected abstract EventWrapperTableModel<T> |
createTableModel(de.huxhorn.sulky.buffers.Buffer<de.huxhorn.lilith.data.eventsource.EventWrapper<T>> buffer) |
void |
dispose() |
void |
findNext() |
void |
findNext(int currentRow,
de.huxhorn.sulky.conditions.Condition condition) |
void |
findPrevious() |
void |
findPrevious(int currentRow,
de.huxhorn.sulky.conditions.Condition condition) |
void |
flush() |
void |
focusMessagePane() |
void |
focusTable() |
de.huxhorn.sulky.conditions.Condition |
getBufferCondition() |
de.huxhorn.sulky.conditions.Condition |
getCombinedCondition(de.huxhorn.sulky.conditions.Condition condition)
This method creates a new condition that is a combination of the current buffer condition and the given condition.
|
de.huxhorn.lilith.engine.EventSource<T> |
getEventSource() |
de.huxhorn.sulky.conditions.Condition |
getFilterCondition() |
MainFrame |
getMainFrame() |
de.huxhorn.lilith.data.eventsource.EventWrapper<T> |
getSelectedEvent() |
int |
getSelectedRow() |
protected long |
getSizeOnDisk() |
de.huxhorn.sulky.buffers.Buffer<de.huxhorn.lilith.data.eventsource.EventWrapper<T>> |
getSourceBuffer() |
LoggingViewState |
getState() |
EventWrapperViewTable<T> |
getTable() |
EventWrapperTableModel<T> |
getTableModel() |
protected void |
initMessage(de.huxhorn.lilith.data.eventsource.EventWrapper wrapper) |
boolean |
isDisposed() |
boolean |
isPaused() |
boolean |
isScrollingToBottom() |
boolean |
isShowingFilters() |
void |
removeNotify() |
void |
resetFind() |
protected void |
resetMessage() |
de.huxhorn.sulky.conditions.Condition |
resolveCombinedCondition()
Returns a new combined condition of this view and the current condition of its table if it differs and the table has a condition.
|
ViewContainer<T> |
resolveContainer() |
void |
scrollToEvent()
scrolls to bottom if it is enabled.
|
void |
setConditionNames(java.util.List<java.lang.String> conditionNames) |
void |
setFilterCondition(de.huxhorn.sulky.conditions.Condition condition) |
void |
setPaused(boolean paused) |
void |
setPreviousSearchStrings(java.util.List<java.lang.String> previousSearchStrings) |
void |
setScaleFactor(double scale) |
void |
setScrollingToBottom(boolean scrollingToBottom) |
protected void |
setSelectedEvent(de.huxhorn.lilith.data.eventsource.EventWrapper<T> selectedEvent) |
void |
setSelectedRow(int row) |
void |
setShowingFilters(boolean showingFilters) |
void |
setShowingStatusBar(boolean showingStatusbar) |
void |
setState(LoggingViewState state) |
void |
showUnfilteredEvent()
If the currently selected event is in a filtered tab, the same event is displayed in the
unfiltered view.
|
void |
updateView() |
void |
validate() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, 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, 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 static final java.lang.String STATE_PROPERTY
public static final java.lang.String FILTER_CONDITION_PROPERTY
public static final java.lang.String EVENT_SOURCE_PROPERTY
public static final java.lang.String SCROLLING_TO_BOTTOM_PROPERTY
public static final java.lang.String PAUSED_PROPERTY
public static final java.lang.String SELECTED_EVENT_PROPERTY
public EventWrapperViewTable<T> getTable()
public LoggingViewState getState()
public MainFrame getMainFrame()
public void setState(LoggingViewState state)
public boolean isShowingFilters()
public void setShowingFilters(boolean showingFilters)
public void scrollToEvent()
public void setScaleFactor(double scale)
public void updateView()
public void setShowingStatusBar(boolean showingStatusbar)
public void setPreviousSearchStrings(java.util.List<java.lang.String> previousSearchStrings)
public void setConditionNames(java.util.List<java.lang.String> conditionNames)
public void validate()
validate
in class java.awt.Container
public de.huxhorn.lilith.engine.EventSource<T> getEventSource()
public void setScrollingToBottom(boolean scrollingToBottom)
public boolean isScrollingToBottom()
public boolean isPaused()
public void setPaused(boolean paused)
public ViewContainer<T> resolveContainer()
public void addNotify()
addNotify
in class javax.swing.JComponent
public void removeNotify()
removeNotify
in class javax.swing.JComponent
protected abstract EventWrapperTableModel<T> createTableModel(de.huxhorn.sulky.buffers.Buffer<de.huxhorn.lilith.data.eventsource.EventWrapper<T>> buffer)
protected abstract EventWrapperViewTable<T> createTable(EventWrapperTableModel<T> tableModel)
public void dispose()
dispose
in interface de.huxhorn.sulky.buffers.DisposeOperation
public void flush()
flush
in interface de.huxhorn.sulky.buffers.FlushOperation
public boolean isDisposed()
isDisposed
in interface de.huxhorn.sulky.buffers.DisposeOperation
public void resetFind()
protected void setSelectedEvent(de.huxhorn.lilith.data.eventsource.EventWrapper<T> selectedEvent)
public de.huxhorn.lilith.data.eventsource.EventWrapper<T> getSelectedEvent()
public EventWrapperTableModel<T> getTableModel()
protected void initMessage(de.huxhorn.lilith.data.eventsource.EventWrapper wrapper)
protected void resetMessage()
public void setFilterCondition(de.huxhorn.sulky.conditions.Condition condition)
public de.huxhorn.sulky.conditions.Condition getFilterCondition()
public void clear()
public void findPrevious()
public void findPrevious(int currentRow, de.huxhorn.sulky.conditions.Condition condition)
public void findNext()
public void findNext(int currentRow, de.huxhorn.sulky.conditions.Condition condition)
public void setSelectedRow(int row)
public int getSelectedRow()
protected long getSizeOnDisk()
public de.huxhorn.sulky.buffers.Buffer<de.huxhorn.lilith.data.eventsource.EventWrapper<T>> getSourceBuffer()
public de.huxhorn.sulky.conditions.Condition getBufferCondition()
public void copySelection()
public de.huxhorn.sulky.conditions.Condition getCombinedCondition(de.huxhorn.sulky.conditions.Condition condition)
condition
- the condition to be combined with the current buffer condition.public void showUnfilteredEvent()
public void focusTable()
public void focusMessagePane()
protected abstract void closeConnection(de.huxhorn.lilith.data.eventsource.SourceIdentifier sourceIdentifier)
public de.huxhorn.sulky.conditions.Condition resolveCombinedCondition()