org.broadleafcommerce.openadmin.client.presenter.entity
Class AbstractEntityPresenter
java.lang.Object
org.broadleafcommerce.openadmin.client.presenter.entity.AbstractEntityPresenter
- All Implemented Interfaces:
- EntityPresenter
- Direct Known Subclasses:
- DynamicColumnTreePresenter, DynamicEntityPresenter, DynamicEntityPresenterWithoutForm
public abstract class AbstractEntityPresenter
- extends Object
- implements EntityPresenter
- Author:
- jfischer
|
Method Summary |
String |
getDefaultItemId()
Returns the default item that this presenter should attempt to show on initial load. |
com.google.gwt.event.shared.HandlerManager |
getEventBus()
|
void |
setDefaultItemId(String defaultItemId)
For Entity presenters that support loading a default item, setting this value prior
to calling setup will result in the passed in item being displayed. |
void |
setEventBus(com.google.gwt.event.shared.HandlerManager eventBus)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventBus
protected com.google.gwt.event.shared.HandlerManager eventBus
defaultItemId
protected String defaultItemId
AbstractEntityPresenter
public AbstractEntityPresenter()
getEventBus
public com.google.gwt.event.shared.HandlerManager getEventBus()
- Specified by:
getEventBus in interface EntityPresenter
setEventBus
public void setEventBus(com.google.gwt.event.shared.HandlerManager eventBus)
- Specified by:
setEventBus in interface EntityPresenter
getDefaultItemId
public String getDefaultItemId()
- Description copied from interface:
EntityPresenter
- Returns the default item that this presenter should attempt to show on initial load.
- Specified by:
getDefaultItemId in interface EntityPresenter
- Returns:
setDefaultItemId
public void setDefaultItemId(String defaultItemId)
- Description copied from interface:
EntityPresenter
- For Entity presenters that support loading a default item, setting this value prior
to calling setup will result in the passed in item being displayed.
Supported by DynamicEntityPresenter and the OOB admin configuration with the
parameter #itemId=xx
- Specified by:
setDefaultItemId in interface EntityPresenter
Copyright © 2013. All Rights Reserved.