2 Replies Latest reply: May 24, 2012 2:02 PM by 804628 RSS

    Iterate a TableColumns cell factory

    804628
      How to iterate a cell factory of a table columns cell and change its alignment property at run time.

      Thanks.
        • 1. Re: Iterate a TableColumns cell factory
          jsmith
          How to iterate a cell factory of a table columns cell and change its alignment property
          I don't understand this question. A CellFactory doesn't have an alignment. A CellFactory produces Cells. Cells can be aligned, but not CellFactories.
          Please describe what are you trying to accomplish (preferably without mention of factory), for example, user clicks on a button and sees <insert text here> happen.

          How to iterate the cell factories of a table:
          for (TableColumn c: table.getColumns()) {
            Callback cellFactory = c.getCellFactory();
            System.out.println(cellFactory);
          }
          • 2. Re: Iterate a TableColumns cell factory
            804628
            Thanks. Apologies for not being clear in the question. But i got what i was looking for.