|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.FormSheet
org.salespointframework.desktop.formsheets.LogTableForm
public class LogTableForm
FormSheet displaying the contents of a log file.
The FormSheet will contain a JLogTable
containing one line per log entry.
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int[] m_anSelection
private transient AbstractTableModel m_atmModel
private LogFileContent m_lfcContent
private transient javax.swing.JTable m_jtTable
JTable
.
Constructor Detail |
---|
public LogTableForm(java.lang.String sCaption, LogInputStream lis)
DefaultLogEntryTED
.
sCaption
- the FormSheet's caption.lis
- the LogInputStream that contains the LogEntries to be displayed. May be filtered.public LogTableForm(java.lang.String sCaption, LogInputStream lis, TableEntryDescriptor ted)
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.public LogTableForm(java.lang.String sCaption, LogInputStream lis, java.util.Comparator<LogEntry> cmp)
DefaultLogEntryTED
.
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
.public LogTableForm(java.lang.String sCaption, LogInputStream lis, java.util.Comparator<LogEntry> cmp, TableEntryDescriptor ted)
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.public LogTableForm(java.lang.String sCaption, LogInputStream lis, java.util.Comparator<LogEntry> cmp, TableEntryDescriptor ted, boolean fWaitResponse)
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.public LogTableForm(java.lang.String sCaption, LogFileContent lfc, java.util.Comparator<LogEntry> cmp, TableEntryDescriptor ted, boolean fWaitResponse)
Method Detail |
---|
public LogEntry getSelectedEntry()
public java.lang.Object getSelectedRecord()
getSelectedEntry()
, but return type is Object.
Added for naming consistency within the framework.
public javax.swing.JTable getTable()
public void setTableModel(AbstractTableModel tm)
TableModel
of a table.
tm
- the new TableModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |