es.unex.sextante.additionalInfo
Class AdditionalInfoFixedTable

java.lang.Object
  extended by es.unex.sextante.additionalInfo.AdditionalInfoFixedTable
All Implemented Interfaces:
AdditionalInfo

public class AdditionalInfoFixedTable
extends java.lang.Object
implements AdditionalInfo

Additional info for a parameter representing a fixed table

Author:
Victor Olaya volaya@unex.es

Constructor Summary
AdditionalInfoFixedTable(java.lang.String[] sCols, int iRows, boolean bIsNumberOfRowsFixed)
          Constructor
 
Method Summary
 java.lang.String[] getCols()
          Returns an array with column names
 int getColsCount()
          Returns the number of columns
 int getRowsCount()
          Returns the number of rows
 java.lang.String getTextDescription()
           
 boolean isNumberOfRowsFixed()
          Returns whether the number of rows is fixed or not
 void setCols(java.lang.String[] sCols)
          Sets the name of the columns
 void setIsNumberOfRowsFixed(boolean bIsNumberOfRowsFixed)
          Sets whether the number of rows is fixed or not
 void setRows(int iRows)
          Sets the number of rows
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdditionalInfoFixedTable

public AdditionalInfoFixedTable(java.lang.String[] sCols,
                                int iRows,
                                boolean bIsNumberOfRowsFixed)
Constructor

Parameters:
sCols - the number of columns
iRows - the number of rows
bIsNumberOfRowsFixed - true if the number of rows cannot be modified
Method Detail

getColsCount

public int getColsCount()
Returns the number of columns

Returns:
the number of columns

getCols

public java.lang.String[] getCols()
Returns an array with column names

Returns:
the names of the columns

setCols

public void setCols(java.lang.String[] sCols)
Sets the name of the columns

Parameters:
sCols - an array with column names

getRowsCount

public int getRowsCount()
Returns the number of rows

Returns:
the number of rows

setRows

public void setRows(int iRows)
Sets the number of rows

Parameters:
iRows - the newn umber of rows

isNumberOfRowsFixed

public boolean isNumberOfRowsFixed()
Returns whether the number of rows is fixed or not

Returns:
True if the number of rows cannot be modified

setIsNumberOfRowsFixed

public void setIsNumberOfRowsFixed(boolean bIsNumberOfRowsFixed)
Sets whether the number of rows is fixed or not

Parameters:
bIsNumberOfRowsFixed - True if the number of rows cannot be modified

getTextDescription

public java.lang.String getTextDescription()
Specified by:
getTextDescription in interface AdditionalInfo