butler.swing.record
Class RecordEditor

java.lang.Object
  extended by butler.swing.record.RecordEditor
All Implemented Interfaces:
RecordSelectionListener, java.awt.event.ActionListener, java.util.EventListener

public class RecordEditor
extends java.lang.Object
implements RecordSelectionListener, java.awt.event.ActionListener

Component for editing a record.

Author:
Fredrik Bertilsson

Field Summary
static int ROW_PADDING
           
static int TABLE_PADDING
           
 
Constructor Summary
RecordEditor(DRecordEditor desc)
           
RecordEditor(DRecordEditor desc, RecordController controller)
           
RecordEditor(Table tab)
          Creates a record editor for the given table.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 java.awt.Component getComponent()
          Returns the physical component.
 RecordController getController()
           
 javax.swing.JPanel getPanel()
           
 void recordListSelected(RecordList recList)
           
 void recordSelected(Record rec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_PADDING

public static final int TABLE_PADDING
See Also:
Constant Field Values

ROW_PADDING

public static final int ROW_PADDING
See Also:
Constant Field Values
Constructor Detail

RecordEditor

public RecordEditor(Table tab)
             throws java.lang.Exception
Creates a record editor for the given table.

Throws:
java.lang.Exception

RecordEditor

public RecordEditor(DRecordEditor desc)
             throws java.lang.Exception
Throws:
java.lang.Exception

RecordEditor

public RecordEditor(DRecordEditor desc,
                    RecordController controller)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getComponent

public java.awt.Component getComponent()
Returns the physical component.


getPanel

public javax.swing.JPanel getPanel()

getController

public RecordController getController()

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

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener