butler.client.record
Class DRecordSelector
java.lang.Object
butler.client.record.DRecordSelector
- Direct Known Subclasses:
- DDualListRecordSelector, DRecordListCombo, DRecordLookup
public class DRecordSelector
- extends java.lang.Object
Component for selecting records. There are two subtypes
of this component, lookup and combo.
- Author:
- Fredrik Bertilsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_table
protected Table _table
_query
protected Query _query
_multipleMode
protected boolean _multipleMode
DRecordSelector
public DRecordSelector(Table tab)
- Constructs a selector for selecting records
in the given table.
DRecordSelector
public DRecordSelector()
setTable
public void setTable(Table tab)
getTable
public Table getTable()
getQuery
public Query getQuery()
isMultipleMode
public boolean isMultipleMode()
setEnabled
public void setEnabled(boolean enabled)
isEnabled
public boolean isEnabled()
setMultipleMode
public void setMultipleMode(boolean flag)
- Tells if multiple records could be selected or not.
isNewMode
public boolean isNewMode()
setNewMode
public void setNewMode(boolean flag)
- Tells if new records should be created if the searched
record is not found.
getCaption
public java.lang.String getCaption()
throws java.lang.Exception
- Throws:
java.lang.Exception
setDatatype
public void setDatatype(Column col,
Datatype dt)
parse
public static DRecordSelector parse(org.dom4j.Element element,
Table tab)
throws java.lang.Exception
- Throws:
java.lang.Exception
toXML
public void toXML(org.xml.sax.ContentHandler handler)
throws java.lang.Exception
- Throws:
java.lang.Exception