to.etc.domui.component.lookup
Class MultipleSelectionLookup<T>

java.lang.Object
  extended by to.etc.domui.dom.css.CssBase
      extended by to.etc.domui.dom.html.NodeBase
          extended by to.etc.domui.dom.html.NodeContainer
              extended by to.etc.domui.dom.html.Div
                  extended by to.etc.domui.component.layout.FloatingWindow
                      extended by to.etc.domui.component.input.AbstractFloatingLookup<T>
                          extended by to.etc.domui.component.lookup.MultipleSelectionLookup<T>
All Implemented Interfaces:
java.lang.Iterable<NodeBase>, IModelBinding, INodeErrorDelegate, IDraggable, IDropTargetable

public class MultipleSelectionLookup<T>
extends AbstractFloatingLookup<T>

Dialog that enables multiple lookup selection.

Author:
Vladimir Mijic Created on 27 Oct 2009

Constructor Summary
MultipleSelectionLookup(java.lang.Class<T> lookupClass, boolean isModal, java.lang.String title, IMultiSelectionResult<T> onReceiveResult)
           
MultipleSelectionLookup(java.lang.Class<T> lookupClass, ClassMetaModel metaModel, boolean isModal, java.lang.String title, IMultiSelectionResult<T> onReceiveResult)
           
 
Method Summary
 void createContent()
          Create the floater.
 IErrorMessageListener getCustomErrorMessageListener()
           
 LookupForm<T> getExternalLookupForm()
           
 IQueryHandler<T> getQueryHandler()
          The query handler to use, if a special one is needed.
 IQueryManipulator<T> getQueryManipulator()
           
 java.lang.String getTitle()
          Returns the title as set verbatim; if it was set using a tilde key this returns the key without resource bundle replacement.
 boolean isAllowEmptyQuery()
          When T the user can press search even when no criteria are entered.
protected  void search(LookupForm<T> lf)
           
 void setAllowEmptyQuery(boolean allowEmptyQuery)
           
 void setCustomErrorMessageListener(IErrorMessageListener customErrorMessageListener)
           
 void setExternalLookupForm(LookupForm<T> externalLookupForm)
           
 void setQueryHandler(IQueryHandler<T> queryHandler)
           
 void setQueryManipulator(IQueryManipulator<T> queryManipulator)
           
 void setTitle(java.lang.String title)
          Set the title attribute, using tilde replacement.
 void show(NodeBase parent)
           
 
Methods inherited from class to.etc.domui.component.input.AbstractFloatingLookup
getLookupClass, getMetaModel, isUseStretchedLayout, setUseStretchedLayout
 
Methods inherited from class to.etc.domui.component.layout.FloatingWindow
close, closePressed, create, create, create, createTitleBar, getOnClose, getWindowTitle, isClosable, linkToPageModally, onAddedToPage, onRemoveFromPage, setClosable, setIcon, setOnClose, setWindowTitle
 
Methods inherited from class to.etc.domui.dom.html.Div
afterCreateContent, componentHandleWebAction, fadeIn, fadeOut, getCustomUpdatesCallJS, getDragHandler, getDropBody, getDropHandler, getDropMode, getReturnPressed, setDragHandler, setDropBody, setDropHandler, setReturnPressed, slideDown, slideUp, tb, visit
 
Methods inherited from class to.etc.domui.dom.html.NodeContainer
add, add, add, addTable, canContain, delegateTo, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChild, getDeepChildren, getErrorFence, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalGetOldChildren, internalShelve, internalUnshelve, iterator, moveControlToModel, moveModelToControl, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setControlsEnabled, setErrorFence, setErrorFence, setText, setValue
 
Methods inherited from class to.etc.domui.dom.html.NodeBase
$, acceptRequestParameter, addCssClass, addGlobalMessage, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, build, changed, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, clearMessage, findComponentBundle, getActualID, getAllocationTracepoint, getClicked, getComponentBundle, getCreateJS, getCssClass, getErrorDelegate, getErrorLocation, getMessage, getOnClickJS, getOnMouseDownJS, getPage, getParent, getParent, getParent, getSharedContext, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getUserObject, handleDrop, hasCssClass, hasError, internalGetOldParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnClicked, internalOnValueChanged, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetLogAllocations, internalSetTag, isBuilt, isFocusRequested, isStretchHeight, onBeforeFullRender, onForceRebuild, onHeaderContributors, onShelve, onUnshelve, refresh, remove, removeCssClass, renderJavascriptState, replaceWith, setClicked, setComponentBundle, setCssClass, setErrorDelegate, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setSpecialAttribute, setStretchHeight, setTestID, setUserObject, toString
 
Methods inherited from class to.etc.domui.dom.css.CssBase
getBackgroundAttachment, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorderBottomColor, getBorderBottomStyle, getBorderBottomWidth, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderTopColor, getBorderTopStyle, getBorderTopWidth, getBottom, getCachedStyle, getClear, getColor, getDisplay, getFloat, getFontFamily, getFontSize, getFontSizeAdjust, getFontStyle, getFontVariant, getFontWeight, getHeight, getLeft, getLineHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverflow, getPosition, getRight, getTextAlign, getTop, getTransform, getVerticalAlign, getVisibility, getWidth, getZIndex, internalSetDisplay, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorder, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBottom, setCachedStyle, setClear, setColor, setDisplay, setFloat, setFontFamily, setFontSize, setFontSizeAdjust, setFontStyle, setFontVariant, setFontWeight, setHeight, setLeft, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultipleSelectionLookup

public MultipleSelectionLookup(java.lang.Class<T> lookupClass,
                               ClassMetaModel metaModel,
                               boolean isModal,
                               java.lang.String title,
                               IMultiSelectionResult<T> onReceiveResult)

MultipleSelectionLookup

public MultipleSelectionLookup(java.lang.Class<T> lookupClass,
                               boolean isModal,
                               java.lang.String title,
                               IMultiSelectionResult<T> onReceiveResult)
Method Detail

show

public void show(NodeBase parent)

createContent

public void createContent()
                   throws java.lang.Exception
Description copied from class: FloatingWindow
Create the floater.

Overrides:
createContent in class FloatingWindow
Throws:
java.lang.Exception
See Also:
NodeBase.createContent()

search

protected void search(LookupForm<T> lf)
               throws java.lang.Exception
Throws:
java.lang.Exception

getExternalLookupForm

public LookupForm<T> getExternalLookupForm()

setExternalLookupForm

public void setExternalLookupForm(LookupForm<T> externalLookupForm)

getTitle

public java.lang.String getTitle()
Description copied from class: NodeBase
Returns the title as set verbatim; if it was set using a tilde key this returns the key without resource bundle replacement.

Overrides:
getTitle in class NodeBase
Returns:

setTitle

public void setTitle(java.lang.String title)
Description copied from class: NodeBase
Set the title attribute, using tilde replacement. If the string starts with a ~ it is assumed to be a key into the page's resource bundle.

Overrides:
setTitle in class NodeBase

getCustomErrorMessageListener

public IErrorMessageListener getCustomErrorMessageListener()

setCustomErrorMessageListener

public void setCustomErrorMessageListener(IErrorMessageListener customErrorMessageListener)

isAllowEmptyQuery

public boolean isAllowEmptyQuery()
When T the user can press search even when no criteria are entered.

Returns:

setAllowEmptyQuery

public void setAllowEmptyQuery(boolean allowEmptyQuery)

getQueryManipulator

public IQueryManipulator<T> getQueryManipulator()

setQueryManipulator

public void setQueryManipulator(IQueryManipulator<T> queryManipulator)

getQueryHandler

public IQueryHandler<T> getQueryHandler()
The query handler to use, if a special one is needed. The default query handler will use the normal conversation-associated DataContext to issue the query.

Returns:

setQueryHandler

public void setQueryHandler(IQueryHandler<T> queryHandler)