org.salespointframework.desktop.formsheets
Class LogTableForm

java.lang.Object
  extended by org.salespointframework.core.FormSheet
      extended by org.salespointframework.desktop.formsheets.LogTableForm

public class LogTableForm
extends FormSheet

FormSheet displaying the contents of a log file.

The FormSheet will contain a JLogTable containing one line per log entry.

Since:
v2.0
Version:
2.0 27/08/1999
Author:
Steffen Zschaler

Nested Class Summary
 
Nested classes/interfaces inherited from class org.salespointframework.core.FormSheet
FormSheet.FormButton
 
Field Summary
private  int[] m_anSelection
          Selection observer storing the index of the selected record.
private  AbstractTableModel m_atmModel
          The model of underlying the table that is being displayed.
private  javax.swing.JTable m_jtTable
          The displayed JTable.
private  LogFileContent m_lfcContent
           
 
Fields inherited from class org.salespointframework.core.FormSheet
BTNID_CANCEL, BTNID_OK, BUTTONBAR_BOTTOM, BUTTONBAR_LEFT, BUTTONBAR_NONE, BUTTONBAR_RIGHT, BUTTONBAR_TOP, m_fCancelled
 
Constructor Summary
LogTableForm(java.lang.String sCaption, LogFileContent lfc, java.util.Comparator<LogEntry> cmp, TableEntryDescriptor ted, boolean fWaitResponse)
           
LogTableForm(java.lang.String sCaption, LogInputStream lis)
          Create a new LogTableForm.
LogTableForm(java.lang.String sCaption, LogInputStream lis, java.util.Comparator<LogEntry> cmp)
          Create a new LogTableForm.
LogTableForm(java.lang.String sCaption, LogInputStream lis, java.util.Comparator<LogEntry> cmp, TableEntryDescriptor ted)
          Create a new LogTableForm.
LogTableForm(java.lang.String sCaption, LogInputStream lis, java.util.Comparator<LogEntry> cmp, TableEntryDescriptor ted, boolean fWaitResponse)
          Create a new LogTableForm.
LogTableForm(java.lang.String sCaption, LogInputStream lis, TableEntryDescriptor ted)
          Create a new LogTableForm.
 
Method Summary
 LogEntry getSelectedEntry()
          Get the currently selected log entry.
 java.lang.Object getSelectedRecord()
          Same as getSelectedEntry(), but return type is Object.
 javax.swing.JTable getTable()
          Gets the table.
 void setTableModel(AbstractTableModel tm)
          Changes the TableModel of a table.
 
Methods inherited from class org.salespointframework.core.FormSheet
addButton, addButton, addContentCreator, attach, attach, attach, buttonIterator, buttonIterator, cancel, close, copyFormSheetDnDComponents, customizeButtonbar, detachDisplay, detachProcess, detachSalesPoint, fillBtnPanel, getButton, getButtonbarPosition, getButtonsLock, getCaption, getComponent, getComponentLock, getDisplay, getDisplayLock, getDragLayer, getModalLayer, getPopupLayer, getProcess, getSalesPoint, getWrappedComponent, isCancelled, letFollowComponentOnDragLayer, ok, paintButtonBarBackground, registerDnDComponent, removeAllButtons, removeAllDndComponents, removeButton, removeDnDComponent, setButtonbarPosition, setCaption, setComponent, setFormsheetCustomizationListener, setWaitResponse, stopFollowComponentOnDragLayer, toString, waitResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_anSelection

private int[] m_anSelection
Selection observer storing the index of the selected record.


m_atmModel

private transient AbstractTableModel m_atmModel
The model of underlying the table that is being displayed.


m_lfcContent

private LogFileContent m_lfcContent

m_jtTable

private transient javax.swing.JTable m_jtTable
The displayed JTable.

Constructor Detail

LogTableForm

public LogTableForm(java.lang.String sCaption,
                    LogInputStream lis)
Create a new LogTableForm. LogEntries are ordered by their log dates and displayed using the DefaultLogEntryTED.

Parameters:
sCaption - the FormSheet's caption.
lis - the LogInputStream that contains the LogEntries to be displayed. May be filtered.

LogTableForm

public LogTableForm(java.lang.String sCaption,
                    LogInputStream lis,
                    TableEntryDescriptor ted)
Create a new LogTableForm. LogEntries are ordered by their log dates.

Parameters:
sCaption - the FormSheet's caption.
lis - the LogInputStream that contains the LogEntries to be displayed. May be filtered.
ted - a TableEntryDescriptor defining how LogEntries are to be displayed with respect to rows and columns in a table.

LogTableForm

public LogTableForm(java.lang.String sCaption,
                    LogInputStream lis,
                    java.util.Comparator<LogEntry> cmp)
Create a new LogTableForm. LogEntries are displayed using the DefaultLogEntryTED.

Parameters:
sCaption - the FormSheet's caption.
lis - the LogInputStream that contains the LogEntries to be displayed. May be filtered.
cmp - a Comparator that defines the order the LogEntries appear in. May be null in which case LogEntries will be sorted by the log date.

LogTableForm

public LogTableForm(java.lang.String sCaption,
                    LogInputStream lis,
                    java.util.Comparator<LogEntry> cmp,
                    TableEntryDescriptor ted)
Create a new LogTableForm.

Parameters:
sCaption - the FormSheet's caption.
lis - the LogInputStream that contains the LogEntries to be displayed. May be filtered.
cmp - a Comparator that defines the order the LogEntries appear in. May be null in which case LogEntries will be sorted by the log date.
ted - a TableEntryDescriptor defining how LogEntries are to be displayed with respect to rows and columns in a table.

LogTableForm

public LogTableForm(java.lang.String sCaption,
                    LogInputStream lis,
                    java.util.Comparator<LogEntry> cmp,
                    TableEntryDescriptor ted,
                    boolean fWaitResponse)
Create a new LogTableForm.

Parameters:
sCaption - the FormSheet's caption.
lis - the LogInputStream that contains the LogEntries to be displayed. May be filtered.
cmp - a Comparator that defines the order the LogEntries appear in. May be null in which case LogEntries will be sorted by the log date.
ted - a TableEntryDescriptor defining how LogEntries are to be displayed with respect to rows and columns in a table.
fWaitResponse - the initial value of the waitResponse property. If true, Display.setFormSheet(org.salespointframework.core.FormSheet) will block until the FormSheet is closed.

LogTableForm

public LogTableForm(java.lang.String sCaption,
                    LogFileContent lfc,
                    java.util.Comparator<LogEntry> cmp,
                    TableEntryDescriptor ted,
                    boolean fWaitResponse)
Method Detail

getSelectedEntry

public LogEntry getSelectedEntry()
Get the currently selected log entry.


getSelectedRecord

public java.lang.Object getSelectedRecord()
Same as getSelectedEntry(), but return type is Object. Added for naming consistency within the framework.

Returns:
the currently selected record.

getTable

public javax.swing.JTable getTable()
Gets the table.


setTableModel

public void setTableModel(AbstractTableModel tm)
Changes the TableModel of a table.

Parameters:
tm - the new TableModel