public class NavigationNodeContentMainComponent extends AbstractMainAreaBrowserComponent
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ADD_ITEM_LABEL |
protected static java.lang.String |
ADD_RELATED_ITEMS_BTG_SCLASS |
protected static java.lang.String |
INFO_AREA_DIV_ID |
protected static java.lang.String |
MARGIN_HELPER_SCLASS |
protected static java.lang.String |
NAVIGATION_SECTION_CONTAINER_LEFT_SCLASS |
protected static java.lang.String |
NAVIGATION_SECTION_CONTAINER_RIGHT_SCLASS |
protected static java.lang.String |
NAVIGATION_TREE_PANEL_SCLASS |
protected static java.lang.String |
NAVIGATION_TREE_SCLASS |
protected static java.lang.String |
RELATED_ITEMS_CONTAINER_SCLASS |
protected static java.lang.String |
RELATED_ITEMS_LIST_SCLASS |
protected static java.lang.String |
ROOT_NAVIGATION_CNT_SCLASS |
protected static java.lang.String |
ROOT_NAVIGATION_SUB_CNT_SCLASS |
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 |
|---|
NavigationNodeContentMainComponent(AdvancedBrowserModel model,
AbstractContentBrowser contentBrowser) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
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(java.lang.String message,
Component parent)
Creates blank main area with given message.
|
protected Div |
createMainArea() |
protected Listbox |
createRelatedItemList()
Creates a content item list for right column of main area component.
|
protected Component |
createRelatedItemListContainer(Listbox relatedItemList)
Creates container which displays node content.
|
protected Tree |
createTree(CatalogVersionModel catVer)
Creates tree with.
|
protected TreeController |
createTreeController(Component relatedItemListContainer,
RelatedItemListController relatedItemListController,
Listbox listbox,
Button addItemButton)
Creates a controller for a tree component.
|
void |
fireAddRootNavigationNode()
Triggers adding root navigation node.
|
protected UIItemView |
getCurrentItemView() |
NavigationNodeBrowserModel |
getModel() |
protected NavigationNodeController |
getNavigationNodeController()
Returns
NavigationNodeController configured via spring. |
protected TreeitemRenderer |
getNavigationNodeRenderer()
Returns
TreeitemRenderer configured via spring. |
protected RelatedItemListController |
getRelatedItemListController()
Returns
ListboxController configured via spring. |
protected void |
initTreeComponent(CatalogVersionModel catalogVersion,
Component parent)
Initialize a whole tree component with its dependencies.
|
protected void |
refreshAddItemButton(java.util.Set<Treeitem> selectedItems,
Button addItemButton)
Refreshes a item button after selection was done in the tree.
|
protected void |
refreshRelatedItemList(Component parent,
Listbox listBox,
RelatedItemListController controller)
Refreshes a content item list after selection was done in the tree.
|
void |
removeSelectedNavigationNode()
Triggers remove selected navigation node.
|
protected void |
renderMainAreaCompoenent(Component parent)
Constructs and renders main browse area component for navigation node perspective.
|
protected void |
renderTreeComponent(Tree tree,
Component contentItemListContainer,
Component addItemButtonContainer,
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) |
createTableController, desktopRemoved, detach, getLoginService, getResultModel, getRootType, getTableModel, getTypeService, getUIConfigurationService, initialize, loadListModel, resetSelection, resize, setActiveItem, setParent, setTableModel, updateActiveItems, updateItem, updateResult, updateSelectedItemsgetContentBrowser, setModel, updateItemprotected static final java.lang.String RELATED_ITEMS_LIST_SCLASS
protected static final java.lang.String NAVIGATION_TREE_SCLASS
protected static final java.lang.String NAVIGATION_TREE_PANEL_SCLASS
protected static final java.lang.String ROOT_NAVIGATION_CNT_SCLASS
protected static final java.lang.String ROOT_NAVIGATION_SUB_CNT_SCLASS
protected static final java.lang.String NAVIGATION_SECTION_CONTAINER_LEFT_SCLASS
protected static final java.lang.String NAVIGATION_SECTION_CONTAINER_RIGHT_SCLASS
protected static final java.lang.String RELATED_ITEMS_CONTAINER_SCLASS
protected static final java.lang.String ADD_RELATED_ITEMS_BTG_SCLASS
protected static final java.lang.String MARGIN_HELPER_SCLASS
protected static final java.lang.String ADD_ITEM_LABEL
protected static final java.lang.String INFO_AREA_DIV_ID
public NavigationNodeContentMainComponent(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 addItemButtonContainer, Component parent)
tree - tree componentcontentItemListContainer - node content parentaddItemButtonContainer - add page button parentparent - a parent for componentprotected Div createMainArea()
createMainArea in class AbstractMainAreaBrowserComponentprotected void renderMainAreaCompoenent(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 NavigationNodeBrowserModel getModel()
getModel in interface BrowserComponentgetModel in class AbstractMainAreaBrowserComponentprotected UIItemView getCurrentItemView()
getCurrentItemView in class AbstractMainAreaBrowserComponentprotected void cleanup()
cleanup in class AbstractMainAreaBrowserComponentprotected TreeController createTreeController(Component relatedItemListContainer, RelatedItemListController relatedItemListController, Listbox listbox, Button addItemButton)
protected Component createAddItemButtonContainer(Button addItemButton)
addItemButton - add page buttonprotected Listbox createRelatedItemList()
protected Button createAddItemButton()
protected Component createRelatedItemListContainer(Listbox relatedItemList)
relatedItemList - content item listprotected Tree createTree(CatalogVersionModel catVer)
protected void createBlankArea(java.lang.String message,
Component parent)
message - given messageparent - a parent componentprotected void refreshAddItemButton(java.util.Set<Treeitem> selectedItems,
Button addItemButton)
selectedItems - currently selected itemsaddItemButton - add item buttonprotected void refreshRelatedItemList(Component parent,
Listbox listBox,
RelatedItemListController controller)
parent - a parent componentlistBox - a content item listcontroller - a content item list controllerprotected TreeitemRenderer getNavigationNodeRenderer()
TreeitemRenderer configured via spring.
Note:CmscockpitConstants.NAVIGATION_NODE_RENDERER id.protected RelatedItemListController getRelatedItemListController()
ListboxController configured via spring.
Note:CmscockpitConstants.RELATED_ITEM_LIST_CONTROLLER id.protected NavigationNodeController getNavigationNodeController()
NavigationNodeController configured via spring.
Note:CmscockpitConstants.NAVIGATION_NODE_CONTROLLER id.Copyright © 2018 SAP SE. All Rights Reserved.