public class PublicationSelectorSectionRenderer extends AbstractNavigationAreaSectionRenderer
| Modifier and Type | Field and Description |
|---|---|
protected static String |
COCKPIT_ID_PUBLICATIONS_CONTEXT_COPY |
protected static String |
COCKPIT_ID_PUBLICATIONS_CONTEXT_CUT |
protected static String |
COCKPIT_ID_PUBLICATIONS_CONTEXT_DELETE |
protected static String |
COCKPIT_ID_PUBLICATIONS_CONTEXT_MENU |
protected static String |
COCKPIT_ID_PUBLICATIONS_CONTEXT_NEW_CHAPTER |
protected static String |
COCKPIT_ID_PUBLICATIONS_CONTEXT_NEW_PAGE |
protected static String |
COCKPIT_ID_PUBLICATIONS_CONTEXT_NEW_PUBLICATION |
protected static String |
COCKPIT_ID_PUBLICATIONS_CONTEXT_PASTE |
static int |
UNLIMITED
level of nodes to be displayed
|
| Constructor and Description |
|---|
PublicationSelectorSectionRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collapseAll(Collection<Object> treeitems,
Tree tree) |
protected void |
createCollapseExpandEntries(Menupopup menu,
Tree tree)
Creates menu entries for collapsing and expanding tree nodes
|
protected Menupopup |
createContextMenu(Tree tree) |
protected void |
createCRUDMenuEntries(Menupopup menu)
Creates menu entries for editing, removing and creating publication elements
|
protected void |
expandAll(Collection<Object> treeitems) |
PrintcockpitUIAccessRightService |
getAccessRightService() |
PrintNavigationArea |
getNavigationArea() |
Set<TypedObject> |
getOpenedElements() |
protected List<List<Integer>> |
getOpenedNodes(Tree tree,
int depth) |
protected List<Integer> |
getPathToRoot(Treeitem treeItem) |
PublicationCloningService |
getPublicationCloningService() |
PublicationService |
getPublicationService() |
Object |
getRootDummy() |
List<TypedObject> |
getSelectedTreeItems(TypedObject object,
Tree tree)
Returns selected items in navigation tree as typed objects
|
Tree |
getTree() |
TypeService |
getTypedService() |
boolean |
isCollectionMixedContent(Collection items) |
boolean |
isSelectionMixedContent(Tree tree)
Returns true if selected items are of different types
|
boolean |
isSelectionMixedContent(Treeitem item) |
protected void |
openPath(Tree tree,
List<Integer> path) |
void |
render(SectionPanel panel,
Component parent,
Component captionComponent,
Section section) |
protected void |
restoreOpenedState(Tree tree,
List<List<Integer>> openedNodes) |
protected void |
selectionChanged(List<TypedObject> newSelected) |
protected void |
selectionChanged(List<TypedObject> newSelected,
boolean doubleClicked) |
void |
setAccessRightService(PrintcockpitUIAccessRightService accessRightService) |
boolean |
setSelectedItem(TypedObject selection,
Tree tree)
Selects given typedObject in tree.
|
void |
setTreerowsDraggable(Collection treeitems,
Object data)
Set passed treerows draggable option, or not draggable if data parameter is null
|
createBrowserItemTooltip, createList, getSectionPanelModel, setNavigationAreapublic static final int UNLIMITED
protected static final String COCKPIT_ID_PUBLICATIONS_CONTEXT_MENU
protected static final String COCKPIT_ID_PUBLICATIONS_CONTEXT_DELETE
protected static final String COCKPIT_ID_PUBLICATIONS_CONTEXT_COPY
protected static final String COCKPIT_ID_PUBLICATIONS_CONTEXT_PASTE
protected static final String COCKPIT_ID_PUBLICATIONS_CONTEXT_CUT
protected static final String COCKPIT_ID_PUBLICATIONS_CONTEXT_NEW_PUBLICATION
protected static final String COCKPIT_ID_PUBLICATIONS_CONTEXT_NEW_CHAPTER
protected static final String COCKPIT_ID_PUBLICATIONS_CONTEXT_NEW_PAGE
protected Menupopup createContextMenu(Tree tree)
protected void createCollapseExpandEntries(Menupopup menu,
Tree tree)
menu - tree - protected void createCRUDMenuEntries(Menupopup menu)
menu - protected void expandAll(Collection<Object> treeitems)
protected void collapseAll(Collection<Object> treeitems, Tree tree)
public PrintNavigationArea getNavigationArea()
getNavigationArea in class AbstractNavigationAreaSectionRendererpublic PublicationService getPublicationService()
public Tree getTree()
public TypeService getTypedService()
public void render(SectionPanel panel, Component parent, Component captionComponent, Section section)
render in interface SectionRendererrender in class AbstractNavigationAreaSectionRendererpublic boolean isSelectionMixedContent(Tree tree)
public boolean isSelectionMixedContent(Treeitem item)
public boolean isCollectionMixedContent(Collection items)
public void setTreerowsDraggable(Collection treeitems, Object data)
treeitems - data - protected void selectionChanged(List<TypedObject> newSelected)
protected void selectionChanged(List<TypedObject> newSelected, boolean doubleClicked)
public boolean setSelectedItem(TypedObject selection, Tree tree)
selection - item to selecttree - public List<TypedObject> getSelectedTreeItems(TypedObject object, Tree tree)
public Object getRootDummy()
public Set<TypedObject> getOpenedElements()
public PrintcockpitUIAccessRightService getAccessRightService()
public void setAccessRightService(PrintcockpitUIAccessRightService accessRightService)
accessRightService - the accessRightService to setpublic PublicationCloningService getPublicationCloningService()
Copyright © 2017 SAP SE. All Rights Reserved.