Author: nbelaevski
Date: 2007-07-05 08:10:51 -0400 (Thu, 05 Jul 2007)
New Revision: 1477
Modified:
branches/3.0.2/richfaces/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java
Log:
space garbage collected
Modified:
branches/3.0.2/richfaces/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java
===================================================================
---
branches/3.0.2/richfaces/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java 2007-07-05
12:09:23 UTC (rev 1476)
+++
branches/3.0.2/richfaces/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java 2007-07-05
12:10:51 UTC (rev 1477)
@@ -24,8 +24,6 @@
import java.io.IOException;
import java.util.Map;
-import javax.faces.component.UIComponent;
-import javax.faces.component.UIPanel;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.servlet.ServletContext;
@@ -35,7 +33,6 @@
import org.ajax4jsf.framework.renderer.ComponentsVariableResolver;
import org.ajax4jsf.framework.util.javascript.ScriptUtils;
import org.richfaces.component.UIModalPanel;
-import org.richfaces.component.util.ViewUtil;
/**
* @author Nick Belaevski - nbelaevski(a)exadel.com
@@ -127,112 +124,4 @@
}
return result.toString();
}
-
-// public static String getOptions(FacesContext context, UIComponent component,
RendererUtils utils) {
-// Map options = new HashMap();
-//
-//
-// UIComponent nestingContainer = (UIComponent)
AjaxRendererUtils.findAjaxContainer(context, component);
-// UIComponent nestingForm = AjaxRendererUtils.getNestingForm(component);
-// String formId = nestingForm != null ? nestingForm.getClientId(context) :
"";
-// options.put("container", nestingContainer.getClientId(context));
-// options.put("form", formId);
-//
-// Object w = component.getAttributes().get("width");
-// if(w == null || w.toString().trim().length() == 0 || "auto".equals(w)) {
-// w = "-1";
-// } else {
-// w = strip(w);
-// }
-// options.put("width", w);
-//
-// Object h = component.getAttributes().get("height");
-// if(h == null || h.toString().trim().length() == 0 || "auto".equals(h)) {
-// h = "-1";
-// } else {
-// h = strip(h);
-// }
-// options.put("height", h);
-//
-// Object x = component.getAttributes().get("posx");
-// if(x == null) x = component.getAttributes().get("align");
-// if(x == null || x.toString().trim().length() == 0) {
-// x = "50%";
-// } else {
-// x = strip(x);
-// }
-// if(x.equals("left")) x = "0%";
-// else if(x.equals("center") || x.equals("middle")) x =
"50%";
-// else if(x.equals("right")) x = "100%";
-// options.put("posx", x);
-//
-// Object y = component.getAttributes().get("posy");
-// if(y == null) y = component.getAttributes().get("valign");
-// if(y == null || y.toString().trim().length() == 0) {
-// y = "50%";
-// } else {
-// y = strip(y);
-// }
-// if(y.equals("top")) y = "0%";
-// else if(y.equals("middle") || y.equals("center")) y =
"50%";
-// else if(y.equals("bottom")) y = "100%";
-// options.put("posy", y);
-//
-// w = component.getAttributes().get("maxWidth");
-// if(w == null || w.toString().trim().length() == 0) {
-// w = "-1";
-// } else {
-// w = strip(w);
-// }
-// options.put("maxWidth", w);
-//
-// h = component.getAttributes().get("maxHeight");
-// if(h == null || h.toString().trim().length() == 0) {
-// h = "-1";
-// } else {
-// h = strip(h);
-// }
-// options.put("maxHeight", h);
-//
-//// if(!UIDialogAction.isServerMode(component)
-//// && DialogWindowRenderer.isSubmitted(utils, context, component)
-//// && findAncestorForm(context, component) != null) {
-//// append(options, "ajax", "true");
-//// }
-//
-// Object c = component.getAttributes().get("resizable");
-// if(c == null) c = Boolean.TRUE;
-// options.put("resizable", c);
-//
-// c = component.getAttributes().get("float");
-// if(c == null) c = Boolean.TRUE;
-// options.put("_float", c);
-//
-// c = component.getAttributes().get("headerHeight");
-// if(c == null) c = "16px";
-// options.put("headerHeight", c);
-//
-// c = component.getAttributes().get("posFunction");
-// if(c != null) {
-// options.put("posFunction", c);
-// }
-//
-//// Object posReferenceId = ((UIDialogWindow)component).getExternalPosReferenceId();
-//// if(posReferenceId == null) posReferenceId =
((UIDialogWindow)component).getPosReferenceId();
-//// if(posReferenceId != null) {
-//// append(options, "posReferenceId", posReferenceId);
-//// }
-////
-// c = component.getAttributes().get("hideParentDialog");
-// if(c == null) c = Boolean.FALSE;
-// options.put("hideParentDialog", c);
-//
-// return ScriptUtils.toScript(options);
-// }
-//
-// static String strip(Object value) {
-// String v = value.toString().trim();
-// if(v.endsWith("px")) return v.substring(0, v.length() - 2);
-// return v;
-// }
}
Show replies by date