public class SubPresenter 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 |
canEdit |
protected Boolean |
disabled |
protected SubItemDisplay |
display |
protected String |
prefix |
protected Boolean |
readOnly |
protected com.google.gwt.event.shared.HandlerRegistration |
removeButtonHandlerRegistration |
protected com.google.gwt.event.shared.HandlerRegistration |
selectionChangedHandlerRegistration |
protected Boolean |
showDisabledState |
protected Boolean |
showId |
itemChangedHandlerRegistration, refreshButtonHandlerRegistration, saveButtonHandlerRegistration
Constructor and Description |
---|
SubPresenter(String prefix,
SubItemDisplay display)
Create a new instance.
|
SubPresenter(String prefix,
SubItemDisplay display,
Boolean showDisabledState,
Boolean canEdit,
Boolean showId)
Create a new instance.
|
SubPresenter(String prefix,
SubItemDisplay display,
String[] availableToTypes)
Create a new instance.
|
SubPresenter(String prefix,
SubItemDisplay display,
String[] availableToTypes,
Boolean showDisabledState,
Boolean canEdit,
Boolean showId)
Create a new instance.
|
SubPresenter(SubItemDisplay display)
Deprecated.
use the constructor that specifies the prefix value
|
SubPresenter(SubItemDisplay display,
Boolean showDisabledState,
Boolean canEdit,
Boolean showId)
Deprecated.
use the constructor that specifies the prefix value
|
SubPresenter(SubItemDisplay display,
String[] availableToTypes)
Deprecated.
use the constructor that specifies the prefix value
|
SubPresenter(SubItemDisplay display,
String[] availableToTypes,
Boolean showDisabledState,
Boolean canEdit,
Boolean showId)
Deprecated.
use the constructor that specifies the prefix value
|
Modifier and Type | Method and Description |
---|---|
void |
bind() |
void |
disable() |
void |
enable() |
com.smartgwt.client.widgets.Canvas |
getDisplay() |
String |
getRelationshipValue(com.smartgwt.client.data.Record associatedRecord,
AbstractDynamicDataSource abstractDynamicDataSource) |
com.google.gwt.event.shared.HandlerRegistration |
getRemoveButtonHandlerRegistration() |
com.google.gwt.event.shared.HandlerRegistration |
getSelectionChangedHandlerRegistration() |
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 |
setReadOnly(Boolean readOnly) |
void |
setStartState() |
protected void |
updatePresenterReadOnlyStatus() |
enableSaveButton, getItemChangedHandlerRegistration, getRefreshButtonHandlerRegistration, getSaveButtonHandlerRegistration
protected SubItemDisplay display
protected com.google.gwt.event.shared.HandlerRegistration selectionChangedHandlerRegistration
protected com.google.gwt.event.shared.HandlerRegistration removeButtonHandlerRegistration
protected com.smartgwt.client.data.Record associatedRecord
protected AbstractDynamicDataSource abstractDynamicDataSource
protected Boolean disabled
protected Boolean readOnly
protected String prefix
protected Boolean showDisabledState
protected Boolean canEdit
protected Boolean showId
protected String[] availableToTypes
@Deprecated public SubPresenter(SubItemDisplay display)
display
- The display component that visually represents this SubPresenter. Usually an instance of SubItemView.@Deprecated public SubPresenter(SubItemDisplay display, String[] availableToTypes)
display
- The display component that visually represents this SubPresenter. Usually an instance of SubItemView.availableToTypes
- Comma delimited list of polymorphic types that have access to this property.@Deprecated public SubPresenter(SubItemDisplay display, Boolean showDisabledState, Boolean canEdit, Boolean showId)
display
- The display component that visually represents this SubPresenter. Usually an instance of SubItemView.showDisabledState
- Whether or not to dim the item when it is disabled.canEdit
- Whether or not the SubPresenter instance can be edited.showId
- Whether or not to show the id for a SubPresenter selected records in its form@Deprecated public SubPresenter(SubItemDisplay display, String[] availableToTypes, Boolean showDisabledState, Boolean canEdit, Boolean showId)
display
- The display component that visually represents this SubPresenter. Usually an instance of SubItemView.availableToTypes
- Comma delimited list of polymorphic types that have access to this property.showDisabledState
- Whether or not to dim the item when it is disabled.canEdit
- Whether or not the SubPresenter instance can be edited.showId
- Whether or not to show the id for a SubPresenter selected records in its formpublic SubPresenter(String prefix, SubItemDisplay display)
prefix
- The list of "." delimited properties from the parent record that lead to this property. For example, if this SubPresenter referenced a property on Sku and the owning record was a Product, the prefix would likely be defaultSku. Can be null or an empty String for properties directly on the parent record.display
- The display component that visually represents this SubPresenter. Usually an instance of SubItemView.public SubPresenter(String prefix, SubItemDisplay display, String[] availableToTypes)
prefix
- The list of "." delimited properties from the parent record that lead to this property. For example, if this SubPresenter referenced a property on Sku and the owning record was a Product, the prefix would likely be defaultSku. Can be null or an empty String for properties directly on the parent record.display
- The display component that visually represents this SubPresenter. Usually an instance of SubItemView.availableToTypes
- Comma delimited list of polymorphic types that have access to this property.public SubPresenter(String prefix, SubItemDisplay display, Boolean showDisabledState, Boolean canEdit, Boolean showId)
prefix
- The list of "." delimited properties from the parent record that lead to this property. For example, if this SubPresenter referenced a property on Sku and the owning record was a Product, the prefix would likely be defaultSku. Can be null or an empty String for properties directly on the parent record.display
- The display component that visually represents this SubPresenter. Usually an instance of SubItemView.showDisabledState
- Whether or not to dim the item when it is disabled.canEdit
- Whether or not the SubPresenter instance can be edited.showId
- Whether or not to show the id for a SubPresenter selected records in its formpublic SubPresenter(String prefix, SubItemDisplay display, String[] availableToTypes, Boolean showDisabledState, Boolean canEdit, Boolean showId)
prefix
- The list of "." delimited properties from the parent record that lead to this property. For example, if this SubPresenter referenced a property on Sku and the owning record was a Product, the prefix would likely be defaultSku. Can be null or an empty String for properties directly on the parent record.display
- The display component that visually represents this SubPresenter. Usually an instance of SubItemView.availableToTypes
- Comma delimited list of polymorphic types that have access to this property.showDisabledState
- Whether or not to dim the item when it is disabled.canEdit
- Whether or not the SubPresenter instance can be edited.showId
- Whether or not to show the id for a SubPresenter selected records in its formpublic com.smartgwt.client.widgets.Canvas getDisplay()
getDisplay
in interface SubPresentable
public void setDataSource(ListGridDataSource dataSource, String[] gridFields, Boolean[] editable)
setDataSource
in interface SubPresentable
public void setStartState()
setStartState
in interface SubPresentable
setStartState
in class DynamicFormPresenter
public void enable()
enable
in interface SubPresentable
enable
in class DynamicFormPresenter
public void disable()
disable
in interface SubPresentable
disable
in class DynamicFormPresenter
public void setReadOnly(Boolean readOnly)
setReadOnly
in interface SubPresentable
protected void updatePresenterReadOnlyStatus()
public boolean load(com.smartgwt.client.data.Record associatedRecord, AbstractDynamicDataSource associatedDataSource)
load
in interface SubPresentable
public boolean load(com.smartgwt.client.data.Record associatedRecord, AbstractDynamicDataSource abstractDynamicDataSource, com.smartgwt.client.data.DSCallback cb)
load
in interface SubPresentable
public String getRelationshipValue(com.smartgwt.client.data.Record associatedRecord, AbstractDynamicDataSource abstractDynamicDataSource)
public void bind()
bind
in interface SubPresentable
bind
in class DynamicFormPresenter
public com.google.gwt.event.shared.HandlerRegistration getSelectionChangedHandlerRegistration()
public com.google.gwt.event.shared.HandlerRegistration getRemoveButtonHandlerRegistration()
Copyright © 2013. All rights reserved.