public class OrderItemPresenter extends DynamicFormPresenter implements SubPresentable
| Modifier and Type | Field and Description |
|---|---|
protected AbstractDynamicDataSource |
abstractDynamicDataSource |
protected com.smartgwt.client.data.Record |
associatedRecord |
protected String[] |
availableToTypes |
protected Boolean |
disabled |
protected OrderItemDisplay |
display |
protected Boolean |
readOnly |
itemChangedHandlerRegistration, refreshButtonHandlerRegistration, saveButtonHandlerRegistration| Constructor and Description |
|---|
OrderItemPresenter(OrderItemDisplay display,
String[] availableToTypes) |
| Modifier and Type | Method and Description |
|---|---|
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() |
enableSaveButton, getItemChangedHandlerRegistration, getRefreshButtonHandlerRegistration, getSaveButtonHandlerRegistrationprotected OrderItemDisplay display
protected com.smartgwt.client.data.Record associatedRecord
protected AbstractDynamicDataSource abstractDynamicDataSource
protected Boolean disabled
protected Boolean readOnly
protected String[] availableToTypes
public OrderItemPresenter(OrderItemDisplay display, String[] availableToTypes)
public com.smartgwt.client.widgets.Canvas getDisplay()
getDisplay in interface SubPresentablepublic void setDataSource(ListGridDataSource dataSource, String[] gridFields, Boolean[] editable)
setDataSource in interface SubPresentablepublic void setExpansionDataSource(ListGridDataSource dataSource, String[] gridFields, Boolean[] editable)
public void setStartState()
setStartState in interface SubPresentablesetStartState in class DynamicFormPresenterpublic void enable()
enable in interface SubPresentableenable in class DynamicFormPresenterpublic void disable()
disable in interface SubPresentabledisable in class DynamicFormPresenterpublic void setReadOnly(Boolean readOnly)
setReadOnly in interface SubPresentableprotected void updatePresenterReadOnlyStatus()
public boolean load(com.smartgwt.client.data.Record associatedRecord,
AbstractDynamicDataSource associatedDataSource)
load in interface SubPresentablepublic boolean load(com.smartgwt.client.data.Record associatedRecord,
AbstractDynamicDataSource abstractDynamicDataSource,
com.smartgwt.client.data.DSCallback cb)
load in interface SubPresentablepublic void bind()
bind in interface SubPresentablebind in class DynamicFormPresenterCopyright © 2014. All Rights Reserved.