org.broadleafcommerce.openadmin.client.presenter.entity
Class AbstractSubPresentable
java.lang.Object
org.broadleafcommerce.openadmin.client.presenter.entity.AbstractSubPresentable
- All Implemented Interfaces:
- SubPresentable
- Direct Known Subclasses:
- CreateBasedListStructurePresenter, EditableAdornedTargetListPresenter, MapStructurePresenter, SimpleMapStructurePresenter, SimpleSearchListPresenter
public abstract class AbstractSubPresentable
- extends Object
- implements SubPresentable
- Author:
- jfischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.broadleafcommerce.openadmin.client.presenter.entity.SubPresentable |
bind |
disabled
protected Boolean disabled
display
protected GridStructureDisplay display
availableToTypes
protected String[] availableToTypes
associatedRecord
protected com.smartgwt.client.data.Record associatedRecord
abstractDynamicDataSource
protected AbstractDynamicDataSource abstractDynamicDataSource
readOnly
protected boolean readOnly
prefix
protected String prefix
AbstractSubPresentable
@Deprecated
public AbstractSubPresentable(GridStructureDisplay display,
String[] availableToTypes)
- Deprecated. use the constructor that specifies the prefix value
- Create a new instance.
- Parameters:
display - The display component that visually represents this SubPresentable.availableToTypes - The display component that visually represents this SubPresentable.
AbstractSubPresentable
@Deprecated
public AbstractSubPresentable(GridStructureDisplay display)
- Deprecated. use the constructor that specifies the prefix value
- Create a new instance.
- Parameters:
display - The display component that visually represents this SubPresentable.
AbstractSubPresentable
public AbstractSubPresentable(String prefix,
GridStructureDisplay display,
String[] availableToTypes)
- Create new instance.
- Parameters:
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.
AbstractSubPresentable
public AbstractSubPresentable(String prefix,
GridStructureDisplay display)
- Create new instance.
- Parameters:
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.
setStartState
public void setStartState()
- Specified by:
setStartState in interface SubPresentable
enable
public void enable()
- Specified by:
enable in interface SubPresentable
disable
public void disable()
- Specified by:
disable in interface SubPresentable
load
public boolean load(com.smartgwt.client.data.Record associatedRecord,
AbstractDynamicDataSource abstractDynamicDataSource)
- 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
getRelationshipValue
public String getRelationshipValue(com.smartgwt.client.data.Record associatedRecord,
AbstractDynamicDataSource abstractDynamicDataSource)
setReadOnly
public void setReadOnly(Boolean readOnly)
- Specified by:
setReadOnly in interface SubPresentable
setDataSource
public void setDataSource(ListGridDataSource dataSource,
String[] gridFields,
Boolean[] editable)
- Specified by:
setDataSource in interface SubPresentable
getDisplay
public com.smartgwt.client.widgets.Canvas getDisplay()
- Specified by:
getDisplay in interface SubPresentable
Copyright © 2013. All Rights Reserved.