Package org.apache.myfaces.tobago.component

Examples of org.apache.myfaces.tobago.component.UIPanel


    Assert.assertEquals(menu, FacetUtils.getContextMenu(panel));
  }

  @Test
  public void testDropDownMenu() {
    UIPanel panel = new UIPanel();
    Assert.assertNull(FacetUtils.getContextMenu(panel));
    UIMenu menu = new UIMenu();
    FacetUtils.setDropDownMenu(panel, menu);
    Assert.assertEquals(menu, FacetUtils.getDropDownMenu(panel));
  }
View Full Code Here


   * @deprecated since 1.5.0
   */
  @Test
  @Deprecated
  public void testMenupopup() {
    UIPanel panel = new UIPanel();
    Assert.assertNull(FacetUtils.getContextMenu(panel));
    UIMenu menu = new UIMenu();
    panel.getFacets().put(Facets.MENUPOPUP, menu);
    Assert.assertEquals(menu, FacetUtils.getDropDownMenu(panel));
  }
View Full Code Here

  }

  public void encodeChildren(FacesContext facesContext,
      UIComponent uiComponent) throws IOException {

    UIPanel component = (UIPanel) uiComponent;
    for (Object o : component.getChildren()) {
      UIComponent child = (UIComponent) o;
      RenderUtil.encode(facesContext, child);
    }
  }
View Full Code Here

  }

  public void encodeChildren(FacesContext facesContext,
      UIComponent uiComponent) throws IOException {

    UIPanel component = (UIPanel) uiComponent;
    for (Iterator i = component.getChildren().iterator(); i.hasNext();) {
      UIComponent child = (UIComponent) i.next();
      RenderUtil.encode(facesContext, child);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.tobago.component.UIPanel

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.