butler.client.record
Class DRecordSelector

java.lang.Object
  extended by 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

Field Summary
protected  boolean _multipleMode
           
protected  Query _query
           
protected  Table _table
           
 
Constructor Summary
DRecordSelector()
           
DRecordSelector(Table tab)
          Constructs a selector for selecting records in the given table.
 
Method Summary
 java.lang.String getCaption()
           
 Query getQuery()
           
 Table getTable()
           
 boolean isEnabled()
           
 boolean isMultipleMode()
           
 boolean isNewMode()
           
static DRecordSelector parse(org.dom4j.Element element, Table tab)
           
 void setDatatype(Column col, Datatype dt)
           
 void setEnabled(boolean enabled)
           
 void setMultipleMode(boolean flag)
          Tells if multiple records could be selected or not.
 void setNewMode(boolean flag)
          Tells if new records should be created if the searched record is not found.
 void setTable(Table tab)
           
 void toXML(org.xml.sax.ContentHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_table

protected Table _table

_query

protected Query _query

_multipleMode

protected boolean _multipleMode
Constructor Detail

DRecordSelector

public DRecordSelector(Table tab)
Constructs a selector for selecting records in the given table.


DRecordSelector

public DRecordSelector()
Method Detail

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