Package org.swingml.model

Examples of org.swingml.model.TableDataModel


  /**
   * Try the text field first, if its null, try the value field.
   */
  public String getText(int row, int col) {
    String result = "";
    TableDataModel tdm = (TableDataModel) values[row][col];
    if (tdm.getText() != null) {
      result = tdm.getText();
    } else {
      if (tdm.getValue() != null) {
        result = tdm.getValue().toString();
      }
    }
    return result;
  }
View Full Code Here


  /**
   * Try the value field first, if its null, try the text field.
   */
  public String getValue(int row, int col) {
    String result = "";
    TableDataModel tdm = (TableDataModel) values[row][col];
    if (tdm.getValue() != null) {
      result = tdm.getValue().toString();
    } else {
      if (tdm.getText() != null) {
        result = tdm.getText();
      }
    }
    return result;
  }
View Full Code Here

    }
    return row < values.length;
  }

  public boolean isEditable(int row, int col) {
    TableDataModel dm = (TableDataModel) values[row][col];
    return dm.isEditable();
  }
View Full Code Here

TOP

Related Classes of org.swingml.model.TableDataModel

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.