butler.swing.form
Class ListForm
java.lang.Object
butler.swing.form.Form
butler.swing.form.ListForm
- All Implemented Interfaces:
- RecordSelectionListener, RecordSelector.SelectionPanel, java.awt.event.ActionListener, java.util.EventListener
public class ListForm
- extends Form
- implements RecordSelectionListener, RecordSelector.SelectionPanel
Simple swing frame for searching and editing records
from one table.
The form can have the following components:
1. Query panel for selecting records
2. Record list table for showing the selected records
3. Record detail editor for editing one record
4. Tabbed pane for showing related records
- Author:
- Fredrik Bertilsson
Methods inherited from class butler.swing.form.Form |
actionPerformed, cancel, createForm, getDescriptor, getExitMenuItem, getFrame, getMenuBar, getSaveAction, populate, populate, registerFormFactory, run, setFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PADDING
public static final int PADDING
- See Also:
- Constant Field Values
ListForm
public ListForm(DListForm desc)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPanel
public java.awt.Container getPanel()
throws java.lang.Exception
- Specified by:
getPanel
in interface RecordSelector.SelectionPanel
- Specified by:
getPanel
in class Form
- Throws:
java.lang.Exception
getRecordListTable
public RecordListTable getRecordListTable()
- Returns the list of searched records.
init
public void init()
throws java.lang.Exception
- Specified by:
init
in interface RecordSelector.SelectionPanel
- Overrides:
init
in class Form
- Throws:
java.lang.Exception
recordSelected
public void recordSelected(Record rec)
throws java.lang.Exception
- Specified by:
recordSelected
in interface RecordSelectionListener
- Throws:
java.lang.Exception
recordListSelected
public void recordListSelected(RecordList recList)
throws java.lang.Exception
- Specified by:
recordListSelected
in interface RecordSelectionListener
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
close
public void close()
throws java.lang.Exception
- Overrides:
close
in class Form
- Throws:
java.lang.Exception
beforeClose
protected void beforeClose()
throws java.lang.Exception
- Overrides:
beforeClose
in class Form
- Throws:
java.lang.Exception
isDirty
public boolean isDirty()
- Overrides:
isDirty
in class Form
save
public void save()
throws java.lang.Exception
- Overrides:
save
in class Form
- Throws:
java.lang.Exception
getFileMenu
protected javax.swing.JMenu getFileMenu()
throws java.lang.Exception
- Overrides:
getFileMenu
in class Form
- Throws:
java.lang.Exception
askSave
protected void askSave()
throws java.lang.Exception
- Overrides:
askSave
in class Form
- Throws:
java.lang.Exception
addRecordSelectionListener
public void addRecordSelectionListener(RecordSelectionListener listener)
- Specified by:
addRecordSelectionListener
in interface RecordSelector.SelectionPanel
search
public void search()
throws java.lang.Exception
- Throws:
java.lang.Exception
addListener
public void addListener(ListForm.Listener l)
getQueryPanel
public QueryPanel getQueryPanel()
getComponent
public javax.swing.JComponent getComponent()
throws java.lang.Exception
- Throws:
java.lang.Exception
getTitle
public java.lang.String getTitle()
throws java.lang.Exception
- Specified by:
getTitle
in interface RecordSelector.SelectionPanel
- Overrides:
getTitle
in class Form
- Throws:
java.lang.Exception
setCloseActionListener
public void setCloseActionListener(java.awt.event.ActionListener listener)