Package starlight.taliis.core

Examples of starlight.taliis.core.ZeroTerminatedString


      int tv = ((Number)t).intValue();
     
      int type = archive.getColType(col);

      if(type==dbc.COL_TYPE_STRING) {
        ZeroTerminatedString tmp = archive.getStringByOffset(tv);
        if(tmp==null) System.err.println("ERROR! String " + tv + " not found! " + col);
        return tmp;
      }
      else if(type==dbc.COL_TYPE_FLOAT) {
        //TODO: this makes the values HORROBLE rounded! find a better way!
View Full Code Here


    public String getColumnName(int col) {
        return columnNames[col];
    }

    public Object getValueAt(int row, int col) {
      ZeroTerminatedString tmp = archive.getString(row);
     
      if(col==0) return tmp.getInitOffset();
      if(col==1) return tmp.toString();
     
      else return "error";
    }
View Full Code Here

    public Component getTableCellEditorComponent(
            JTable table, Object value,
            boolean isSelected, int rowIndex, int colIndex )
    {
      if(value instanceof ZeroTerminatedString) {
        ZeroTerminatedString tmp = (ZeroTerminatedString)value;
        component.setText("" + tmp.getInitOffset());
      }
      return component;
    }
View Full Code Here

TOP

Related Classes of starlight.taliis.core.ZeroTerminatedString

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.