Package org.richfaces.component.html

Examples of org.richfaces.component.html.HtmlLayoutPanel


 
  protected UILayout createLayout(String leftWidth,String centerWidth,String rightWidth) {
    UILayout layout = new HtmlLayout();
    layout.setId("layout");
    List<UIComponent> children = layout.getChildren();
    UILayoutPanel panel = new HtmlLayoutPanel();
    panel.setPosition(LayoutPosition.left);
    panel.setId("left");
    panel.setWidth(leftWidth);
    children.add(panel);
   
    panel = new HtmlLayoutPanel();
    panel.setPosition(LayoutPosition.top);
    panel.setId("top");
    children.add(panel);
   
    panel = new HtmlLayoutPanel();
    panel.setPosition(LayoutPosition.right);
    panel.setId("right");
    panel.setWidth(rightWidth);
    children.add(panel);
   
    panel = new HtmlLayoutPanel();
    panel.setPosition(LayoutPosition.center);
    panel.setId("center");
    panel.setWidth(centerWidth);
    children.add(panel);   
   
    panel = new HtmlLayoutPanel();
    panel.setPosition(LayoutPosition.bottom);
    panel.setId("bottom");
    children.add(panel);
    return layout;
  }
View Full Code Here


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlLayoutPanel comp = (HtmlLayoutPanel) component;
               
            if (this._position != null) {
        if (this._position.isLiteralText()) {
          try {
                       
            org.richfaces.component.LayoutPosition __position = (org.richfaces.component.LayoutPosition) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._position.getExpressionString(),
                      org.richfaces.component.LayoutPosition.class);
         
                        comp.setPosition(__position);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("position", this._position);
        }
      }
                         
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.String __width = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
View Full Code Here

TOP

Related Classes of org.richfaces.component.html.HtmlLayoutPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.