Examples of RowInfo


Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.RowInfo

      // set text
      m_feedback.setText("row: " + index);
    }
    // prepare command
    {
      RowInfo row = (RowInfo) headerEditPart.getDimension();
      final int sourceIndex = row.getIndex();
      if (index == sourceIndex || index == sourceIndex + 1) {
        m_moveCommand = Command.EMPTY;
      } else {
        m_moveCommand = new EditCommand(m_layout) {
          @Override
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.RowInfo

    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    //
    List<RowInfo> rows = layout.getRows();
    assertThat(rows).hasSize(2);
    {
      RowInfo row = rows.get(0);
      assertEquals(0, row.getIndex());
      assertFalse(row.isEmpty());
    }
    {
      RowInfo row = rows.get(1);
      assertEquals(1, row.getIndex());
      assertFalse(row.isEmpty());
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.RowInfo

    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    //
    List<RowInfo> rows = layout.getRows();
    assertThat(rows).hasSize(2);
    {
      RowInfo row = rows.get(0);
      assertEquals(0, row.getIndex());
      assertFalse(row.isEmpty());
    }
    {
      RowInfo row = rows.get(1);
      assertEquals(1, row.getIndex());
      assertTrue(row.isEmpty());
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.layout.table.RowInfo

      // set text
      m_feedback.setText("row: " + index);
    }
    // prepare command
    {
      RowInfo row = (RowInfo) headerEditPart.getDimension();
      final int sourceIndex = row.getIndex();
      if (index == sourceIndex || index == sourceIndex + 1) {
        m_moveCommand = Command.EMPTY;
      } else {
        m_moveCommand = new EditCommand(m_layout) {
          @Override
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.layout.table.RowInfo

    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    //
    List<RowInfo> rows = layout.getRows();
    assertThat(rows).hasSize(2);
    {
      RowInfo row = rows.get(0);
      assertEquals(0, row.getIndex());
      assertFalse(row.isEmpty());
    }
    {
      RowInfo row = rows.get(1);
      assertEquals(1, row.getIndex());
      assertFalse(row.isEmpty());
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.layout.table.RowInfo

    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    //
    List<RowInfo> rows = layout.getRows();
    assertThat(rows).hasSize(2);
    {
      RowInfo row = rows.get(0);
      assertEquals(0, row.getIndex());
      assertFalse(row.isEmpty());
    }
    {
      RowInfo row = rows.get(1);
      assertEquals(1, row.getIndex());
      assertTrue(row.isEmpty());
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.grid.RowInfo

    }
    // row is not empty
    {
      List<RowInfo> rows = panel.getRows();
      assertThat(rows).hasSize(1);
      RowInfo row = rows.get(0);
      assertFalse(row.isEmpty());
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.grid.RowInfo

    }
    // row is not empty
    {
      List<RowInfo> rows = panel.getRows();
      assertThat(rows).hasSize(1);
      RowInfo row = rows.get(0);
      assertFalse(row.isEmpty());
    }
  }
View Full Code Here

Examples of com.scooterframework.orm.sqldataexpress.object.RowInfo

    try {
      Map<String, Object> inputs = new HashMap<String, Object>();
      StringBuilder strBuffer = new StringBuilder();
      ColumnInfo ci = null;
      RowInfo ri = home.getRowInfo();
      for (Map.Entry<String, Object> entry : fieldData.entrySet()) {
        String field = entry.getKey();
        if (field == null) continue;

        ci = ri.getColumnInfo(field);
        if (!ri.isValidColumnName(field) || ci.isReadOnly()
            || !ci.isWritable() || ci.isPrimaryKey())
          continue;

        String token = getUniqueToken(field, conditionsSQLData, true);
        strBuffer.append(field).append(" = ?").append(token).append(", ");
View Full Code Here

Examples of com.scooterframework.orm.sqldataexpress.object.RowInfo

  @Override
  protected Map<String, Object> getTemplateProperties() {
    Map<String, Object> templateProps = new HashMap<String, Object>();

    List<Map<String, Object>> columns = new ArrayList<Map<String, Object>>();
    RowInfo ri = O.rowInfoOf(recordHome);
    Iterator<ColumnInfo> it = O.columns(recordHome);
    while(it.hasNext()) {
      ColumnInfo ci = it.next();
      String columnName = ci.getColumnName();
        boolean isAuditedColumn = ri.isAuditedForCreateOrUpdate(columnName);
        if (isAuditedColumn) continue;

        if (ci.isAutoIncrement()) continue;

      String columnNameLower = columnName.toLowerCase();
      boolean isRequired = ri.isRequiredColumn(columnName);
        boolean isLongText = ri.isLongTextColumn(columnName, 255);
        boolean isDateColumn = ri.isDateColumn(columnName);
        boolean isTimestampColumn = ri.isTimestampColumn(columnName);
        int size = 80;
        if (isDateColumn || isTimestampColumn) {
          size = 30;
        }
        else if (isLongText) {
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.