butler.client.record
Class DRecordListCombo

java.lang.Object
  extended by butler.client.record.DRecordSelector
      extended by butler.client.record.DRecordListCombo

public class DRecordListCombo
extends DRecordSelector

Combo box containing records.

Author:
Fredrik Bertilsson

Field Summary
 
Fields inherited from class butler.client.record.DRecordSelector
_multipleMode, _query, _table
 
Constructor Summary
DRecordListCombo()
           
DRecordListCombo(Column col)
           
DRecordListCombo(Table tab)
          Constructs a combo selector for the given table.
DRecordListCombo(Table tab, Column col)
          Construcs a combo selector for the given table, showing the value of the given column.
 
Method Summary
 void addForeignKey(ForeignKey fk)
           
 RecordComparator getComparator()
           
 java.util.List getForeignKeySequence()
           
 RecordFormatter getFormatter()
           
 java.lang.String getNullCaption()
           
 QueryInstance getQueryInstance()
           
 boolean isNullable()
          Indicates if the combo box should have an empty entry.
 void setComparator(RecordComparator comp)
           
 void setFormatter(RecordFormatter formatter)
          Sets the formatter to be used.
 void setNullable(boolean nullable)
           
 void setNullCaption(java.lang.String nullCaption)
           
 void setQueryInstance(QueryInstance queryInstance)
           
 
Methods inherited from class butler.client.record.DRecordSelector
getCaption, getQuery, getTable, isEnabled, isMultipleMode, isNewMode, parse, setDatatype, setEnabled, setMultipleMode, setNewMode, setTable, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DRecordListCombo

public DRecordListCombo(Table tab)
Constructs a combo selector for the given table.


DRecordListCombo

public DRecordListCombo(Column col)

DRecordListCombo

public DRecordListCombo()

DRecordListCombo

public DRecordListCombo(Table tab,
                        Column col)
Construcs a combo selector for the given table, showing the value of the given column.

Method Detail

getFormatter

public RecordFormatter getFormatter()

setFormatter

public void setFormatter(RecordFormatter formatter)
Sets the formatter to be used. The formatter will control how the record will be displayed in the combo. This method can be used if a customized display of the record is needed.


getComparator

public RecordComparator getComparator()

setComparator

public void setComparator(RecordComparator comp)

addForeignKey

public void addForeignKey(ForeignKey fk)

getForeignKeySequence

public java.util.List getForeignKeySequence()

isNullable

public boolean isNullable()
Indicates if the combo box should have an empty entry.


setNullable

public void setNullable(boolean nullable)

getQueryInstance

public QueryInstance getQueryInstance()
                               throws java.lang.Exception
Throws:
java.lang.Exception

setQueryInstance

public void setQueryInstance(QueryInstance queryInstance)

getNullCaption

public java.lang.String getNullCaption()

setNullCaption

public void setNullCaption(java.lang.String nullCaption)