butler.swing.record
Class RecordLookup

java.lang.Object
  extended by butler.swing.record.RecordSelector.BaseImpl
      extended by butler.swing.record.RecordLookup
All Implemented Interfaces:
RecordSelectionListener, RecordSelector, java.util.EventListener

public class RecordLookup
extends RecordSelector.BaseImpl
implements RecordSelectionListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface butler.swing.record.RecordSelector
RecordSelector.BaseImpl, RecordSelector.Factory, RecordSelector.SelectionPanel
 
Field Summary
 
Fields inherited from class butler.swing.record.RecordSelector.BaseImpl
_changeListeners, _listeners
 
Constructor Summary
RecordLookup(DRecordLookup desc)
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener listener)
           
 void clear()
           
 void fireShowButton()
           
 java.lang.String getCaption()
           
 java.util.List getColumns()
           
 javax.swing.JComponent getComponent()
           
 Record getSelectedRecord()
           
 RecordList getSelectedRecords()
           
 javax.swing.JDialog getSelectionDialog()
           
 java.lang.Object getValue()
           
 ValueEditor getValueEditor()
           
 void init(DRecordLookup desc)
           
 void recordListSelected(RecordList recList)
           
 void recordSelected(Record rec)
           
 void setDatatype(Column col, Datatype datatype)
           
 void setDefaultValue(Column col, java.lang.Object value)
           
 void setEnabled(boolean flag)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class butler.swing.record.RecordSelector.BaseImpl
addRecordSelectionListener, notifyRecordSelectionListeners, setMultiple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordLookup

public RecordLookup(DRecordLookup desc)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

clear

public void clear()
           throws java.lang.Exception
Specified by:
clear in interface RecordSelector
Overrides:
clear in class RecordSelector.BaseImpl
Throws:
java.lang.Exception

getSelectionDialog

public javax.swing.JDialog getSelectionDialog()

getColumns

public java.util.List getColumns()
                          throws java.lang.Exception
Throws:
java.lang.Exception

init

public void init(DRecordLookup desc)
          throws java.lang.Exception
Throws:
java.lang.Exception

fireShowButton

public void fireShowButton()

getSelectedRecord

public Record getSelectedRecord()
                         throws java.lang.Exception
Specified by:
getSelectedRecord in interface RecordSelector
Throws:
java.lang.Exception

getSelectedRecords

public RecordList getSelectedRecords()
                              throws java.lang.Exception
Specified by:
getSelectedRecords in interface RecordSelector
Throws:
java.lang.Exception

getComponent

public javax.swing.JComponent getComponent()
                                    throws java.lang.Exception
Specified by:
getComponent in interface RecordSelector
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

setValue

public void setValue(java.lang.Object value)
              throws java.lang.Exception
Throws:
java.lang.Exception

setDefaultValue

public void setDefaultValue(Column col,
                            java.lang.Object value)
                     throws java.lang.Exception
Overrides:
setDefaultValue in class RecordSelector.BaseImpl
Throws:
java.lang.Exception

getValue

public java.lang.Object getValue()
                          throws java.lang.Exception
Throws:
java.lang.Exception

getCaption

public java.lang.String getCaption()
                            throws java.lang.Exception
Throws:
java.lang.Exception

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener listener)
Specified by:
addChangeListener in interface RecordSelector
Overrides:
addChangeListener in class RecordSelector.BaseImpl

setDatatype

public void setDatatype(Column col,
                        Datatype datatype)
                 throws java.lang.Exception
Overrides:
setDatatype in class RecordSelector.BaseImpl
Throws:
java.lang.Exception

getValueEditor

public ValueEditor getValueEditor()

setEnabled

public void setEnabled(boolean flag)
Specified by:
setEnabled in interface RecordSelector
Overrides:
setEnabled in class RecordSelector.BaseImpl