public abstract class AbstractSubPresentable extends Object 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 GridStructureDisplay |
display |
protected String |
prefix |
protected boolean |
readOnly |
Constructor and Description |
---|
AbstractSubPresentable(GridStructureDisplay display)
Deprecated.
use the constructor that specifies the prefix value
|
AbstractSubPresentable(GridStructureDisplay display,
String[] availableToTypes)
Deprecated.
use the constructor that specifies the prefix value
|
AbstractSubPresentable(String prefix,
GridStructureDisplay display)
Create new instance.
|
AbstractSubPresentable(String prefix,
GridStructureDisplay display,
String[] availableToTypes)
Create new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
enable() |
com.smartgwt.client.widgets.Canvas |
getDisplay() |
String |
getRelationshipValue(com.smartgwt.client.data.Record associatedRecord,
AbstractDynamicDataSource abstractDynamicDataSource) |
boolean |
load(com.smartgwt.client.data.Record associatedRecord,
AbstractDynamicDataSource abstractDynamicDataSource) |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bind
protected Boolean disabled
protected GridStructureDisplay display
protected String[] availableToTypes
protected com.smartgwt.client.data.Record associatedRecord
protected AbstractDynamicDataSource abstractDynamicDataSource
protected boolean readOnly
protected String prefix
@Deprecated public AbstractSubPresentable(GridStructureDisplay display, String[] availableToTypes)
display
- The display component that visually represents this SubPresentable.availableToTypes
- The display component that visually represents this SubPresentable.@Deprecated public AbstractSubPresentable(GridStructureDisplay display)
display
- The display component that visually represents this SubPresentable.public AbstractSubPresentable(String prefix, GridStructureDisplay 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 SubPresentable.availableToTypes
- The display component that visually represents this SubPresentable.public AbstractSubPresentable(String prefix, GridStructureDisplay 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 SubPresentable.public void setStartState()
setStartState
in interface SubPresentable
public void enable()
enable
in interface SubPresentable
public void disable()
disable
in interface SubPresentable
public boolean load(com.smartgwt.client.data.Record associatedRecord, AbstractDynamicDataSource abstractDynamicDataSource)
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 setReadOnly(Boolean readOnly)
setReadOnly
in interface SubPresentable
public void setDataSource(ListGridDataSource dataSource, String[] gridFields, Boolean[] editable)
setDataSource
in interface SubPresentable
public com.smartgwt.client.widgets.Canvas getDisplay()
getDisplay
in interface SubPresentable
Copyright © 2013. All rights reserved.