Code Snippets

-----------------------------------------------------------------------------------

int getClickedColumn()

Description :

Returns the number of the column the user has clicked or double clicked in a table

Example 

DataFrameBean PoMaster ; 
int clickedColumn =  PoMaster.getClickedColumn();

-----------------------------------------------------------------------------------

int getClickedRow()

Description

Returns the number of the row the user has clicked or double-clicked in a table

Example

DataFrameBean PoMaster ;
int clickedRow =  PoMaster.getClickedRow();

-----------------------------------------------------------------------------------

int getColumnCount()

Description

Returns number of columns in a table

Example 

DataFrameBean PoMaster ; 
int columnCount =  PoMaster.getColumnColumnCount();

-----------------------------------------------------------------------------------

Vector getData()

Decription

Returns the two dimensional  data retrieved fron view table.

Example

DataFrameBean PoMaster ; 
Vector data =  PoMaster.getData();

-----------------------------------------------------------------------------------

java.util.Date getDate(int  row,String  columnName) 

Description

Returns the value of date field from table.

Example
	
DataFrameBean PoMaster ;
Date date  =  PoMaster.getDate(int row , String columnName);

-----------------------------------------------------------------------------------

double getDouble(int  row,String  columnName) 

Description

Returns the value of date field from table.

Example

DataFrameBean PoMaster ;
Double var =  PoMaster.getDouble(int row , String columnName);

-----------------------------------------------------------------------------------

Hashtable getHashtableModel()

Description

Returns the two dimensional data in HashtableModel

Example

DataFrameBean PoMaster ;
Hashtable data =  PoMaster.getHashtableModel();

-----------------------------------------------------------------------------------

String getStringModel()

Description

Returns the data in two dimensional string Model.

Example

DataFrameBean PoMaster 
String[ ][ ] data =  PoMaster.getStringModel();

-----------------------------------------------------------------------------------

Object getObjectModel()

Description

Returns the data in two dimensional Object Model.

Example

DataFrameBean PoMaster ; 
Object[ ][ ] data =  PoMaster.getObjectModel();

-----------------------------------------------------------------------------------

String getColDataType(String columnName)

Description

Returns the Database column type of the column ( Int / Varchar etc )

Example

DataFrameBean PoMaster ; 
String columnType =  PoMaster.getColDataType(columnName);

-----------------------------------------------------------------------------------

String getColFormat(String columnName)

Description

Returns the format of the column 

Example

DataFrameBean PoMaster ; 
String format =  PoMaster.getColFormat(columnName);

-----------------------------------------------------------------------------------

String getColHash(String columnName)

Description 

Returns the properties of the column like ColumnType,UI,etc.,

Example

DataFrameBean PoMaster ; 
Hashtable properties =  PoMaster.getColHash(columnName);

-----------------------------------------------------------------------------------

String getColInitialValue(String columnName)

Description

Returns the initial value of the column 

Example
 
DataFrameBean PoMaster ; 
String  initialValue =  PoMaster.getColInitialValue(columnName);

-----------------------------------------------------------------------------------

String getColName(int columnPosition)
 
Description

Returns the column name 

Example
DataFrameBean PoMaster ; 
String columnName =  PoMaster.getColName(columnPosition);

-----------------------------------------------------------------------------------

String getColName(String columnDescription)

Description

Returns the column name corresponding to the description in the view table.

Example
 
DataFrameBean PoMaster ; 
String columnName =  PoMaster.getColName(columnPosition);

-----------------------------------------------------------------------------------

String[] getColNames()
 
Description

It return the column names in the view table.

Example

DataFrameBean PoMaster ; 
String[ ] columnNames =  PoMaster.getColNames();

-----------------------------------------------------------------------------------

int getColPosition(String columnName)
 
Description

Returns the position of the column in the table.

Example

DataFrameBean PoMaster ; 
int position = PoMaster.getColPosition(columnName);

-----------------------------------------------------------------------------------

String getColText(String columnName ) 
 
Description

Returns the description of the column from the view table.

Example
 
DataFrameBean PoMaster ; 
String description = PoMaster.getColText(field name);

-----------------------------------------------------------------------------------
 
String getColUI(String columnName)

Description

Returns the  specified  UI

Example
 
DataFrameBean PoMaster ; 
String uIName = PoMaster.getColUI(columnName);

-----------------------------------------------------------------------------------

int getColUIWidth(String columnName)

Description

Returns the width of the UI 

Example
 
DataFrameBean PoMaster ; 
int uIWidth = PoMaster.getColUIWidth(columnName);

-----------------------------------------------------------------------------------

