butler.client.record
Class DRecordListCombo
java.lang.Object
butler.client.record.DRecordSelector
butler.client.record.DRecordListCombo
public class DRecordListCombo
- extends DRecordSelector
Combo box containing records.
- Author:
- Fredrik Bertilsson
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 |
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.
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)