📄 menucompentwrapper.java
字号:
/*
* Copyright 2004-2005 wangz.
* Project shufe_newsroom
*/
package com.skyon.um.security.acegi.strutsmenu;
import net.sf.navigator.menu.MenuComponent;
import org.springframework.beans.BeanUtils;
/**
* @since 2005-8-4
* @author 王政
* @version $Id: MenuCompentWrapper.java,v 1.1 2005/08/25 08:04:14 wangzheng Exp $
*/
public class MenuCompentWrapper {
// ~ Instance fields
// ========================================================
/** Holds value of property action, that is, Struts Logical Action Name. */
protected String action;
/**
* Align menu 'left','right','top','bottom' ...and other alignment of
* particular menu system
*/
protected String align;
/** Holds value of property altImage. */
protected String altImage;
/** Holds value of property description. */
protected String description;
/** Holds value of property forward. */
protected String forward;
/** Holds value of property height. */
protected String height;
/** Holds value of property image. */
protected String image;
/** Holds value of property location. */
protected String location;
/** Holds value of property name. */
protected String resourceName;
/** Holds value of parentPropertyName */
protected String parentName;
/** Holds value of property onclick. */
protected String onclick;
/** Holds value of property onmouseout. */
protected String onmouseout;
/** Holds value of property onmouseover. */
protected String onmouseover;
/** Holds value of property page. */
protected String page;
/** Holds value of property roles. */
protected String roles;
/** Holds value of property target. */
protected String target;
/** Holds value of property title. */
protected String title;
/** Holds value of property toolTip. */
protected String toolTip;
/** Holds value of property width. */
protected String width;
/** Holds parsed (with variables) url that is used to render a link */
private String url;
// ~ Constructors
// ===========================================================
public MenuCompentWrapper() {
}
/**
* prototype pattern
*
* @param menuComponent
*/
public MenuCompentWrapper(MenuComponent menuComponent) {
BeanUtils.copyProperties(menuComponent, this);
}
/**
* @param action
* @param align
* @param image
* @param description
* @param forward
* @param height
* @param image2
* @param location
* @param name
* @param onclick
* @param onmouseout
* @param onmouseover
* @param page
* @param roles
* @param target
* @param title
* @param tip
* @param url
* @param width
*/
public MenuCompentWrapper(String action, String align, String image,
String description, String forward, String height, String image2,
String location, String resourceName, String onclick, String onmouseout,
String onmouseover, String page, String roles, String target,
String title, String tip, String url, String width) {
this.action = action;
this.align = align;
altImage = image;
this.description = description;
this.forward = forward;
this.height = height;
image = image2;
this.location = location;
this.resourceName = resourceName;
this.onclick = onclick;
this.onmouseout = onmouseout;
this.onmouseover = onmouseover;
this.page = page;
this.roles = roles;
this.target = target;
this.title = title;
toolTip = tip;
this.url = url;
this.width = width;
}
// ~ Methods
// ================================================================
/**
* @return Returns the action.
*/
public String getAction() {
return action;
}
/**
* @param action The action to set.
*/
public void setAction(String action) {
this.action = action;
}
/**
* @return Returns the align.
*/
public String getAlign() {
return align;
}
/**
* @param align The align to set.
*/
public void setAlign(String align) {
this.align = align;
}
/**
* @return Returns the altImage.
*/
public String getAltImage() {
return altImage;
}
/**
* @param altImage The altImage to set.
*/
public void setAltImage(String altImage) {
this.altImage = altImage;
}
/**
* @return Returns the description.
*/
public String getDescription() {
return description;
}
/**
* @param description The description to set.
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return Returns the forward.
*/
public String getForward() {
return forward;
}
/**
* @param forward The forward to set.
*/
public void setForward(String forward) {
this.forward = forward;
}
/**
* @return Returns the height.
*/
public String getHeight() {
return height;
}
/**
* @param height The height to set.
*/
public void setHeight(String height) {
this.height = height;
}
/**
* @return Returns the image.
*/
public String getImage() {
return image;
}
/**
* @param image The image to set.
*/
public void setImage(String image) {
this.image = image;
}
/**
* @return Returns the location.
*/
public String getLocation() {
return location;
}
/**
* @param location The location to set.
*/
public void setLocation(String location) {
this.location = location;
}
/**
* @return Returns the name.
*/
public String getResourceName() {
return resourceName;
}
/**
* @param name The name to set.
*/
public void setResourceName(String name) {
this.resourceName = name;
}
/**
* @return Returns the onclick.
*/
public String getOnclick() {
return onclick;
}
/**
* @param onclick The onclick to set.
*/
public void setOnclick(String onclick) {
this.onclick = onclick;
}
/**
* @return Returns the onmouseout.
*/
public String getOnmouseout() {
return onmouseout;
}
/**
* @param onmouseout The onmouseout to set.
*/
public void setOnmouseout(String onmouseout) {
this.onmouseout = onmouseout;
}
/**
* @return Returns the onmouseover.
*/
public String getOnmouseover() {
return onmouseover;
}
/**
* @param onmouseover The onmouseover to set.
*/
public void setOnmouseover(String onmouseover) {
this.onmouseover = onmouseover;
}
/**
* @return Returns the page.
*/
public String getPage() {
return page;
}
/**
* @param page The page to set.
*/
public void setPage(String page) {
this.page = page;
}
/**
* @return Returns the roles.
*/
public String getRoles() {
return roles;
}
/**
* @param roles The roles to set.
*/
public void setRoles(String roles) {
this.roles = roles;
}
/**
* @return Returns the target.
*/
public String getTarget() {
return target;
}
/**
* @param target The target to set.
*/
public void setTarget(String target) {
this.target = target;
}
/**
* @return Returns the title.
*/
public String getTitle() {
return title;
}
/**
* @param title The title to set.
*/
public void setTitle(String title) {
this.title = title;
}
/**
* @return Returns the toolTip.
*/
public String getToolTip() {
return toolTip;
}
/**
* @param toolTip The toolTip to set.
*/
public void setToolTip(String toolTip) {
this.toolTip = toolTip;
}
/**
* @return Returns the url.
*/
public String getUrl() {
return url;
}
/**
* @param url The url to set.
*/
public void setUrl(String url) {
this.url = url;
}
/**
* @return Returns the width.
*/
public String getWidth() {
return width;
}
/**
* @param width The width to set.
*/
public void setWidth(String width) {
this.width = width;
}
/**
* @return Returns the parentName.
*/
public String getParentName() {
return parentName;
}
/**
* @param parentName The parentName to set.
*/
public void setParentName(String parentName) {
this.parentName = parentName;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -