to.etc.domui.component.lookup
Class AbstractLookupControlImpl

java.lang.Object
  extended by to.etc.domui.component.lookup.AbstractLookupControlImpl
All Implemented Interfaces:
ILookupControlInstance
Direct Known Subclasses:
EqLookupControlImpl, LookupNumberControl

public abstract class AbstractLookupControlImpl
extends java.lang.Object
implements ILookupControlInstance

Abstract default implementation of a ILookupControlInstance. This merely keeps the list of Nodes representing the visual representation; concrete implementations must handle the other parts.

Author:
Frits Jalvingh Created on Jul 31, 2009

Nested Class Summary
 
Nested classes/interfaces inherited from interface to.etc.domui.component.lookup.ILookupControlInstance
ILookupControlInstance.AppendCriteriaResult
 
Constructor Summary
AbstractLookupControlImpl(NodeBase... nodes)
           
 
Method Summary
abstract  ILookupControlInstance.AppendCriteriaResult appendCriteria(QCriteria<?> crit)
          Evaluate the contents of the input for this lookup line; if the user has added data there then add the values to the query.
 void clearInput()
          Default implementation
 NodeBase[] getInputControls()
          Return all of the nodes (input and otherwise) that together form the complete visual representation of this lookup line.
 NodeBase getLabelControl()
          Returns the control where the label should be attached to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLookupControlImpl

public AbstractLookupControlImpl(NodeBase... nodes)
Method Detail

appendCriteria

public abstract ILookupControlInstance.AppendCriteriaResult appendCriteria(QCriteria<?> crit)
                                                                    throws java.lang.Exception
Description copied from interface: ILookupControlInstance
Evaluate the contents of the input for this lookup line; if the user has added data there then add the values to the query.

Specified by:
appendCriteria in interface ILookupControlInstance
Returns:
see ILookupControlInstance.AppendCriteriaResult
Throws:
java.lang.Exception

getInputControls

public NodeBase[] getInputControls()
Description copied from interface: ILookupControlInstance
Return all of the nodes (input and otherwise) that together form the complete visual representation of this lookup line. This may NOT return null OR an empty list.

Specified by:
getInputControls in interface ILookupControlInstance
Returns:

getLabelControl

public NodeBase getLabelControl()
Description copied from interface: ILookupControlInstance
Returns the control where the label should be attached to. Can return null, in that case the first IInput control or the first node in the list will be used.

Specified by:
getLabelControl in interface ILookupControlInstance
Returns:

clearInput

public void clearInput()
Default implementation

Specified by:
clearInput in interface ILookupControlInstance
See Also:
ILookupControlInstance.clearInput()