JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table.beans
Class DataWrapper

java.lang.Object
  |
  +--com.klg.jclass.table.beans.DataWrapper
All Implemented Interfaces:
Serializable

public class DataWrapper
extends Object
implements Serializable

DataWrapper wraps up string representations of the table data. It is used for the data property in LiveTable.

See Also:
Serialized Form

Field Summary
 String[][] cellValues
           
 String[] columnLabels
           
 int columns
           
 String fileName
           
 boolean isFile
           
 String[] rowLabels
           
 int rows
           
 
Constructor Summary
DataWrapper(int rows, int columns, String[] rowLabels, String[] columnLabels, String[][] cellValues)
          Creates an DataWrapper for the given dimentions and the three arrays representing the labels table data.
DataWrapper(String fileName)
          Creates an DataWrapper for the given dimentions and the three arrays representing the labels table data.
DataWrapper(com.klg.jclass.table.TableDataModel model)
          Creates a DataWrapper given a general Table Data Model
 
Method Summary
 String getJavaInitializationString()
          Returns a fragment of Java code representing an initializer for the current value.
protected  String makeArrayString(String[] stringArray)
           
protected  String makeArrayString(String[][] stringArray)
           
protected  String makeFileName()
           
 String toString()
          Returns a representation of this wrapper values as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isFile

public boolean isFile

fileName

public String fileName

rows

public int rows

columns

public int columns

rowLabels

public String[] rowLabels

columnLabels

public String[] columnLabels

cellValues

public String[][] cellValues
Constructor Detail

DataWrapper

public DataWrapper(int rows,
                   int columns,
                   String[] rowLabels,
                   String[] columnLabels,
                   String[][] cellValues)
Creates an DataWrapper for the given dimentions and the three arrays representing the labels table data.

Parameters:
rows - int number of rows in the table data model.
columns - int number of columns in the table data model.
rowLabels - String[] row labels.
columnLabels - String[] column labels.
cellValues - String[][] cell data.

DataWrapper

public DataWrapper(String fileName)
Creates an DataWrapper for the given dimentions and the three arrays representing the labels table data.

Parameters:
fileName - String data source file name.

DataWrapper

public DataWrapper(com.klg.jclass.table.TableDataModel model)
Creates a DataWrapper given a general Table Data Model

Parameters:
model - The Table Data Model
Method Detail

toString

public String toString()
Returns a representation of this wrapper values as a string.

Overrides:
toString in class Object
Returns:
a string that must be used by a property editor.

getJavaInitializationString

public String getJavaInitializationString()
Returns a fragment of Java code representing an initializer for the current value.

Returns:
a string that must be used by a property editor.

makeFileName

protected String makeFileName()

makeArrayString

protected String makeArrayString(String[] stringArray)

makeArrayString

protected String makeArrayString(String[][] stringArray)

Copyright © 2004 Quest Software Inc..
All rights reserved.