Examples of TableCell


Examples of org.fest.swing.data.TableCell

    table = window.table;
  }

  @Test
  public void should_return_true_if_only_one_row_and_only_one_column_are_selected() {
    TableCell cell = row(0).column(2);
    selectCells(table, cell, cell);
    robot.waitForIdle();
    assertThat(isCellSelected(table, 0, 2)).isTrue();
  }
View Full Code Here

Examples of org.fest.swing.data.TableCell

*/
final class JTableMatchingCellQuery {
  @RunsInEDT
  static @Nonnull TableCell cellWithValue(final @Nonnull JTable table, final @Nonnull TextMatcher matcher,
      final @Nonnull JTableCellReader cellReader) {
    TableCell result = execute(new GuiQuery<TableCell>() {
      @Override
      protected TableCell executeInEDT() {
        return findMatchingCell(table, matcher, cellReader);
      }
    });
View Full Code Here

Examples of org.fest.swing.data.TableCell

  }

  @Test
  public void should_return_cell_with_given_text() {
    String value = createCellValueFrom(row, column);
    TableCell cell = driver.cell(table, value);
    assertThat(cell.row).isEqualTo(row);
    assertThat(cell.column).isEqualTo(column);
    assertThatCellReaderWasCalled();
  }
View Full Code Here

Examples of org.fest.swing.data.TableCell

   * @throws ActionFailedException if a matching cell could not be found.
   */
  @RunsInEDT
  public TableCell cell(JTable table, TableCellFinder cellFinder) {
    if (cellFinder == null) throw new NullPointerException("The cell finder to use should not be null");
    TableCell cell = cellFinder.findCell(table, cellReader);
    validateCellIndices(table, cell);
    return cell;
  }
View Full Code Here

Examples of org.foray.fotree.fo.obj.TableCell

            return new TableCaption(parent, propertyList);
        }
        case TABLE_CELL: {
            if (parent instanceof TableRow) {
                final TableRow parentRow = (TableRow) parent;
                return new TableCell(parentRow, propertyList);
            }
            if (parent instanceof AbstractTablePart) {
                final AbstractTablePart tablePart = (AbstractTablePart) parent;
                return new TableCell(tablePart, propertyList);
            }
            throwException(locator, "fo:" + enumeration.toXslFo()
                    + " must be child of fo:table-row, fo:table-body, " +
                            "fo:table-header, or fo:table-footer.");
            return null;
View Full Code Here

Examples of org.jfree.layouting.renderer.model.table.cells.TableCell

        {
          // ok, we can take the shortcut ..
          final int cellCount = rowInfoStructure.getCellCount();
          for (int i = 0; i < cellCount; i++)
          {
            final TableCell cellAt = rowInfoStructure.getCellAt(i);
            expectedRows = Math.max (expectedRows, cellAt.getRowSpan() - 1);
          }
        }
        else
        {
          // the slow-lane: Look at the already declared cells ..
View Full Code Here

Examples of org.mcarthur.sandy.gwt.table.client.TableCell

            final String[] rgs = ptm.getRowGroupSpec().split(" ");

            final TableRow tr = rowGroup.newTableRow();
            for (int i=0; i < rgs.length; i++) {
                final PropertyDescriptor pd = (PropertyDescriptor)propertyDescriptorsMap.get(rgs[i]);
                final TableCell tc = tr.newTableDataCell();
                tc.add(pd.createWidget(obj));
                tr.add(tc);
            }
            rowGroup.add(tr);
        }
View Full Code Here

Examples of org.mcarthur.sandy.gwt.table.client.TableCell

        public void render(final Object obj, final TableBodyGroup rowGroup) {
            final Person person = (Person)obj;

            final TableRow tr = rowGroup.newTableRow();

            final TableCell a = tr.newTableDataCell();
            final CheckBox checkBox = new CheckBox();
            checkBox.setEnabled(false);
            checkBox.setTitle("Doesn't do anything.");
            a.add(checkBox);
            a.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
            a.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
            a.setRowSpan(2);
            tr.add(a);

            final TableCell nameCell = tr.newTableDataCell();
            nameCell.addStyleName("name");
            final TextBox tb = new TextBox();
            tb.addChangeListener(new ChangeListener() {
                public void onChange(final Widget sender) {
                    final TextBox tb = (TextBox)sender;
                    person.setName(tb.getText());
                }
            });
            tb.addKeyboardListener(new KeyboardListenerAdapter() {
                public void onKeyUp(final Widget sender, final char keyCode, final int modifiers) {
                    super.onKeyUp(sender, keyCode, modifiers);
                    if (KeyboardListener.KEY_ENTER == keyCode) {
                        final TextBox tb = (TextBox)sender;
                        tb.setFocus(false);
                    }
                }
            });
            tb.addFocusListener(new FocusListenerAdapter() {
                public void onFocus(final Widget sender) {
                    tb.setSelectionRange(0, tb.getText().length());
                }
            });
            tb.setText(person.getName());
            nameCell.add(tb);
            tr.add(nameCell);

            final TableCell ageCell = tr.newTableDataCell();
            ageCell.addStyleName("age");
            //ageCell.add(new Label(Integer.toString(person.getAge())));
            ageCell.add(new AgeLabel(person.getAge()));
            ageCell.setWidth("5em");
            ageCell.setAlignment(HasHorizontalAlignment.ALIGN_CENTER, HasVerticalAlignment.ALIGN_MIDDLE);
            tr.add(ageCell);

            final TableCell removeCell = tr.newTableDataCell();
            removeCell.addStyleName("remove");
            final Button button = new Button("Remove");
            button.addClickListener(new ClickListener() {
                public void onClick(final Widget sender) {
                    ot.getObjects().remove(person);
                }
            });
            removeCell.add(button);
            tr.add(removeCell);

            rowGroup.add(tr);

            final TableRow tr2 = rowGroup.newTableRow();
            final TableCell tc2 = tr2.newTableDataCell();
            tc2.addStyleName("random");
            tc2.add(new Label("Something " + Math.random()));
            //tc2.add(makeMenuBar());
            tc2.setColSpan(3);

            tc2.setAxis("summary");
            tr2.add(tc2);
            rowGroup.add(tr2);
        }
View Full Code Here

Examples of org.netbeans.web.action.StatisticsAction.TableCell

        addExc(cal.getTime(), last);

        ArrayList<TableCell> cellData = new StatisticsAction().recountData(true);
        assertNotNull(cellData);
        assertEquals(12, cellData.size());
        TableCell tableCell = cellData.get(0);
        assertEquals(6, tableCell.getAllReports());
        assertEquals(3, tableCell.getNonDuplicateReports());

        last = addExc(cal.getTime(), null, 1);
        addExc(cal.getTime(), null, 2);
        addExc(cal.getTime(), last, 3);
        last = addExc(cal.getTime(), last, 4);
        addExc(cal.getTime(), last, 4);

        cellData = new StatisticsAction().recountData(true);
        assertNotNull(cellData);
        assertEquals(12, cellData.size());
        tableCell = cellData.get(0);
        assertEquals(11, tableCell.getAllReports());
        assertEquals(5, tableCell.getNonDuplicateReports());
        assertEquals(0, tableCell.getResolved());
        assertEquals(0, tableCell.getFixed());
    }
View Full Code Here

Examples of simplesheet.model.cell.TableCell

    }

    @Override
    public TableCell getValueAt(CellPosition pos) {
        CellPosition point = getOrigin(pos);
        TableCell cell = cells[point.row][point.col];
        if(cell == null) {
            return EMPTY_CELL;
        }
        return cell;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.