Package org.apache.myfaces.tobago.component

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


  @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


  @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

    writer.writeIdAttribute(column.getClientId(facesContext));
    writer.writeClassAttribute(Classes.create(sheet, "selectorMenu"));
    writer.endElement(HtmlElements.DIV);

    if (UISheet.MULTI.equals(sheet.getSelectable())) {
      UIMenu menu = (UIMenu) CreateComponentUtils.createComponent(
          facesContext, UIMenu.COMPONENT_TYPE, RendererTypes.MENU, "selectorMenu");
      menu.setTransient(true);
      FacetUtils.setDropDownMenu(column, menu);
      menu.setImage("image/sheetSelectorMenu.gif");
      menu.setLabel("vv"); //todo remove this after fixing the image above

      String sheetId = column.getParent().getClientId(facesContext);

      createMenuItem(facesContext, menu, "sheetMenuSelect",
          "Tobago.Sheets.get('" + sheetId + "').selectAll()", "t_selectAll");
View Full Code Here

TOP

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

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.