Class NavItemEditor
- java.lang.Object
-
- org.dashbuilder.client.navigation.widget.editor.NavItemEditor
-
- All Implemented Interfaces:
org.jboss.errai.common.client.api.IsElement
- Direct Known Subclasses:
NavItemDefaultEditor,NavRootNodeEditor,NavTreeEditor
public abstract class NavItemEditor extends Object implements org.jboss.errai.common.client.api.IsElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNavItemEditor.ItemTypestatic interfaceNavItemEditor.View<P extends NavItemEditor>
-
Field Summary
Fields Modifier and Type Field Description static NavigationConstantsi18n
-
Constructor Summary
Constructors Constructor Description NavItemEditor(NavItemEditor.View view, org.jboss.errai.ioc.client.container.SyncBeanManager beanManager, org.uberfire.client.mvp.PlaceManager placeManager, org.uberfire.client.authz.PerspectiveTreeProvider perspectiveTreeProvider, TargetPerspectiveEditor targetPerspectiveEditor, PerspectivePluginManager perspectivePluginManager, javax.enterprise.event.Event<NavItemEditStartedEvent> navItemEditStartedEvent, javax.enterprise.event.Event<NavItemEditCancelledEvent> navItemEditCancelledEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareChildrenAllowed()booleanareSubgroupsAllowed()booleancanBeExpanded()voidcancelEdition()voidclear()voidcollapse()voidcollapseAll()NavItemEditorcreateChildEditor(org.dashbuilder.navigation.NavItem navItem)voidedit(org.dashbuilder.navigation.NavItem navItem)voidexpand()voidexpandAll()voidexpandOrCollapse()voidfinishEdition()Class<? extends NavItemEditor>getChildEditorClass()StringgetDividerLiteral()org.jboss.errai.common.client.dom.HTMLElementgetElement()StringgetGroupLiteral()intgetLevel()org.dashbuilder.navigation.NavItemgetNavItem()StringgetNewPerspectiveI18n()NavItemEditorgetParentEditor()Set<String>getPerspectiveIds(org.dashbuilder.navigation.NavItem navItem, boolean visible)StringgetPerspectiveLiteral()NavItemEditorgetRootEditor()NavItemEditorSettingsgetSettings()booleanisExpanded()booleanisGotoPerspectiveEnabled()booleanisMoveDownEnabled()booleanisMoveUpEnabled()booleanisNewDividerEnabled()booleanisNewGroupEnabled()booleanisNewPerspectiveEnabled()NavItemEditornewDivider()NavItemEditornewGroup()NavItemEditornewPerspective()voidsetChildEditorClass(Class<? extends NavItemEditor> childEditorClass)voidsetMoveDownEnabled(boolean moveDownEnabled)voidsetMoveUpEnabled(boolean moveUpEnabled)voidsetOnCancelCommand(org.uberfire.mvp.Command onCancelCommand)voidsetOnDeleteCommand(org.uberfire.mvp.Command onDeleteCommand)voidsetOnExpandCommand(org.uberfire.mvp.Command onExpandCommand)voidsetOnMoveDownCommand(org.uberfire.mvp.Command onMoveDownCommand)voidsetOnMoveFirstCommand(org.uberfire.mvp.Command onMoveFirstCommand)voidsetOnMoveLastCommand(org.uberfire.mvp.Command onMoveLastCommand)voidsetOnMoveUpCommand(org.uberfire.mvp.Command onMoveUpCommand)voidsetOnUpdateCommand(org.uberfire.mvp.Command onUpdateCommand)voidsetParentEditor(NavItemEditor parentEditor)voidsetSettings(NavItemEditorSettings settings)voidstartEdition()
-
-
-
Field Detail
-
i18n
public static final NavigationConstants i18n
-
-
Constructor Detail
-
NavItemEditor
public NavItemEditor(NavItemEditor.View view, org.jboss.errai.ioc.client.container.SyncBeanManager beanManager, org.uberfire.client.mvp.PlaceManager placeManager, org.uberfire.client.authz.PerspectiveTreeProvider perspectiveTreeProvider, TargetPerspectiveEditor targetPerspectiveEditor, PerspectivePluginManager perspectivePluginManager, javax.enterprise.event.Event<NavItemEditStartedEvent> navItemEditStartedEvent, javax.enterprise.event.Event<NavItemEditCancelledEvent> navItemEditCancelledEvent)
-
-
Method Detail
-
getElement
public org.jboss.errai.common.client.dom.HTMLElement getElement()
- Specified by:
getElementin interfaceorg.jboss.errai.common.client.api.IsElement
-
getSettings
public NavItemEditorSettings getSettings()
-
setSettings
public void setSettings(NavItemEditorSettings settings)
-
getChildEditorClass
public Class<? extends NavItemEditor> getChildEditorClass()
-
setChildEditorClass
public void setChildEditorClass(Class<? extends NavItemEditor> childEditorClass)
-
getParentEditor
public NavItemEditor getParentEditor()
-
setParentEditor
public void setParentEditor(NavItemEditor parentEditor)
-
getRootEditor
public NavItemEditor getRootEditor()
-
getLevel
public int getLevel()
-
isExpanded
public boolean isExpanded()
-
getGroupLiteral
public String getGroupLiteral()
-
getNewPerspectiveI18n
public String getNewPerspectiveI18n()
-
getPerspectiveLiteral
public String getPerspectiveLiteral()
-
getDividerLiteral
public String getDividerLiteral()
-
isNewGroupEnabled
public boolean isNewGroupEnabled()
-
isNewPerspectiveEnabled
public boolean isNewPerspectiveEnabled()
-
isNewDividerEnabled
public boolean isNewDividerEnabled()
-
isGotoPerspectiveEnabled
public boolean isGotoPerspectiveEnabled()
-
isMoveUpEnabled
public boolean isMoveUpEnabled()
-
setMoveUpEnabled
public void setMoveUpEnabled(boolean moveUpEnabled)
-
isMoveDownEnabled
public boolean isMoveDownEnabled()
-
setMoveDownEnabled
public void setMoveDownEnabled(boolean moveDownEnabled)
-
setOnUpdateCommand
public void setOnUpdateCommand(org.uberfire.mvp.Command onUpdateCommand)
-
setOnCancelCommand
public void setOnCancelCommand(org.uberfire.mvp.Command onCancelCommand)
-
setOnMoveFirstCommand
public void setOnMoveFirstCommand(org.uberfire.mvp.Command onMoveFirstCommand)
-
setOnMoveLastCommand
public void setOnMoveLastCommand(org.uberfire.mvp.Command onMoveLastCommand)
-
setOnMoveUpCommand
public void setOnMoveUpCommand(org.uberfire.mvp.Command onMoveUpCommand)
-
setOnMoveDownCommand
public void setOnMoveDownCommand(org.uberfire.mvp.Command onMoveDownCommand)
-
setOnDeleteCommand
public void setOnDeleteCommand(org.uberfire.mvp.Command onDeleteCommand)
-
setOnExpandCommand
public void setOnExpandCommand(org.uberfire.mvp.Command onExpandCommand)
-
getNavItem
public org.dashbuilder.navigation.NavItem getNavItem()
-
edit
public void edit(org.dashbuilder.navigation.NavItem navItem)
-
canBeExpanded
public boolean canBeExpanded()
-
expand
public void expand()
-
collapse
public void collapse()
-
expandAll
public void expandAll()
-
collapseAll
public void collapseAll()
-
expandOrCollapse
public void expandOrCollapse()
-
startEdition
public void startEdition()
-
finishEdition
public void finishEdition()
-
cancelEdition
public void cancelEdition()
-
clear
public void clear()
-
areChildrenAllowed
public boolean areChildrenAllowed()
-
areSubgroupsAllowed
public boolean areSubgroupsAllowed()
-
createChildEditor
public NavItemEditor createChildEditor(org.dashbuilder.navigation.NavItem navItem)
-
getPerspectiveIds
public Set<String> getPerspectiveIds(org.dashbuilder.navigation.NavItem navItem, boolean visible)
-
newGroup
public NavItemEditor newGroup()
-
newPerspective
public NavItemEditor newPerspective()
-
newDivider
public NavItemEditor newDivider()
-
-