📄 menubase.java
字号:
package net.sf.navigator.menu;
/**
*
* @author ssayles
* @author mraible
* @version
*/
public abstract class MenuBase implements Component {
//~ 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 name;
/** Holds value of property onclick. */
protected String onclick;
/** Holds value of property ondblclick. */
protected String ondblclick;
/** 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;
/** Holds value of property onContextMenu */
protected String onContextMenu;
/**
* Holds value of property module; a Struts module prefix that overrides the current module.
*
* <p>The default module is specified by <code>""</code>. Any non-default module should begin with <code>"/"</code>.
*/
protected String module;
//~ Methods ================================================================
/**
* Sets the value for action.
* @param action New value of property action.
*/
public void setAction(String action) {
this.action = action;
}
/**
* Returns the value for action.
* @return Value of property action.
*/
public String getAction() {
return this.action;
}
/**
* Returns the value for align.
* @return Value of property align.
*/
public String getAlign() {
return align;
}
/**
* Sets the value for align.
* @param align New value of property align.
*/
public void setAlign(String align) {
this.align = align;
}
/** Setter for property altImage.
* @param altImage New value of property altImage.
*/
public void setAltImage(String altImage) {
this.altImage = altImage;
}
/** Getter for property altImage.
* @return Value of property altImage.
*/
public String getAltImage() {
return altImage;
}
/** Setter for property description.
* @param description New value of property description.
*/
public void setDescription(String description) {
this.description = description;
}
/** Getter for property description.
* @return Value of property description.
*/
public String getDescription() {
return description;
}
/**
* Sets the forward.
* @param forward The forward to set
*/
public void setForward(String forward) {
this.forward = forward;
}
/**
* @return String
*/
public String getForward() {
return forward;
}
/**
* @param height
*/
public void setHeight(String height) {
this.height = height;
}
/**
* @return
*/
public String getHeight() {
return height;
}
/** Setter for property image.
* @param image New value of property image.
*/
public void setImage(String image) {
this.image = image;
}
/** Getter for property image.
* @return Value of property image.
*/
public String getImage() {
return image;
}
/** Setter for property location.
* @param location New value of property location.
*/
public void setLocation(String location) {
this.location = location;
}
/** Getter for property location.
* @return Value of property location.
*/
public String getLocation() {
return location;
}
/** Setter for property name.
* @param name New value of property name.
*/
public void setName(String name) {
this.name = name;
}
/** Getter for property name.
* @return Value of property name.
*/
public String getName() {
return name;
}
/** Setter for property onclick.
* @param onclick New value of property onclick.
*/
public void setOnclick(String onclick) {
this.onclick = onclick;
}
/** Getter for property onclick.
* @return Value of property onclick.
*/
public String getOnclick() {
return onclick;
}
/** Setter for property onmouseout.
* @param onmouseout New value of property onmouseout.
*/
public void setOnmouseout(String onmouseout) {
this.onmouseout = onmouseout;
}
/** Getter for property onmouseout.
* @return Value of property onmouseout.
*/
public String getOnmouseout() {
return onmouseout;
}
/** Setter for property onmouseover.
* @param onmouseover New value of property onmouseover.
*/
public void setOnmouseover(String onmouseover) {
this.onmouseover = onmouseover;
}
/** Getter for property onmouseover.
* @return Value of property onmouseover.
*/
public String getOnmouseover() {
return onmouseover;
}
/**
* Sets the value for page.
* @param page New value of property page.
*/
public void setPage(String page) {
this.page = page;
}
/**
* Returns the value for page.
* @return Value of property page.
*/
public String getPage() {
return this.page;
}
/**
* Sets the roles.
* @param roles The roles to set
*/
public void setRoles(String roles) {
this.roles = roles;
}
/**
* Returns the roles.
* @return String
*/
public String getRoles() {
return roles;
}
/** Setter for property target.
* @param target New value of property target.
*/
public void setTarget(String target) {
this.target = target;
}
/** Getter for property target.
* @return Value of property target.
*/
public String getTarget() {
return target;
}
/** Setter for property title.
* @param title New value of property title.
*/
public void setTitle(String title) {
this.title = title;
}
/** Getter for property title.
* @return Value of property title.
*/
public String getTitle() {
return title;
}
/** Setter for property toolTip.
* @param toolTip New value of property toolTip.
*/
public void setToolTip(String toolTip) {
this.toolTip = toolTip;
}
/** Getter for property toolTip.
* @return Value of property toolTip.
*/
public String getToolTip() {
return toolTip;
}
/**
* @param url
*/
public void setUrl(String url) {
this.url = url;
}
/**
* @return
*/
public String getUrl() {
return url;
}
/**
* Sets the width.
* @param width The width to set
*/
public void setWidth(String width) {
this.width = width;
}
/**
* @return String
*/
public String getWidth() {
return width;
}
/**
* @return
*/
public String getOnContextMenu() {
return onContextMenu;
}
/**
* @param string
*/
public void setOnContextMenu(String string) {
onContextMenu = string;
}
/**
* Returns the ondblclick.
* @return String
*/
public String getOndblclick() {
return ondblclick;
}
/**
* Sets the ondblclick.
* @param ondblclick The ondblclick to set
*/
public void setOndblclick(String ondblclick) {
this.ondblclick = ondblclick;
}
public String getModule() {
return module;
}
public void setModule(String module) {
this.module = module;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -