public String getColumnName(int columnIndex) {
    if (columnIndex >= 0 && columnIndex < 5) {
      switch (columnIndex) {
        case 0: return "Event";
        case 1: return "Time";
        case 2: return "Start";
        case 3: return "End";
        case 4: return "Module";
      }
    } else {
      int extra = getExtraColumnCount();
      if (columnIndex >= 5 && columnIndex < 5 + extra) {
        return getExtraColumnName(columnIndex - extra);
      }
    }
    throw new IllegalArgumentException("Invalid column index: " + columnIndex);
  }
public String getColumnName ( int columnIndex ) { if ( columnIndex >= 0 && columnIndex < 5 ) { switch ( columnIndex ) { case 0 : return "Event" ; case 1 : return "Time" ; case 2 : return "Start" ; case 3 : return "End" ; case 4 : return "Module" ; } } else { int extra = getExtraColumnCount ( ) ; if ( columnIndex >= 5 && columnIndex < 5 + extra ) { return getExtraColumnName ( columnIndex - extra ) ; } } throw new IllegalArgumentException ( "Invalid column index: " + columnIndex ) ; }
@Override