JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.page
Class JCPageTableFromJCTable

java.lang.Object
  |
  +--com.klg.jclass.page.JCPageTableFromJCTable

public class JCPageTableFromJCTable
extends Object

Creates a JCPageTable from a JClass JCTable.


Field Summary
protected static int[][] alignment_map
           
protected static int defaultColumnWidth
           
 
Constructor Summary
JCPageTableFromJCTable()
           
 
Method Summary
protected static int convertSwingToTextStyleAlignment(int alignment)
          Converts the SwingConstants alignment to a JCTextStyle alignment.
static com.klg.jclass.page.JCPageTable createTable(com.klg.jclass.page.JCDocument doc, com.klg.jclass.table.JCTable jcTable, boolean populate)
          Creates a JCPageTable from a JClass JCTable.
static com.klg.jclass.page.JCPageTable createTable(com.klg.jclass.page.JCDocument doc, com.klg.jclass.table.TableDataModel tableDataModel, boolean populate)
          Creates a JCPageTable from a JClass TableDataModel.
protected static com.klg.jclass.page.JCPageTable createTable(com.klg.jclass.page.JCDocument doc, com.klg.jclass.table.TableDataModel tableDataModel, com.klg.jclass.table.JCTable jcTable, boolean populate)
          Creates a JCPageTable from a JClass JCTable.
static void populateTable(com.klg.jclass.page.JCPageTable table, com.klg.jclass.table.JCTable jcTable)
          Populates an empty JPageTable from the specified JCTable.
static void populateTable(com.klg.jclass.page.JCPageTable table, com.klg.jclass.table.JCTable jcTable, boolean applyJCTableStyles)
          Populates an empty JPageTable from the specified JCTable.
static void populateTable(com.klg.jclass.page.JCPageTable table, com.klg.jclass.table.TableDataModel tableDataModel)
          Populates an empty JCPageTable from the specified TableDataModel.
protected static void populateTable(com.klg.jclass.page.JCPageTable table, com.klg.jclass.table.TableDataModel tableDataModel, com.klg.jclass.table.JCTable jcTable)
          Populates an empty JCPageTable from the specified TableDataModel.
protected static void populateTable(com.klg.jclass.page.JCPageTable table, com.klg.jclass.table.TableDataModel tableDataModel, com.klg.jclass.table.JCTable jcTable, boolean applyJCTableStyles)
          Populates an empty JCPageTable from the specified TableDataModel.
protected static com.klg.jclass.page.JCDrawStyle setDrawStyle(com.klg.jclass.table.CellStyleModel styleModel, com.klg.jclass.page.JCDrawStyle currentDrawStyle)
           
protected static com.klg.jclass.page.JCTextStyle setTextStyle(com.klg.jclass.table.CellStyleModel styleModel, com.klg.jclass.page.JCTextStyle currentStyle)
          Given a CellStyleModel, sets JCTextStyle attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultColumnWidth

protected static int defaultColumnWidth

alignment_map

protected static int[][] alignment_map
Constructor Detail

JCPageTableFromJCTable

public JCPageTableFromJCTable()
Method Detail

createTable

public static com.klg.jclass.page.JCPageTable createTable(com.klg.jclass.page.JCDocument doc,
                                                          com.klg.jclass.table.JCTable jcTable,
                                                          boolean populate)
Creates a JCPageTable from a JClass JCTable.

Parameters:
doc -
jcTable -
populate -
Returns:

createTable

public static com.klg.jclass.page.JCPageTable createTable(com.klg.jclass.page.JCDocument doc,
                                                          com.klg.jclass.table.TableDataModel tableDataModel,
                                                          boolean populate)
Creates a JCPageTable from a JClass TableDataModel.

Parameters:
doc -
populate -
tableDataModel -
Returns:

createTable

protected static com.klg.jclass.page.JCPageTable createTable(com.klg.jclass.page.JCDocument doc,
                                                             com.klg.jclass.table.TableDataModel tableDataModel,
                                                             com.klg.jclass.table.JCTable jcTable,
                                                             boolean populate)
Creates a JCPageTable from a JClass JCTable.

Parameters:
doc -
jcTable -
populate -
tableDataModel -
Returns:

populateTable

public static void populateTable(com.klg.jclass.page.JCPageTable table,
                                 com.klg.jclass.table.JCTable jcTable)
Populates an empty JPageTable from the specified JCTable.

Parameters:
jcTable -
table -

populateTable

public static void populateTable(com.klg.jclass.page.JCPageTable table,
                                 com.klg.jclass.table.TableDataModel tableDataModel)
Populates an empty JCPageTable from the specified TableDataModel.

Parameters:
table -
tableDataModel -

populateTable

public static void populateTable(com.klg.jclass.page.JCPageTable table,
                                 com.klg.jclass.table.JCTable jcTable,
                                 boolean applyJCTableStyles)
Populates an empty JPageTable from the specified JCTable.

Parameters:
table -
jcTable -

convertSwingToTextStyleAlignment

protected static int convertSwingToTextStyleAlignment(int alignment)
Converts the SwingConstants alignment to a JCTextStyle alignment.

Parameters:
alignment -
Returns:

setTextStyle

protected static com.klg.jclass.page.JCTextStyle setTextStyle(com.klg.jclass.table.CellStyleModel styleModel,
                                                              com.klg.jclass.page.JCTextStyle currentStyle)
Given a CellStyleModel, sets JCTextStyle attributes.

Parameters:
styleModel -
currentStyle -
Returns:

setDrawStyle

protected static com.klg.jclass.page.JCDrawStyle setDrawStyle(com.klg.jclass.table.CellStyleModel styleModel,
                                                              com.klg.jclass.page.JCDrawStyle currentDrawStyle)

populateTable

protected static void populateTable(com.klg.jclass.page.JCPageTable table,
                                    com.klg.jclass.table.TableDataModel tableDataModel,
                                    com.klg.jclass.table.JCTable jcTable)
Populates an empty JCPageTable from the specified TableDataModel.

Parameters:
table -
jcTable -
tableDataModel -

populateTable

protected static void populateTable(com.klg.jclass.page.JCPageTable table,
                                    com.klg.jclass.table.TableDataModel tableDataModel,
                                    com.klg.jclass.table.JCTable jcTable,
                                    boolean applyJCTableStyles)
Populates an empty JCPageTable from the specified TableDataModel.

Parameters:
jcTable -
table -
tableDataModel -

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