antLogger.logServer
Class LogViewer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--antLogger.logServer.LogViewer

public class LogViewer
extends JFrame

Copyright (c) 2002
LogViewer
GUI to show messages of the antLogger

Author:
Pascal Mengelt
Version: 1.0 - 25. april 2002

Inner classes inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame

Inner classes inherited from class java.awt.Frame
Frame.AccessibleAWTFrame

Fields inherited from class javax.swing.JFrame
EXIT_ON_CLOSE

Fields inherited from class java.awt.Frame
DEFAULT_CURSOR, CROSSHAIR_CURSOR, TEXT_CURSOR, WAIT_CURSOR, SW_RESIZE_CURSOR, SE_RESIZE_CURSOR, NW_RESIZE_CURSOR, NE_RESIZE_CURSOR, N_RESIZE_CURSOR, S_RESIZE_CURSOR, W_RESIZE_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, MOVE_CURSOR, NORMAL, ICONIFIED

Fields inherited from class java.awt.Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT

Constructor Summary
 (package private) LogViewer(LogServer logServer)
           

Method Summary
 voidaddNewMessage(String[] newMsg)
          set the new messages in a new JTable
if necessary sorts them
 voidclose()
          closes the frame
 StringgetApplication()
           
 String[]getDates()
           
 StringgetMessage()
           
 StringgetModule()
           
 ArrayListgetPriorities()
           
 voidinitGUI()
          initialize the GUI
 voidjBApplyChangesActionPerformed(ActionEvent e)
          action when apply button pushed
 voidjBFilterActionPerformed(ActionEvent e)
          action when filter button pushed
 voidjMICloseActionPerformed(ActionEvent e)
          closes the LogViewer (from the menu)
 voidjMIOpenOldMessagesActionPerformed(ActionEvent e)
          open a file dialog to choose an old message file you want open
 voidjMIRemoveOldMessagesActionPerformed(ActionEvent e)
          open a file dialog to choose an old message file you want remove

Methods inherited from class javax.swing.JFrame
setDefaultCloseOperation, getDefaultCloseOperation, update, setJMenuBar, getJMenuBar, remove, setLayout, getRootPane, getContentPane, setContentPane, getLayeredPane, setLayeredPane, getGlassPane, setGlassPane, getAccessibleContext

Methods inherited from class java.awt.Frame
addNotify, getTitle, setTitle, getIconImage, setIconImage, getMenuBar, setMenuBar, isResizable, setResizable, setState, getState, remove, removeNotify, setCursor, getCursorType, getFrames

Methods inherited from class java.awt.Window
pack, show, hide, dispose, toFront, toBack, getToolkit, getWarningString, getLocale, getInputContext, setCursor, getOwner, getOwnedWindows, addWindowListener, removeWindowListener, getListeners, getFocusOwner, postEvent, isShowing, applyResourceBundle, applyResourceBundle, getGraphicsConfiguration

Methods inherited from class java.awt.Container
getComponentCount, countComponents, getComponent, getComponents, getInsets, insets, add, add, add, add, add, remove, removeAll, getLayout, doLayout, layout, invalidate, validate, setFont, getPreferredSize, preferredSize, getMinimumSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, print, paintComponents, printComponents, addContainerListener, removeContainerListener, deliverEvent, getComponentAt, locate, getComponentAt, findComponentAt, findComponentAt, isAncestorOf, list, list

Methods inherited from class java.awt.Component
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getTreeLock, isValid, isDisplayable, isVisible, isEnabled, setEnabled, enable, enable, disable, isDoubleBuffered, enableInputMethods, setVisible, show, getForeground, setForeground, getBackground, setBackground, getFont, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, setSize, resize, setSize, resize, getBounds, bounds, setBounds, reshape, setBounds, getX, getY, getWidth, getHeight, getBounds, getSize, getLocation, isOpaque, isLightweight, getGraphics, getFontMetrics, getCursor, paintAll, repaint, repaint, repaint, repaint, printAll, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, contains, inside, contains, dispatchEvent, addComponentListener, removeComponentListener, addFocusListener, removeFocusListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getInputMethodRequests, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, gotFocus, lostFocus, isFocusTraversable, requestFocus, transferFocus, nextFocus, hasFocus, add, toString, list, list, list, addPropertyChangeListener, removePropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, setComponentOrientation, getComponentOrientation

Methods inherited from class java.lang.Object
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait

Constructor Detail

LogViewer

LogViewer(LogServer logServer)
Parameters:
logServer - Class to get the messages from
Method Detail

addNewMessage

public void addNewMessage(String[] newMsg)
set the new messages in a new JTable
if necessary sorts them
Parameters:
msg - Array with all messages to display (already filtered)
index - the number of messages

close

public void close()
closes the frame

getApplication

public String getApplication()
Returns: the name of the application (filter)

getDates

public String[] getDates()
Returns: an Array with the start- and the end date (filter)

getMessage

public String getMessage()
Returns: message

getModule

public String getModule()
Returns: name of the module (filter)

getPriorities

public ArrayList getPriorities()
Returns: the priorities in an ArrayList ("ERROR", . .)

initGUI

public void initGUI()
initialize the GUI

jBApplyChangesActionPerformed

public void jBApplyChangesActionPerformed(ActionEvent e)
action when apply button pushed

jBFilterActionPerformed

public void jBFilterActionPerformed(ActionEvent e)
action when filter button pushed

jMICloseActionPerformed

public void jMICloseActionPerformed(ActionEvent e)
closes the LogViewer (from the menu)

jMIOpenOldMessagesActionPerformed

public void jMIOpenOldMessagesActionPerformed(ActionEvent e)
open a file dialog to choose an old message file you want open

jMIRemoveOldMessagesActionPerformed

public void jMIRemoveOldMessagesActionPerformed(ActionEvent e)
open a file dialog to choose an old message file you want remove