|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase
org.kuali.rice.kns.datadictionary.LookupDefinition
public class LookupDefinition
Contains lookup-related information relating to the parent BusinessObject.
The lookup element is used to specify the rules for "looking up" a business object. These specifications define the following: How to specify the search criteria used to locate a set of business objects How to display the search results DD: See LookupDefinition.java JSTL: The lookup element is a Map which is accessed using a key of "lookup". This map contains the following keys: lookupableID (String, optional) title (String) menubar (String, optional) defaultSort (Map, optional) lookupFields (Map) resultFields (Map) resultSetLimit (String, optional) See LookupMapBuilder.java Note: the setters do copious amounts of validation, to facilitate generating errors during the parsing process.
Field Summary | |
---|---|
protected SortDefinition |
defaultSort
|
protected boolean |
disableSearchButtons
|
protected String |
extraButtonParams
|
protected String |
extraButtonSource
|
protected HelpDefinition |
helpDefinition
|
protected String |
helpUrl
|
protected String |
lookupableID
|
protected Map<String,FieldDefinition> |
lookupFieldMap
|
protected List<FieldDefinition> |
lookupFields
|
protected String |
menubar
|
protected int |
numOfColumns
|
protected Map<String,FieldDefinition> |
resultFieldMap
|
protected List<FieldDefinition> |
resultFields
|
protected Integer |
resultSetLimit
|
protected String |
searchIconOverride
|
protected String |
title
|
protected boolean |
translateCodes
|
Fields inherited from class org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase |
---|
id |
Constructor Summary | |
---|---|
LookupDefinition()
|
Method Summary | |
---|---|
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass)
Directly validate simple fields, call completeValidation on Definition fields. |
SortDefinition |
getDefaultSort()
|
String |
getExtraButtonParams()
|
String |
getExtraButtonSource()
|
HelpDefinition |
getHelpDefinition()
|
String |
getHelpUrl()
|
String |
getLookupableID()
|
FieldDefinition |
getLookupField(String attributeName)
|
List |
getLookupFieldNames()
|
List<FieldDefinition> |
getLookupFields()
|
String |
getMenubar()
|
int |
getNumOfColumns()
|
FieldDefinition |
getResultField(String attributeName)
|
List<String> |
getResultFieldNames()
|
List<FieldDefinition> |
getResultFields()
|
Integer |
getResultSetLimit()
The resultSetLimit element specifies the maximum number of records that will be listed as a result of the lookup search. |
String |
getSearchIconOverride()
|
String |
getTitle()
|
boolean |
hasDefaultSort()
|
boolean |
hasExtraButtonParams()
|
boolean |
hasExtraButtonSource()
|
boolean |
hasMenubar()
|
boolean |
hasResultSetLimit()
|
boolean |
hasSearchIconOverride()
|
boolean |
isDisableSearchButtons()
|
boolean |
isTranslateCodes()
|
void |
setDefaultSort(SortDefinition defaultSort)
The defaultSort element specifies the sequence in which the lookup search results should be displayed. |
void |
setDisableSearchButtons(boolean disableSearchButtons)
|
void |
setExtraButtonParams(String extraButtonParams)
The extraButton element is used to define additional buttons which will appear on the lookup screen next to the Search and Clear buttons. |
void |
setExtraButtonSource(String extraButtonSource)
The extraButton element is used to define additional buttons which will appear on the lookup screen next to the Search and Clear buttons. |
void |
setHelpDefinition(HelpDefinition helpDefinition)
|
void |
setHelpUrl(String helpUrl)
|
void |
setLookupableID(String lookupableID)
The lookupableID element identifies the name of the Spring bean which will be used to obtain the lookupable helper service for the business object. |
void |
setLookupFields(List<FieldDefinition> lookupFields)
The lookupFields element defines the set of fields in which the user can enter values representing search selection criteria. |
void |
setMenubar(String menubar)
The menubar element is used to add additional html code to the header line on the lookup screen. |
void |
setNumOfColumns(int numOfColumns)
|
void |
setResultFields(List<FieldDefinition> resultFields)
The resultFields element specifies the list of fields that are shown as a result of the lookup search. |
void |
setResultSetLimit(Integer resultSetLimit)
The resultSetLimit element specifies the maximum number of records that will be listed as a result of the lookup search. |
void |
setSearchIconOverride(String searchIconOverride)
The searchIconOverride element is used to define alternative icons appear on the lookup screen next to the Search and Clear buttons. |
void |
setTitle(String title)
Sets title to the given value. |
void |
setTranslateCodes(boolean translateCodes)
|
String |
toString()
|
Methods inherited from class org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase |
---|
afterPropertiesSet, getId, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String lookupableID
protected String title
protected String menubar
protected SortDefinition defaultSort
protected List<FieldDefinition> lookupFields
protected Map<String,FieldDefinition> lookupFieldMap
protected List<FieldDefinition> resultFields
protected Map<String,FieldDefinition> resultFieldMap
protected Integer resultSetLimit
protected String extraButtonSource
protected String extraButtonParams
protected String searchIconOverride
protected int numOfColumns
protected HelpDefinition helpDefinition
protected String helpUrl
protected boolean translateCodes
protected boolean disableSearchButtons
Constructor Detail |
---|
public LookupDefinition()
Method Detail |
---|
public void setLookupableID(String lookupableID)
public String getLookupableID()
public String getTitle()
public void setTitle(String title)
title
-
IllegalArgumentException
- if the given title is blankpublic boolean hasMenubar()
public String getMenubar()
public void setMenubar(String menubar)
IllegalArgumentException
- if the given menubar is blankpublic boolean hasDefaultSort()
public SortDefinition getDefaultSort()
public void setDefaultSort(SortDefinition defaultSort)
IllegalArgumentException
- if the given defaultSort is blankpublic List getLookupFieldNames()
public List<FieldDefinition> getLookupFields()
public FieldDefinition getLookupField(String attributeName)
fieldName
-
public List<String> getResultFieldNames()
public List<FieldDefinition> getResultFields()
public FieldDefinition getResultField(String attributeName)
fieldName
-
public void setResultSetLimit(Integer resultSetLimit)
public boolean hasResultSetLimit()
public Integer getResultSetLimit()
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationorg.kuali.rice.kns.datadictionary.DataDictionaryDefinition#completeValidation(java.lang.Class, java.lang.Object)
public boolean hasExtraButtonSource()
public String getExtraButtonSource()
public void setExtraButtonSource(String extraButtonSource)
IllegalArgumentException
- if the given source is blankpublic boolean hasExtraButtonParams()
public String getExtraButtonParams()
public void setExtraButtonParams(String extraButtonParams)
public boolean hasSearchIconOverride()
public String getSearchIconOverride()
public void setSearchIconOverride(String searchIconOverride)
IllegalArgumentException
- if the given source is blankpublic String toString()
toString
in class Object
public void setLookupFields(List<FieldDefinition> lookupFields)
public void setResultFields(List<FieldDefinition> resultFields)
public int getNumOfColumns()
public void setNumOfColumns(int numOfColumns)
numOfColumns
- the numOfColumns to setpublic HelpDefinition getHelpDefinition()
public void setHelpDefinition(HelpDefinition helpDefinition)
helpDefinition
- the helpDefinition to setpublic String getHelpUrl()
public void setHelpUrl(String helpUrl)
helpUrl
- the helpUrl to setpublic boolean isTranslateCodes()
public void setTranslateCodes(boolean translateCodes)
public boolean isDisableSearchButtons()
public void setDisableSearchButtons(boolean disableSearchButtons)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |