SalesPoint v3.3 API

log.stdforms
Class LogTableForm

java.lang.Object
  extended by sale.FormSheet
      extended by log.stdforms.LogTableForm
All Implemented Interfaces:
Serializable

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
Author:
Steffen Zschaler
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class sale.FormSheet
FormSheet.FormButton
 
Field Summary
 
Fields inherited from class sale.FormSheet
BTNID_CANCEL, BTNID_OK, m_fCancelled
 
Constructor Summary
LogTableForm(String sCaption, LogFileContent lfc, Comparator<LogEntry> cmp, TableEntryDescriptor ted, boolean fWaitResponse)
           
LogTableForm(String sCaption, LogInputStream lis)
          Create a new LogTableForm.
LogTableForm(String sCaption, LogInputStream lis, Comparator<LogEntry> cmp)
          Create a new LogTableForm.
LogTableForm(String sCaption, LogInputStream lis, Comparator<LogEntry> cmp, TableEntryDescriptor ted)
          Create a new LogTableForm.
LogTableForm(String sCaption, LogInputStream lis, Comparator<LogEntry> cmp, TableEntryDescriptor ted, boolean fWaitResponse)
          Create a new LogTableForm.
LogTableForm(String sCaption, LogInputStream lis, TableEntryDescriptor ted)
          Create a new LogTableForm.
 
Method Summary
 LogEntry getSelectedEntry()
          Get the currently selected log entry.
 Object getSelectedRecord()
          Same as getSelectedEntry(), but return type is Object.
 JTable getTable()
          Gets the table.
 void setTableModel(AbstractTableModel tm)
          Changes the TableModel of a table.
 
Methods inherited from class sale.FormSheet
addButton, addButton, addContentCreator, attach, attach, attach, buttonIterator, buttonIterator, cancel, close, detachDisplay, detachProcess, detachSalesPoint, fillBtnPanel, getButton, getButtonsLock, getCaption, getComponent, getComponentLock, getDisplay, getDisplayLock, getProcess, getSalesPoint, isCancelled, ok, removeAllButtons, removeButton, setCaption, setComponent, setWaitResponse, toString, waitResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogTableForm

public LogTableForm(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(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(String sCaption,
                    LogInputStream lis,
                    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(String sCaption,
                    LogInputStream lis,
                    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(String sCaption,
                    LogInputStream lis,
                    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(sale.FormSheet) will block until the FormSheet is closed.

LogTableForm

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

getSelectedEntry

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


getSelectedRecord

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

Returns:
the currently selected record.

getTable

public JTable getTable()
Gets the table.

Override:
Never

setTableModel

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

Parameters:
tm - the new TableModel

SalesPoint v3.3 API