Package org.apache.myfaces.trinidad.component

Examples of org.apache.myfaces.trinidad.component.UIXTable


      //       tableChild
      //    button1 (table1 & button1 peers)
      UIXCommand button1 = new UIXCommand();
      button1.setId("commandButton1");
 
      UIXTable table1 = new UIXTable();
      table1.setId("table1");
      UIXPanel rootPanel = new UIXPanel();
      rootPanel.getChildren().add(button1);
      rootPanel.getChildren().add(table1);
      UIXPanel tableChild = new UIXPanel();
      tableChild.setId("tableChildId");
      table1.getChildren().add(tableChild);
     
     
      UIComponent cmp =
        ComponentUtils.findRelativeComponent(table1,"::commandButton1");
       // new & old (because  in old it starts from the viewRoot)
View Full Code Here


    String source = parameters.get(TrinidadRenderingConstants.SOURCE_PARAM);
    String id = component.getClientId(context);
    if (!id.equals(source))
      return;

    UIXTable table = (UIXTable) component;
    Object eventParam = parameters.get(TrinidadRenderingConstants.EVENT_PARAM);
    if (TrinidadRenderingConstants.GOTO_EVENT.equals(eventParam))
    {
      _decodeGoto(table, parameters);
    }
View Full Code Here

      TableRenderingContext tContext =
        TableRenderingContext.getCurrentInstance();
      UIComponent component = tContext.getTable();
      if (component instanceof UIXTable)
      {
        UIXTable table = (UIXTable) component;
        return table.isShowAll();
      }

      return false;
    }
View Full Code Here

    try
    {
      UIXCommand button1 = new UIXCommand();
      button1.setId("commandButton1");
 
      UIXTable table1 = new UIXTable();
      table1.setId("table1");
      UIXPanel rootPanel = new UIXPanel();
      rootPanel.getChildren().add(button1);
      rootPanel.getChildren().add(table1);
     
      String[] triggers = {"::commandButton1"};
View Full Code Here

   
    @Override
    protected boolean getDisclosed(FacesBean bean)
    {
      TableRenderingContext tContext = TableRenderingContext.getCurrentInstance();
      UIXTable table = (UIXTable) tContext.getCollectionComponent();
      return (table.getDisclosedRowKeys().isContained());
    }
View Full Code Here

    String source = parameters.get(XhtmlConstants.SOURCE_PARAM);
    String id = component.getClientId(context);
    if (!id.equals(source))
      return;

    UIXTable table = (UIXTable) component;
    Object eventParam = parameters.get(XhtmlConstants.EVENT_PARAM);
    if (XhtmlConstants.GOTO_EVENT.equals(eventParam))
    {
      _decodeGoto(table, parameters);
    }
View Full Code Here

      TableRenderingContext tContext =
        TableRenderingContext.getCurrentInstance();
      UIComponent component = tContext.getTable();
      if (component instanceof UIXTable)
      {
        UIXTable table = (UIXTable) component;
        return table.isShowAll();
      }

      return false;
    }
View Full Code Here

{
  public void sendContent(FacesContext context, OutputStream out)
    throws IOException
  {
    Writer outw = new OutputStreamWriter(out, "UTF-8");
    UIXTable table = getTable();
    Object rowKey = table.getRowKey();
    for (int i = 0; i < table.getRowCount(); i++)
    {
      table.setRowIndex(i);
      if (!table.isRowAvailable())
        break;
      _exportRow(table, outw);
    }

    outw.flush();
    table.setRowKey(rowKey);
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.component.UIXTable

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.