public class BundleNavigationNodeContentMainComponent extends AbstractMainAreaBrowserComponent
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ADD_BUNDLE_LABEL |
protected static String |
ADD_BUNDLE_TOOLTIP |
protected static String |
ADD_PRODUCT_LABEL |
protected static String |
ADD_RELATED_ITEMS_BTG_SCLASS |
protected static String |
INFO_AREA_DIV_ID |
protected static String |
MARGIN_HELPER_SCLASS |
protected static String |
NAVIGATION_SECTION_CONTAINER_LEFT_SCLASS |
protected static String |
NAVIGATION_SECTION_CONTAINER_RIGHT_SCLASS |
protected static String |
NAVIGATION_TREE_PANEL_SCLASS |
protected static String |
NAVIGATION_TREE_SCLASS |
protected static String |
RELATED_ITEMS_CONTAINER_SCLASS |
protected static String |
RELATED_ITEMS_LIST_SCLASS |
protected static String |
ROOT_NAVIGATION_CNT_SCLASS |
protected static String |
ROOT_NAVIGATION_SUB_CNT_SCLASS |
protected static String |
SEARCH_PRODUCT_LABEL |
EMPTY_MESSAGE, lastResultType, listComponentModel, loginService, mainArea, resultModel, typeService, uiConfigurationServiceADV_QUERY_BTN_ACTIVE_IMG, ADV_QUERY_BTN_IMG, BROWSER_TOOLBAR_SCLASS, CLOSE_BTN_IMG, CONTENT_BROWSER_GB_SCLASS, CONTENT_BROWSER_STICKY_GB_SCLASS, DUPLICATE_BTN_IMG, initialized, MAIN_AREA_BL_SCLASS, MINIMIZE_BTN_IMG, SAVE_QUERY_BTN_IMG, SEARCH_MAGNIFIER_BTN_IMG, SPLIT_ACTIVE_BTN_IMG, SPLIT_INACTIVE_BTN_IMG| Constructor and Description |
|---|
BundleNavigationNodeContentMainComponent(AdvancedBrowserModel model,
AbstractContentBrowser contentBrowser) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
protected Button |
createAddBundleButton(CatalogVersionModel catalogVersion)
Creates button for adding a new bundle
|
protected Button |
createAddItemButton()
Creates button for creating new items inside selected node.
|
protected Component |
createAddItemButtonContainer(Button addItemButton)
Just a box around button so that it can be aligned to the bottom right corner of enclosing component.
|
protected void |
createBlankArea(String message,
Component parent)
Creates blank main area with given message.
|
protected Component |
createButtonContainer(Button button)
Just a box around button so that it can be aligned to the bottom right corner of enclosing component.
|
protected Div |
createMainArea() |
protected void |
createMessageArea(String title,
String message,
Component parent)
Creates message area with title and text
|
protected Component |
createProductActionButtonContainer(Button searchProductButton,
Button addProductButton)
Just a box around button so that it can be aligned to the bottom right corner of enclosing component.
|
protected Listbox |
createRelatedItemList(TypedObject naviNode)
Creates a content item list for right column of main area component.
|
protected Component |
createRelatedItemListContainer(Listbox relatedItemList)
Creates container which displays node content.
|
protected Button |
createSearchProductButton()
Creates button for opening a product search listview
|
protected Tree |
createTree(CatalogVersionModel catVer)
Creates tree with.
|
protected TreeController |
createTreeController(Component relatedItemListContainer,
BundleRelatedItemListController relatedItemListController,
Listbox listbox,
Button addItemButton,
Button searchProductButton)
Creates a controller for a tree component.
|
void |
fireAddRootNavigationNode()
Triggers adding root navigation node.
|
protected Set<ObjectType> |
getAllowedProductTypes()
Returns a
Set of product types (configured via spring bean 'allowedProductTypesList') that can be added to
a bundle component. |
protected UIItemView |
getCurrentItemView() |
BundleNavigationNodeBrowserModel |
getModel() |
protected BundleNavigationNodeController |
getNavigationNodeController()
Returns
BundleNavigationNodeController configured via spring. |
protected TreeitemRenderer |
getNavigationNodeRenderer(TreeController controller)
Returns
TreeitemRenderer configured via spring. |
protected BundleRelatedItemListController |
getRelatedItemListController()
Returns
ListboxController configured via spring. |
protected void |
initTreeComponent(CatalogVersionModel catalogVersion,
Component parent)
Initialize a whole tree component with its dependencies.
|
protected void |
refreshAddItemButton(Set<Treeitem> selectedItems,
Button addItemButton)
Refreshes a item button after selection was done in the tree.
|
protected void |
refreshRelatedItemList(Component parent,
Listbox listBox,
BundleRelatedItemListController controller)
Refreshes a content item list after selection was done in the tree.
|
protected void |
refreshSearchProductButton(Set<Treeitem> selectedItems,
Button searchProductButton)
Refreshes search product button after selection was done in the tree.
|
void |
removeSelectedNavigationNode()
Triggers remove selected navigation node.
|
protected void |
renderMainAreaComponent(Component parent)
Constructs and renders main browse area component for navigation node perspective.
|
protected void |
renderTreeComponent(Tree tree,
Component contentItemListContainer,
Component productActionButtonContainer,
Component addBundleActionButtonContainer,
Component parent)
Creates left (with tree) and right (with node content) container, also 'add item' button.
|
boolean |
update()
Updates this browser component i.e.
|
protected void |
updateMainAreaCompoenent(Component parent) |
protected void |
updateTreeComponent(CatalogVersionModel catalogVersion,
Component parent) |
protected void |
updateTreeModel()
Updates the tree setting actual model
|
createTableController, desktopRemoved, detach, getLoginService, getResultModel, getRootType, getTableModel, getTypeService, getUIConfigurationService, initialize, loadListModel, resetSelection, resize, setActiveItem, setParent, setTableModel, updateActiveItems, updateItem, updateResult, updateSelectedItemsgetContentBrowser, setModel, updateItemprotected static final String RELATED_ITEMS_LIST_SCLASS
protected static final String NAVIGATION_TREE_SCLASS
protected static final String NAVIGATION_TREE_PANEL_SCLASS
protected static final String ROOT_NAVIGATION_CNT_SCLASS
protected static final String ROOT_NAVIGATION_SUB_CNT_SCLASS
protected static final String NAVIGATION_SECTION_CONTAINER_LEFT_SCLASS
protected static final String NAVIGATION_SECTION_CONTAINER_RIGHT_SCLASS
protected static final String RELATED_ITEMS_CONTAINER_SCLASS
protected static final String ADD_RELATED_ITEMS_BTG_SCLASS
protected static final String MARGIN_HELPER_SCLASS
protected static final String ADD_PRODUCT_LABEL
protected static final String ADD_BUNDLE_LABEL
protected static final String ADD_BUNDLE_TOOLTIP
protected static final String SEARCH_PRODUCT_LABEL
protected static final String INFO_AREA_DIV_ID
public BundleNavigationNodeContentMainComponent(AdvancedBrowserModel model, AbstractContentBrowser contentBrowser)
protected void initTreeComponent(CatalogVersionModel catalogVersion, Component parent)
catalogVersion - current catalog versionparent - a parent for componentprotected void updateTreeComponent(CatalogVersionModel catalogVersion, Component parent)
protected void renderTreeComponent(Tree tree, Component contentItemListContainer, Component productActionButtonContainer, Component addBundleActionButtonContainer, Component parent)
tree - tree componentcontentItemListContainer - node content parentproductActionButtonContainer - parent - add page button parentprotected Div createMainArea()
createMainArea in class AbstractMainAreaBrowserComponentprotected void renderMainAreaComponent(Component parent)
parent - a component parentprotected void updateMainAreaCompoenent(Component parent)
public boolean update()
AbstractBrowserComponentupdate in interface CockpitComponentupdate in class AbstractBrowserComponenttrue if this browser was successfully updated, false otherwisepublic void fireAddRootNavigationNode()
public void removeSelectedNavigationNode()
public BundleNavigationNodeBrowserModel getModel()
getModel in interface BrowserComponentgetModel in class AbstractMainAreaBrowserComponentprotected UIItemView getCurrentItemView()
getCurrentItemView in class AbstractMainAreaBrowserComponentprotected void cleanup()
cleanup in class AbstractMainAreaBrowserComponentprotected TreeController createTreeController(Component relatedItemListContainer, BundleRelatedItemListController relatedItemListController, Listbox listbox, Button addItemButton, Button searchProductButton)
protected Component createAddItemButtonContainer(Button addItemButton)
addItemButton - add page buttonprotected Component createButtonContainer(Button button)
button - add page buttonprotected Component createProductActionButtonContainer(Button searchProductButton,
Button addProductButton)
searchProductButton - add page buttonaddProductButton - add page buttonprotected Listbox createRelatedItemList(TypedObject naviNode)
protected Button createAddItemButton()
protected Button createSearchProductButton()
protected Button createAddBundleButton(CatalogVersionModel catalogVersion)
protected Component createRelatedItemListContainer(Listbox relatedItemList)
relatedItemList - content item listprotected void updateTreeModel()
protected Tree createTree(CatalogVersionModel catVer)
protected void createBlankArea(String message, Component parent)
message - given messageparent - a parent componentprotected void createMessageArea(String title, String message, Component parent)
title - title textmessage - given messageparent - a parent componentprotected void refreshAddItemButton(Set<Treeitem> selectedItems, Button addItemButton)
selectedItems - currently selected itemsaddItemButton - add item buttonprotected void refreshSearchProductButton(Set<Treeitem> selectedItems, Button searchProductButton)
selectedItems - currently selected itemssearchProductButton - add item buttonprotected void refreshRelatedItemList(Component parent,
Listbox listBox,
BundleRelatedItemListController controller)
parent - a parent componentlistBox - a content item listcontroller - a content item list controllerprotected TreeitemRenderer getNavigationNodeRenderer(TreeController controller)
TreeitemRenderer configured via spring.
protected BundleRelatedItemListController getRelatedItemListController()
ListboxController configured via spring.
protected BundleNavigationNodeController getNavigationNodeController()
BundleNavigationNodeController configured via spring.
protected Set<ObjectType> getAllowedProductTypes()
Set of product types (configured via spring bean 'allowedProductTypesList') that can be added to
a bundle component.
Copyright © 2017 SAP SE. All Rights Reserved.