|
||||||||||
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.UserTableFormSheet
public class UserTableFormSheet
A FormSheet displaying the contents of a UserManager
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.salespointframework.core.FormSheet |
---|
FormSheet.FormButton |
Field Summary | |
---|---|
private int[] |
m_anSelection
Reference to the currently selected index. |
private AbstractTableModel |
m_atmModel
The TableModel of the table displayed. |
private javax.swing.JComponent |
m_jcComp
|
private javax.swing.JTable |
m_jtTable
The displayed JTable . |
private javax.swing.ListSelectionModel |
m_lsmModel
The ListSelectionModel of the table displayed. |
private javax.swing.table.TableColumnModel |
m_tcmModel
The TableColumnModel of the table displayed. |
private UIGate |
m_uigGate
The Gate at which the FormSheet is being displayed. |
private UserManager |
m_umMan
The UserManager from which the table is created. |
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 | |
---|---|
UserTableFormSheet(java.lang.String sCaption,
UserManager um,
javax.swing.JComponent c,
UIGate uigGate,
java.util.Comparator<User> cmp,
TableEntryDescriptor ted)
Create a new UserTableFormSheet. |
Method Summary | |
---|---|
javax.swing.table.TableColumnModel |
getColumnModel()
Get the TableColumnModel of the JUserTable which is displayed. |
UIGate |
getGate()
Get the Gate this FormSheet is currently being displayed at. |
User |
getSelectedRecord()
Get the record currently selected. |
javax.swing.ListSelectionModel |
getSelectionModel()
Get the ListSelectionModel of the JUserTable which is displayed. |
javax.swing.JTable |
getTable()
Gets the table. |
java.lang.Object |
getTableSource()
Get the table's source. |
void |
setGate(UIGate uigGate)
Set the gate at which to display the FormSheet. |
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
TableModel
of the table displayed.
private transient javax.swing.table.TableColumnModel m_tcmModel
TableColumnModel
of the table displayed.
private transient javax.swing.JTable m_jtTable
JTable
.
private transient javax.swing.ListSelectionModel m_lsmModel
ListSelectionModel
of the table displayed.
private UserManager m_umMan
private UIGate m_uigGate
Gate
at which the FormSheet is being displayed.
private transient javax.swing.JComponent m_jcComp
Constructor Detail |
---|
public UserTableFormSheet(java.lang.String sCaption, UserManager um, javax.swing.JComponent c, UIGate uigGate, java.util.Comparator<User> cmp, TableEntryDescriptor ted)
FormSheet.waitResponse()
" property will default
to true.
sCaption
- the FormSheet's caption.um
- the UserManager which will be displayedc
- a JComponent which can be optionally displayed with the JUserTable. The
JComponent of the FormSheet will be a JPanel. The JPanels contains a JSplitPane.
The first JComponent of the JPanel is the JUserTable and the second is this JComponent.
If it is null, only the JUserTable will be displayed.uigGate
- the Gate at which the FormSheet is displayed.cmp
- a comparator defining the order in which to display the individual users. If null
the Userrecords will be ordered by their names.ted
- a TableEntryDescriptor that can split the UserManager's entries into a table's cells.
Must not be null
.Method Detail |
---|
public javax.swing.JTable getTable()
public void setTableModel(AbstractTableModel tm)
TableModel
of a table.
tm
- the new TableModelpublic java.lang.Object getTableSource()
Object
to keep consistency with SingleTableFormSheet
.public void setGate(UIGate uigGate)
uigGate
- the new Gate.UIGate.setFormSheet(org.salespointframework.core.FormSheet)
public UIGate getGate()
public User getSelectedRecord()
The actual class of the record depends on the concrete type of
TableModel used. See the TableModel's getRecord()
method for
details.
public javax.swing.ListSelectionModel getSelectionModel()
public javax.swing.table.TableColumnModel getColumnModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |