org.broadleafcommerce.openadmin.client.presenter.structure
Class SimpleSearchListPresenter

java.lang.Object
  extended by org.broadleafcommerce.openadmin.client.presenter.entity.AbstractSubPresentable
      extended by org.broadleafcommerce.openadmin.client.presenter.structure.SimpleSearchListPresenter
All Implemented Interfaces:
SubPresentable

public class SimpleSearchListPresenter
extends AbstractSubPresentable

A simple presenter for list grids that is capable of displaying lists of AdornedTargetList associated items, as well as simple ForeignKey associated items.

Author:
jfischer

Field Summary
protected  com.google.gwt.event.shared.HandlerRegistration addClickedHandlerRegistration
           
protected  com.google.gwt.event.shared.HandlerRegistration editCompletedHandlerRegistration
           
protected  com.google.gwt.event.shared.HandlerRegistration recordDroppedHandlerRegistration
           
protected  com.google.gwt.event.shared.HandlerRegistration removeClickedHandlerRegistration
           
protected  EntitySearchDialog searchDialog
           
protected  String searchDialogTitle
           
protected  com.google.gwt.event.shared.HandlerRegistration selectionChangedHandlerRegistration
           
 
Fields inherited from class org.broadleafcommerce.openadmin.client.presenter.entity.AbstractSubPresentable
abstractDynamicDataSource, associatedRecord, availableToTypes, disabled, display, prefix, readOnly
 
Constructor Summary
SimpleSearchListPresenter(SimpleSearchListPresenter template)
           
SimpleSearchListPresenter(String prefix, GridStructureDisplay display, EntitySearchDialog searchDialog, String searchDialogTitle)
           
SimpleSearchListPresenter(String prefix, GridStructureDisplay display, EntitySearchDialog searchDialog, String[] availableToTypes, String searchDialogTitle)
           
 
Method Summary
 void bind()
           
 com.google.gwt.event.shared.HandlerRegistration getAddClickedHandlerRegistration()
           
 com.google.gwt.event.shared.HandlerRegistration getEditCompletedHandlerRegistration()
           
 com.google.gwt.event.shared.HandlerRegistration getRecordDroppedHandlerRegistration()
           
 com.google.gwt.event.shared.HandlerRegistration getRemoveClickedHandlerRegistration()
           
 EntitySearchDialog getSearchDialog()
           
 String getSearchDialogTitle()
           
 com.google.gwt.event.shared.HandlerRegistration getSelectionChangedHandlerRegistration()
           
 void setDataSource(ListGridDataSource dataSource, String[] gridFields, Boolean[] editable)
           
 void setSearchDialog(EntitySearchDialog searchDialog)
           
 void setSearchDialogTitle(String searchDialogTitle)
           
 
Methods inherited from class org.broadleafcommerce.openadmin.client.presenter.entity.AbstractSubPresentable
disable, enable, getDisplay, getRelationshipValue, load, load, setReadOnly, setStartState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searchDialog

protected EntitySearchDialog searchDialog

searchDialogTitle

protected String searchDialogTitle

editCompletedHandlerRegistration

protected com.google.gwt.event.shared.HandlerRegistration editCompletedHandlerRegistration

addClickedHandlerRegistration

protected com.google.gwt.event.shared.HandlerRegistration addClickedHandlerRegistration

recordDroppedHandlerRegistration

protected com.google.gwt.event.shared.HandlerRegistration recordDroppedHandlerRegistration

selectionChangedHandlerRegistration

protected com.google.gwt.event.shared.HandlerRegistration selectionChangedHandlerRegistration

removeClickedHandlerRegistration

protected com.google.gwt.event.shared.HandlerRegistration removeClickedHandlerRegistration
Constructor Detail

SimpleSearchListPresenter

public SimpleSearchListPresenter(String prefix,
                                 GridStructureDisplay display,
                                 EntitySearchDialog searchDialog,
                                 String[] availableToTypes,
                                 String searchDialogTitle)

SimpleSearchListPresenter

public SimpleSearchListPresenter(String prefix,
                                 GridStructureDisplay display,
                                 EntitySearchDialog searchDialog,
                                 String searchDialogTitle)

SimpleSearchListPresenter

public SimpleSearchListPresenter(SimpleSearchListPresenter template)
Method Detail

setDataSource

public void setDataSource(ListGridDataSource dataSource,
                          String[] gridFields,
                          Boolean[] editable)
Specified by:
setDataSource in interface SubPresentable
Overrides:
setDataSource in class AbstractSubPresentable

bind

public void bind()

getAddClickedHandlerRegistration

public com.google.gwt.event.shared.HandlerRegistration getAddClickedHandlerRegistration()

getEditCompletedHandlerRegistration

public com.google.gwt.event.shared.HandlerRegistration getEditCompletedHandlerRegistration()

getRecordDroppedHandlerRegistration

public com.google.gwt.event.shared.HandlerRegistration getRecordDroppedHandlerRegistration()

getRemoveClickedHandlerRegistration

public com.google.gwt.event.shared.HandlerRegistration getRemoveClickedHandlerRegistration()

getSelectionChangedHandlerRegistration

public com.google.gwt.event.shared.HandlerRegistration getSelectionChangedHandlerRegistration()

getSearchDialog

public EntitySearchDialog getSearchDialog()

setSearchDialog

public void setSearchDialog(EntitySearchDialog searchDialog)

getSearchDialogTitle

public String getSearchDialogTitle()

setSearchDialogTitle

public void setSearchDialogTitle(String searchDialogTitle)


Copyright © 2013. All Rights Reserved.