public class BundleNavigationNodeRenderer extends DefaultNodeWithActionsRenderer
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ADD_AS_CHILD_TOOLTIP |
protected static String |
ADD_AS_SIBLING_TOOLTIP |
protected static String |
ADD_RELATED_ITEMS_BTG_SCLASS |
protected static String |
ARCHIVE_NN_TOOLTIP |
protected static String |
CLONE_NN_TOOLTIP |
protected static String |
EDIT_NN_TOOLTIP |
protected static String |
LIST_AVAILABILITY_RULES |
protected static String |
LIST_PRICE_RULES |
protected static String |
NAVIGATION_NODE_TREE_ROW_SCLASS |
protected static String |
REMOVE_NN_TOOLTIP |
protected static String |
RESTORE_NN_TOOLTIP |
protected static String |
SYNCHRONIZATION_STATUS_NA |
protected static String |
SYNCHRONIZATION_STATUS_NOT_OK |
protected static String |
SYNCHRONIZATION_STATUS_OK |
protected static String |
SYNCHRONIZATION_TOOLTIP_NA |
protected static String |
SYNCHRONIZATION_TOOLTIP_NOT_OK |
protected static String |
SYNCHRONIZATION_TOOLTIP_OK |
| Constructor and Description |
|---|
BundleNavigationNodeRenderer() |
BundleNavigationNodeRenderer(EventListener dropListener) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addActions(Treecell actionsCell,
Object data)
Adds actions buttons for each row.
|
protected Toolbarbutton |
addChildTemplateAction(BundleTemplateModel bundleTemplateModel,
boolean testIDsEnabled,
TypedObject currentNode) |
protected Toolbarbutton |
addCloneTemplateAction(BundleTemplateModel bundleTemplateModel,
boolean testIDsEnabled) |
protected Toolbarbutton |
addRestoreBundleAction(boolean testIDsEnabled) |
protected void |
addRuleEventAction(BundleRuleType bundleRuleType,
TypedObject bundleTemplate,
String propertyQualifier) |
protected Toolbarbutton |
addSiblingTemplateAction(BundleTemplateModel bundleTemplateModel,
boolean testIDsEnabled,
TypedObject currentNode) |
protected BundleTemplateModel |
cloneBundle(BundleTemplateModel bundleToBeCloned) |
protected void |
cloneChildBundleTemplates(BundleTemplateModel bundleToBeCloned,
BundleTemplateModel clonedBundleTemplateModel) |
protected void |
cloneDependentBundleTemplates(BundleTemplateModel bundleToBeCloned,
BundleTemplateModel clonedBundleTemplateModel) |
protected void |
cloneRequiredBundleTemplates(BundleTemplateModel bundleToBeCloned,
BundleTemplateModel clonedBundleTemplateModel) |
protected SynchronizationService.SyncContext |
computeSyncContext(TypedObject currentNode)
Computes sync cotext for given node.
|
protected String |
computeSynchImageUrl(TypedObject currentNode)
Computes correct synchronization image url for given node
|
protected Toolbarbutton |
createToolbarButton(CatalogVersionModel catalogVersion,
BundleTemplateModel template,
String image,
String tooltip)
Creates button for adding a new bundle
|
protected Toolbarbutton |
disablePrductRulesAction(TypedObject bundleTemplate,
boolean testIDsEnabled) |
protected Toolbarbutton |
editBundleAction(boolean testIDsEnabled,
TypedObject currentNode) |
KeyGenerator |
getCloneIdGenerator() |
TreeController |
getController() |
protected LabelService |
getLabelService() |
BundleNavigationNodeBrowserModel |
getModel(BrowserModel browserModel) |
protected SynchronizationService |
getSynchronizationService() |
protected String |
getSyncImageUrl(SynchronizationService.SyncContext syncContext) |
protected String |
getSyncTooltip(SynchronizationService.SyncContext syncContext) |
SystemService |
getSystemService() |
protected TypeService |
getTypeService() |
protected boolean |
isActiveCatalog(SynchronizationService.SyncContext nodeSyncCtx) |
protected void |
prepareActionsNode(Object node,
Treerow treeRow) |
protected void |
prepareLabelCell(TypedObject typedObject,
Treerow treeRow) |
protected Toolbarbutton |
productPriceAction(TypedObject bundleTemplate,
boolean testIDsEnabled) |
protected void |
registerDefaultOnDoubleClickListeners(Treerow treeRow) |
protected Toolbarbutton |
removeBundleAction(BundleTemplateModel bundleTemplateModel,
boolean testIDsEnabled) |
void |
render(Treeitem item,
Object data) |
Treerow |
renderRow(Treeitem treeItem,
Object node) |
protected void |
sendExtendedDropEvent(DropEvent dropEvent,
boolean addAsChild,
boolean append) |
void |
setCloneIdGenerator(KeyGenerator cloneIdGenerator) |
void |
setController(TreeController controller) |
void |
setLabelService(LabelService labelService) |
protected void |
updateLabelIfArchived(BundleTemplateModel bundleTemplateModel,
Label label) |
protected static final String SYNCHRONIZATION_STATUS_OK
protected static final String SYNCHRONIZATION_TOOLTIP_OK
protected static final String SYNCHRONIZATION_STATUS_NOT_OK
protected static final String SYNCHRONIZATION_TOOLTIP_NOT_OK
protected static final String SYNCHRONIZATION_STATUS_NA
protected static final String SYNCHRONIZATION_TOOLTIP_NA
protected static final String ADD_AS_SIBLING_TOOLTIP
protected static final String ADD_AS_CHILD_TOOLTIP
protected static final String REMOVE_NN_TOOLTIP
protected static final String ARCHIVE_NN_TOOLTIP
protected static final String RESTORE_NN_TOOLTIP
protected static final String CLONE_NN_TOOLTIP
protected static final String EDIT_NN_TOOLTIP
protected static final String LIST_PRICE_RULES
protected static final String LIST_AVAILABILITY_RULES
protected static final String NAVIGATION_NODE_TREE_ROW_SCLASS
protected static final String ADD_RELATED_ITEMS_BTG_SCLASS
public BundleNavigationNodeRenderer()
public BundleNavigationNodeRenderer(EventListener dropListener)
public void render(Treeitem item,
Object data)
throws Exception
render in class AbstractNodeRendererExceptionpublic Treerow renderRow(Treeitem treeItem,
Object node)
renderRow in class DefaultNodeWithActionsRendererprotected void prepareActionsNode(Object node, Treerow treeRow)
protected void prepareLabelCell(TypedObject typedObject, Treerow treeRow)
protected boolean isActiveCatalog(SynchronizationService.SyncContext nodeSyncCtx)
protected void updateLabelIfArchived(BundleTemplateModel bundleTemplateModel, Label label)
protected Toolbarbutton createToolbarButton(CatalogVersionModel catalogVersion, BundleTemplateModel template, String image, String tooltip)
protected void addActions(Treecell actionsCell,
Object data)
DefaultNodeWithActionsRendererDeleteListener if you wish to add 'delete'
button.addActions in class DefaultNodeWithActionsRendereractionsCell - attach your buttons to this componentprotected Toolbarbutton addSiblingTemplateAction(BundleTemplateModel bundleTemplateModel, boolean testIDsEnabled, TypedObject currentNode)
protected Toolbarbutton addChildTemplateAction(BundleTemplateModel bundleTemplateModel, boolean testIDsEnabled, TypedObject currentNode)
protected Toolbarbutton addCloneTemplateAction(BundleTemplateModel bundleTemplateModel, boolean testIDsEnabled)
protected Toolbarbutton productPriceAction(TypedObject bundleTemplate, boolean testIDsEnabled)
protected Toolbarbutton disablePrductRulesAction(TypedObject bundleTemplate, boolean testIDsEnabled)
protected Toolbarbutton editBundleAction(boolean testIDsEnabled,
TypedObject currentNode)
protected Toolbarbutton removeBundleAction(BundleTemplateModel bundleTemplateModel, boolean testIDsEnabled)
protected Toolbarbutton addRestoreBundleAction(boolean testIDsEnabled)
protected void addRuleEventAction(BundleRuleType bundleRuleType, TypedObject bundleTemplate, String propertyQualifier)
public BundleNavigationNodeBrowserModel getModel(BrowserModel browserModel)
protected BundleTemplateModel cloneBundle(BundleTemplateModel bundleToBeCloned)
protected void cloneChildBundleTemplates(BundleTemplateModel bundleToBeCloned, BundleTemplateModel clonedBundleTemplateModel)
protected void cloneRequiredBundleTemplates(BundleTemplateModel bundleToBeCloned, BundleTemplateModel clonedBundleTemplateModel)
protected void cloneDependentBundleTemplates(BundleTemplateModel bundleToBeCloned, BundleTemplateModel clonedBundleTemplateModel)
protected String computeSynchImageUrl(TypedObject currentNode)
currentNode - given nodeprotected String getSyncImageUrl(SynchronizationService.SyncContext syncContext)
protected String getSyncTooltip(SynchronizationService.SyncContext syncContext)
protected SynchronizationService.SyncContext computeSyncContext(TypedObject currentNode)
currentNode - given nodeprotected void sendExtendedDropEvent(DropEvent dropEvent,
boolean addAsChild,
boolean append)
protected void registerDefaultOnDoubleClickListeners(Treerow treeRow)
registerDefaultOnDoubleClickListeners in class AbstractNodeRendererpublic void setLabelService(LabelService labelService)
protected LabelService getLabelService()
public KeyGenerator getCloneIdGenerator()
public void setCloneIdGenerator(KeyGenerator cloneIdGenerator)
public SystemService getSystemService()
protected SynchronizationService getSynchronizationService()
protected TypeService getTypeService()
public TreeController getController()
public void setController(TreeController controller)
Copyright © 2017 SAP SE. All Rights Reserved.