String getColumnType(String columnName)
 
Description

Returns the column type of the field.( key,computed or detail) 

Example
 
DataFrameBean PoMaster ;
String type = PoMaster ;.getColumnType(columnName);

-----------------------------------------------------------------------------------

String getDataObject()
 
Description

Returns the dataObject name of view table 

Example
 
DataFrameBean PoMaster ; 
String dataObject = PoMaster ;.getDataObject();

-----------------------------------------------------------------------------------

Vector getDefaultRow()
 
Description

Returns the row in the view table containing initial value of the fields.

Example
 
DataFrameBean PoMaster ; 
Vector data = PoMaster.getDefaultRow();

-----------------------------------------------------------------------------------

Vector getFormatedRow(Vector parsedRow)

Description

Returns the vector containing formated row values 

Example
 
DataFrameBean PoMaster ; 
Vector data = PoMaster.getFormatedRow(vector contain values for single row); //types are according to table structure

-----------------------------------------------------------------------------------

String getIPAddress()
 
Description

Returns the IPAddress if the Transport Type is  servlet.

Example
 
DataFrameBean PoMaster ; 
String iPAddress = PoMaster.getIPAddress();

-----------------------------------------------------------------------------------

Vector getKeyCols()

Description

Returns the primary key columns of the table.

Example
 
DataFrameBean PoMaster ; 
Vector keys = PoMaster.getKeyCols();

----------------------------------------------------------------------------------- 

int getKeyCount()

Description

Returns the number of keys in the table.

Example
 
DataFrameBean PoMaster ; 
int count = PoMaster.getKeyCount();

-----------------------------------------------------------------------------------

String getReturnCol() 

Description

Returns the returncolumn name when column UI is DataSubFrame

-----------------------------------------------------------------------------------

Vector getTabFieldName()
 
Description

Returns the field names of the view Table.

Example
 
DataFrameBean PoMaster ; 
Vector fieldNames = getTabFieldName();

-----------------------------------------------------------------------------------

Vector getTabFieldText()

Description

Returns the field descriptions of the view Table.

-----------------------------------------------------------------------------------

String getTableDescription()
 
Description

Returns the description of the view Table.

Example
 
DataFrameBean PoMaster ; 
String description = PoMaster.getTableDescription();

-----------------------------------------------------------------------------------

String getTableName()
 
Description

Returns the table name.

Example
 
DataFrameBean PoMaster ; 
String tableName = PoMaster.getTableName();

-----------------------------------------------------------------------------------

String getTableUI()

Description

Returns the UI name .(InternalFrame  / splitPane / TabbedPane )

Example
 
DataFrameBean PoMaster ; 
String tableUI = PoMaster.getTableUI();

-----------------------------------------------------------------------------------

int getTableWidth()
 
Description

Returns the width of the table.

Example
 
DataFrameBean PoMaster ; 
int tableWidth = PoMaster.getTableWidth();

-----------------------------------------------------------------------------------

String getTransportType()
 
Description

Returns data TransportType (Jdbc or Servlet)

Example
 
DataFrameBean PoMaster ; 
String traType = PoMaster.getTransportType();

-----------------------------------------------------------------------------------

String getValueSource(String columnName )
 
Description

Returns valuesource when column is DataSubFrame / MetaModel

Example
 
DataFrameBean PoMaster ; 
String  tableUI = PoMaster.getValueSource(columnName);

-----------------------------------------------------------------------------------

boolean isColEditable(String columnName)
 
Description

Returns whether the given Column is Editable or Not

Example
 
DataFrameBean PoMaster ; 
boolean flag = PoMaster.isColEditable(columnName);

-----------------------------------------------------------------------------------

boolean isColRequired(String  columnName)

Description

Returns whether the given Column is Required or Not

Example
 
DataFrameBean PoMaster ; 
boolean flag = PoMaster.isColRequired(columnName);

-----------------------------------------------------------------------------------

boolean isColVisible(String columnName)
 
Description

Returns whether the column is Visible or not

Example
 
DataFrameBean PoMaster ; 
boolean flag = PoMaster.isColVisible(columnName);

-----------------------------------------------------------------------------------

boolean isComputedColumn(String  columnName)

Description
 
Returns whether the column is Computed or not

Example
 
DataFrameBean PoMaster ; 
boolean flag = PoMaster.isComputedColumn(columnName);

-----------------------------------------------------------------------------------

boolean isDataSubFrameCol(String columnName)

Description
  
Returns whether the column contains dataSubFrame or not	

Example
 
DataFrameBean PoMaster ; 
boolean flag =