Package org.adempiere.webui.component
Class FavoriteSimpleTreeModel
- java.lang.Object
-
- org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<E>>
-
- org.zkoss.zul.DefaultTreeModel<Object>
-
- org.adempiere.webui.component.SimpleTreeModel
-
- org.adempiere.webui.component.FavoriteSimpleTreeModel
-
- All Implemented Interfaces:
Serializable
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
,org.zkoss.zul.ext.Openable<org.zkoss.zul.TreeNode<Object>>
,org.zkoss.zul.ext.Pageable
,org.zkoss.zul.ext.Selectable<org.zkoss.zul.TreeNode<Object>>
,org.zkoss.zul.ext.Sortable<org.zkoss.zul.TreeNode<Object>>
,org.zkoss.zul.ext.TreeOpenableModel
,org.zkoss.zul.ext.TreeSelectableModel
,org.zkoss.zul.PageableModel
,org.zkoss.zul.TreeitemRenderer<Object>
,org.zkoss.zul.TreeModel<org.zkoss.zul.TreeNode<Object>>
public class FavoriteSimpleTreeModel extends SimpleTreeModel implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, org.zkoss.zul.TreeitemRenderer<Object>
User Favorite Tree Model- Since:
- June 20, 2017
- Author:
- Logilite Technologies
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.zkoss.zul.AbstractTreeModel
org.zkoss.zul.AbstractTreeModel.DefaultSelectionControl<E extends Object>, org.zkoss.zul.AbstractTreeModel.Path
-
-
Field Summary
Fields Modifier and Type Field Description static String
MOBILE_TOOLBAR_CTX_MENU
-
Constructor Summary
Constructors Constructor Description FavoriteSimpleTreeModel(org.zkoss.zul.DefaultTreeNode<Object> root)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNode(org.zkoss.zul.DefaultTreeNode<Object> newNode)
Add to rootvoid
addOnDropEventListener(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
static FavoriteSimpleTreeModel
createFrom(MTreeNode root)
Creating Tree hierarchyorg.zkoss.zul.DefaultTreeNode<Object>
getChild(org.zkoss.zul.DefaultTreeNode<Object> parent, int index)
static FavoriteSimpleTreeModel
initADTree(org.zkoss.zul.Tree tree, String trxName)
Tree Initializationboolean
isItemDraggable()
void
onEvent(org.zkoss.zk.ui.event.Event event)
void
render(org.zkoss.zul.Treeitem ti, Object node, int index)
void
setItemDraggable(boolean isDraggable)
-
Methods inherited from class org.adempiere.webui.component.SimpleTreeModel
addNode, find, getParent, getRoot, initADTree, initADTree, initADTree, initADTree, isTreeDrivenByValue, isValueDisplayed, nodeUpdated, removeNode, setIsValueDisplayed, setTreeDrivenByValue
-
Methods inherited from class org.zkoss.zul.DefaultTreeModel
addSelection, clone, getChild, getChildCount, getIndexOfChild, getPath, getSortDirection, isLeaf, isObjectOpened, isOpen, isSelected, removeFromSelection, removeOpenObject, removeSelection, setOpen, sort, sort
-
Methods inherited from class org.zkoss.zul.AbstractTreeModel
addOpenObject, addOpenPath, addOpenPaths, addPagingEventListener, addSelectionPath, addSelectionPaths, addToSelection, addTreeDataListener, afterSort, beforeSort, clearOpen, clearSelection, fireEvent, fireEvent, fireEvent, fireOpenChanged, fireSelectionChanged, getActivePage, getChild, getOpenCount, getOpenObjects, getOpenPath, getOpenPaths, getPageCount, getPageSize, getSelection, getSelectionControl, getSelectionCount, getSelectionPath, getSelectionPaths, isMultiple, isOpenEmpty, isPathOpened, isPathSelected, isSelectionEmpty, removeOpenPath, removeOpenPaths, removePagingEventListener, removeSelectionPath, removeSelectionPaths, removeTreeDataListener, setActivePage, setMultiple, setOpenObjects, setPageSize, setSelection, setSelectionControl
-
-
-
-
Field Detail
-
MOBILE_TOOLBAR_CTX_MENU
public static final String MOBILE_TOOLBAR_CTX_MENU
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FavoriteSimpleTreeModel
public FavoriteSimpleTreeModel(org.zkoss.zul.DefaultTreeNode<Object> root)
-
-
Method Detail
-
initADTree
public static FavoriteSimpleTreeModel initADTree(org.zkoss.zul.Tree tree, String trxName)
Tree Initialization- Parameters:
tree
-trxName
-- Returns:
FavoriteSimpleTreeModel
-
createFrom
public static FavoriteSimpleTreeModel createFrom(MTreeNode root)
Creating Tree hierarchy- Parameters:
root
-- Returns:
FavoriteSimpleTreeModel
-
render
public void render(org.zkoss.zul.Treeitem ti, Object node, int index)
- Specified by:
render
in interfaceorg.zkoss.zul.TreeitemRenderer<Object>
- Overrides:
render
in classSimpleTreeModel
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Overrides:
onEvent
in classSimpleTreeModel
- Throws:
Exception
- See Also:
EventListener.onEvent(Event)
-
addNode
public void addNode(org.zkoss.zul.DefaultTreeNode<Object> newNode)
Description copied from class:SimpleTreeModel
Add to root- Overrides:
addNode
in classSimpleTreeModel
-
getChild
public org.zkoss.zul.DefaultTreeNode<Object> getChild(org.zkoss.zul.DefaultTreeNode<Object> parent, int index)
-
addOnDropEventListener
public void addOnDropEventListener(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
- Overrides:
addOnDropEventListener
in classSimpleTreeModel
-
setItemDraggable
public void setItemDraggable(boolean isDraggable)
- Overrides:
setItemDraggable
in classSimpleTreeModel
-
isItemDraggable
public boolean isItemDraggable()
- Overrides:
isItemDraggable
in classSimpleTreeModel
- Returns:
- boolean
-
-