to.etc.domui.component.lookup
Class LookupForm.Item

java.lang.Object
  extended by to.etc.domui.component.lookup.LookupForm.Item
All Implemented Interfaces:
SearchPropertyMetaModel
Enclosing class:
LookupForm<T>

public static class LookupForm.Item
extends java.lang.Object
implements SearchPropertyMetaModel

This is the definition for an Item to look up. A list of these will generate the actual lookup items on the screen, in the order specified by the item definition list. FIXME Should this actually be public??

Author:
Frits Jalvingh Created on Jul 31, 2009

Field Summary
 
Fields inherited from interface to.etc.domui.component.meta.SearchPropertyMetaModel
BY_ORDER
 
Constructor Summary
LookupForm.Item()
           
 
Method Summary
 java.lang.String getErrorLocation()
           
 java.lang.String getLabelText()
           
 PropertyMetaModel<?> getLastProperty()
           
 java.lang.String getLookupHint()
          Returns the text to use as the control label, if defined in the metadata.
 java.lang.String getLookupLabel()
          Returns the text to use as the control label, if defined in the metadata.
 int getMinLength()
          To prevent searching over the entire database you can specify a minimum number of characters that must be present before the search is allowed on this field.
 int getOrder()
          Unused; only present to satisfy the interface.
 java.lang.String getPropertyName()
           
 java.util.List<PropertyMetaModel<?>> getPropertyPath()
           
 java.lang.String getTestId()
           
 boolean isIgnoreCase()
          When T (default) the search is done in a case-independent way provided we are looking for some string value.
 void setErrorLocation(java.lang.String errorLocation)
           
 void setIgnoreCase(boolean ignoreCase)
           
 void setLabelText(java.lang.String labelText)
           
 void setLookupHint(java.lang.String lookupHint)
           
 void setMinLength(int minLength)
           
 void setPropertyName(java.lang.String propertyName)
           
 void setPropertyPath(java.util.List<PropertyMetaModel<?>> propertyPath)
           
 void setTestId(java.lang.String testId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LookupForm.Item

public LookupForm.Item()
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Specified by:
getPropertyName in interface SearchPropertyMetaModel

setPropertyName

public void setPropertyName(java.lang.String propertyName)

getPropertyPath

public java.util.List<PropertyMetaModel<?>> getPropertyPath()
Specified by:
getPropertyPath in interface SearchPropertyMetaModel

setPropertyPath

public void setPropertyPath(java.util.List<PropertyMetaModel<?>> propertyPath)

getLastProperty

public PropertyMetaModel<?> getLastProperty()

isIgnoreCase

public boolean isIgnoreCase()
Description copied from interface: SearchPropertyMetaModel
When T (default) the search is done in a case-independent way provided we are looking for some string value.

Specified by:
isIgnoreCase in interface SearchPropertyMetaModel
Returns:

setIgnoreCase

public void setIgnoreCase(boolean ignoreCase)

getMinLength

public int getMinLength()
Description copied from interface: SearchPropertyMetaModel
To prevent searching over the entire database you can specify a minimum number of characters that must be present before the search is allowed on this field. This would prevent huge searches when only a single letter is entered.

Specified by:
getMinLength in interface SearchPropertyMetaModel
Returns:

setMinLength

public void setMinLength(int minLength)

getLabelText

public java.lang.String getLabelText()

setLabelText

public void setLabelText(java.lang.String labelText)

getLookupLabel

public java.lang.String getLookupLabel()
Description copied from interface: SearchPropertyMetaModel
Returns the text to use as the control label, if defined in the metadata.

Specified by:
getLookupLabel in interface SearchPropertyMetaModel
Returns:

getErrorLocation

public java.lang.String getErrorLocation()

setErrorLocation

public void setErrorLocation(java.lang.String errorLocation)

getOrder

public int getOrder()
Unused; only present to satisfy the interface.

Specified by:
getOrder in interface SearchPropertyMetaModel
Returns:
See Also:
SearchPropertyMetaModel.getOrder()

getLookupHint

public java.lang.String getLookupHint()
Description copied from interface: SearchPropertyMetaModel
Returns the text to use as the control label, if defined in the metadata.

Specified by:
getLookupHint in interface SearchPropertyMetaModel
Returns:

setLookupHint

public void setLookupHint(java.lang.String lookupHint)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTestId

public java.lang.String getTestId()

setTestId

public void setTestId(java.lang.String testId)