80 lines
1.4 KiB
Java
80 lines
1.4 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.user.workspace.client.util;
|
|
|
|
/**
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* @Jun 25, 2013
|
|
*
|
|
*/
|
|
public class WindowOpenParameter {
|
|
|
|
private String option;
|
|
private String parameters;
|
|
private String itemName;
|
|
private boolean redirectOnError;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public WindowOpenParameter() {
|
|
}
|
|
|
|
|
|
/**
|
|
*
|
|
* @param option the name of the window (e.g. "_blank")
|
|
* @param itemName
|
|
* @param parameters param=value¶m1=value1&...
|
|
* @param redirectOnError if true execute a redirect on fake URL
|
|
*/
|
|
public WindowOpenParameter(String option, String itemName, String parameters, boolean redirectOnError) {
|
|
super();
|
|
this.option = option;
|
|
this.itemName = itemName;
|
|
this.parameters = parameters;
|
|
this.redirectOnError = redirectOnError;
|
|
}
|
|
|
|
|
|
public String getParameters() {
|
|
return parameters;
|
|
}
|
|
|
|
public void setParameters(String parameters) {
|
|
this.parameters = parameters;
|
|
}
|
|
|
|
public String getOption() {
|
|
return option;
|
|
}
|
|
|
|
public void setOption(String option) {
|
|
this.option = option;
|
|
}
|
|
|
|
|
|
public String getItemName() {
|
|
return itemName;
|
|
}
|
|
|
|
|
|
public void setItemName(String itemName) {
|
|
this.itemName = itemName;
|
|
}
|
|
|
|
|
|
public boolean isRedirectOnError() {
|
|
return redirectOnError;
|
|
}
|
|
|
|
|
|
public void setRedirectOnError(boolean redirectOnError) {
|
|
this.redirectOnError = redirectOnError;
|
|
}
|
|
|
|
|
|
|
|
}
|