treesimplemenu.java
来自「一个购房管理系统,JSF+Hibernate+Mssql2」· Java 代码 · 共 55 行
JAVA
55 行
package com.housesale.util;
import java.util.Collection;
import java.util.NoSuchElementException;
public class TreeSimpleMenu extends AbstractMenu {
public TreeSimpleMenu(String menuId, String menuName, String url,
boolean isHasLeaf, String type) {
super(menuId, menuName, url, isHasLeaf, type);
}
public Collection listChildMenus() throws UnsupportedOperationException {
throw new UnsupportedOperationException(
"This mehtod Cannot be invoked for simple menu item");
}
public Menu getChild(String s) {
return null;
}
public String addMenuItems() {
StringBuffer sb = new StringBuffer();
return sb.toString();
}
public String addParentMenuItems() {
StringBuffer sb = new StringBuffer();
sb.append("\n");
return sb.toString();
}
public String newMenu() {
StringBuffer sb = new StringBuffer();
sb.append("\n");
return sb.toString();
}
public boolean add(Menu menu) throws NoSuchElementException,
UnsupportedOperationException {
throw new UnsupportedOperationException(
"This mehtod Cannot be invoked for simple menu item");
}
public void remove() throws NoSuchElementException,
UnsupportedOperationException {
throw new UnsupportedOperationException(
"This mehtod Cannot be invoked for simple menu item");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?