Ejemplo n.º 1
0
	/**
	 * 添加右键菜单项
	 * @see com.frameworkset.common.tag.tree.itf.ITreeNode#addContextMenuItem(com.frameworkset.common.tag.tree.impl.TreeNode.ContextMenuItem)
	 */
	public ContextMenuItem addContextMenuItem(String name,String link,String target,String icon) {
		ContextMenuItem contextmenu = new ContextMenuItem();
		contextmenu.setName(name);
		contextmenu.setLink(link);
		contextmenu.setIcon(icon);
		contextmenu.setTarget(target);
		
		this.contextMenuItems.add(contextmenu);
		return contextmenu;
	}
Ejemplo n.º 2
0
	/**
	 * 添加右键菜单项
	 * @see com.frameworkset.common.tag.tree.itf.ITreeNode#addContextMenuItem(com.frameworkset.common.tag.tree.impl.TreeNode.ContextMenuItem)
	 */
	public ContextMenuItem addContextMenuItem(String name,String link,String target,String icon,String clazz,boolean disabled) {
		ContextMenuItem contextmenu = new ContextMenuItem();
		contextmenu.setName(name);
		contextmenu.setLink(link);
		contextmenu.setIcon(icon);
		contextmenu.setTarget(target);
		contextmenu.setClazz(clazz);
		contextmenu.setDisabled(disabled);
		this.contextMenuItems.add(contextmenu);
		return contextmenu;
	}
Ejemplo n.º 3
0
		/**
		 * 添加右键菜单项
		 * @see com.frameworkset.common.tag.tree.itf.ITreeNode#addContextMenuItem(com.frameworkset.common.tag.tree.impl.TreeNode.ContextMenuItem)
		 */
		public ContextMenuItem addSubContextMenuItem(String name,String link,String target,String icon,String clazz) {
			ContextMenuItem contextmenu = new ContextMenuItem();
			contextmenu.setName(name);
			contextmenu.setLink(link);
			contextmenu.setIcon(icon);
			contextmenu.setTarget(target);
			contextmenu.setClazz(clazz);
			initsubMenu();
			this.subMenu.addContextMenuItem(contextmenu);
			return contextmenu;
		}