org.broadleafcommerce.admin.client.presenter.order
Class OrderItemPresenter

java.lang.Object
  extended by org.broadleafcommerce.openadmin.client.presenter.entity.DynamicFormPresenter
      extended by org.broadleafcommerce.admin.client.presenter.order.OrderItemPresenter
All Implemented Interfaces:
SubPresentable

public class OrderItemPresenter
extends DynamicFormPresenter
implements SubPresentable

Author:
jfischer

Field Summary
protected  AbstractDynamicDataSource abstractDynamicDataSource
           
protected  com.smartgwt.client.data.Record associatedRecord
           
protected  String[] availableToTypes
           
protected  Boolean disabled
           
protected  OrderItemDisplay display
           
protected  Boolean readOnly
           
 
Fields inherited from class org.broadleafcommerce.openadmin.client.presenter.entity.DynamicFormPresenter
itemChangedHandlerRegistration, refreshButtonHandlerRegistration, saveButtonHandlerRegistration
 
Constructor Summary
OrderItemPresenter(OrderItemDisplay display, String[] availableToTypes)
           
 
Method Summary
 void bind()
           
 void disable()
           
 void enable()
           
 com.smartgwt.client.widgets.Canvas getDisplay()
           
 boolean load(com.smartgwt.client.data.Record associatedRecord, AbstractDynamicDataSource associatedDataSource)
           
 boolean load(com.smartgwt.client.data.Record associatedRecord, AbstractDynamicDataSource abstractDynamicDataSource, com.smartgwt.client.data.DSCallback cb)
           
 void setDataSource(ListGridDataSource dataSource, String[] gridFields, Boolean[] editable)
           
 void setExpansionDataSource(ListGridDataSource dataSource, String[] gridFields, Boolean[] editable)
           
 void setReadOnly(Boolean readOnly)
           
 void setStartState()
           
protected  void updatePresenterReadOnlyStatus()
           
 
Methods inherited from class org.broadleafcommerce.openadmin.client.presenter.entity.DynamicFormPresenter
enableSaveButton, getItemChangedHandlerRegistration, getRefreshButtonHandlerRegistration, getSaveButtonHandlerRegistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

protected OrderItemDisplay display

associatedRecord

protected com.smartgwt.client.data.Record associatedRecord

abstractDynamicDataSource

protected AbstractDynamicDataSource abstractDynamicDataSource

disabled

protected Boolean disabled

readOnly

protected Boolean readOnly

availableToTypes

protected String[] availableToTypes
Constructor Detail

OrderItemPresenter

public OrderItemPresenter(OrderItemDisplay display,
                          String[] availableToTypes)
Method Detail

getDisplay

public com.smartgwt.client.widgets.Canvas getDisplay()
Specified by:
getDisplay in interface SubPresentable

setDataSource

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

setExpansionDataSource

public void setExpansionDataSource(ListGridDataSource dataSource,
                                   String[] gridFields,
                                   Boolean[] editable)

setStartState

public void setStartState()
Specified by:
setStartState in interface SubPresentable
Overrides:
setStartState in class DynamicFormPresenter

enable

public void enable()
Specified by:
enable in interface SubPresentable
Overrides:
enable in class DynamicFormPresenter

disable

public void disable()
Specified by:
disable in interface SubPresentable
Overrides:
disable in class DynamicFormPresenter

setReadOnly

public void setReadOnly(Boolean readOnly)
Specified by:
setReadOnly in interface SubPresentable

updatePresenterReadOnlyStatus

protected void updatePresenterReadOnlyStatus()

load

public boolean load(com.smartgwt.client.data.Record associatedRecord,
                    AbstractDynamicDataSource associatedDataSource)
Specified by:
load in interface SubPresentable

load

public boolean load(com.smartgwt.client.data.Record associatedRecord,
                    AbstractDynamicDataSource abstractDynamicDataSource,
                    com.smartgwt.client.data.DSCallback cb)
Specified by:
load in interface SubPresentable

bind

public void bind()
Specified by:
bind in interface SubPresentable
Overrides:
bind in class DynamicFormPresenter


Copyright © 2013. All Rights Reserved.