Java Doc for TableArea.java in  » IDE-Netbeans » etl.project » org » netbeans » modules » sql » framework » ui » graph » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » etl.project » org.netbeans.modules.sql.framework.ui.graph.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.sql.framework.ui.graph.impl.CanvasArea
   org.netbeans.modules.sql.framework.ui.graph.impl.TableArea

All known Subclasses:   org.netbeans.modules.sql.framework.ui.view.graph.SQLTableArea,  org.netbeans.modules.sql.framework.ui.view.join.SQLTableArea,
TableArea
public class TableArea extends CanvasArea implements IGraphInterface,ICanvasInterface(Code)

author:
   Ritesh Adval
version:
   $Revision$


Field Summary
final public static  intAUTO_RESIZE_ALL_COLUMNS
     During all resize operations, proportionately resize all columns.
final public static  intAUTO_RESIZE_LAST_COLUMN
     During all resize operations, apply adjustments to the last column only.
final public static  intAUTO_RESIZE_NEXT_COLUMN
     When a column is adjusted in the UI, adjust the next column the opposite way.
final public static  intAUTO_RESIZE_SUBSEQUENT_COLUMNS
     During UI adjustment, change subsequent columns to preserve the total width; this is the default behavior.
final public static  intFIRST_VISIBLE_COLUMN_CHANGED
     Event fired when first visible column in the table is changed.
final public static  intFIRST_VISIBLE_ROW_CHANGED
     Event fired when first visible row in the table is changed.
final public static  intLAST_VISIBLE_COLUMN_CHANGED
     Event fired when last visible column in the table is changed.
final public static  intLAST_VISIBLE_ROW_CHANGED
     Event fired when last visible row in the table is changed.
protected  ArrayListcolumnAreas
    
protected  TableHeaderAreaheaderArea
     Table header for this table.
protected  ColumnPortArealeftPortArea
     Left port area.
protected  ColumnPortArearightPortArea
     Right port area.
protected  inttableType
     Table type.

Constructor Summary
public  TableArea()
    
protected  TableArea(int tType)
     Creates new instance of table.
public  TableArea(String[][] rowData, String[] columnNames)
     Creates an instance of table area based on row data and column name.
public  TableArea(String[][] rowData, String[] columnNames, int tType)
     Creates an instance of table area based on row data and column name and table type.

Method Summary
public  voidaddColumn(String columnName)
     Adds the column cell in the table header.
public  voidaddItem(int row, int col, String val, String toolTip)
     Adds item to this table.
public  voidaddItem(int row, int col, SQLDBColumn data, String toolTip)
     Adds item to this table.
public  voidcopyNewValueForRedo(JGoDocumentChangedEdit e)
    
protected  voidgeometryChange(Rectangle prevRect)
     Overrides parent method to handle the changes in the geometry of this area.
public  ColumnAreagetColumnArea(int index)
    
public  intgetColumnCount()
     Gets column count in this area.
public  intgetFirstVisibleColumn()
     Gets the first visible column of the table.
public  intgetFirstVisibleRow()
     Gets the first visible row of this table.
public  JGoScrollBargetHorizontalScrollBar()
     Gets the horizontal scrollbar.
public  ColumnPortAreagetInputPortArea()
    
public  intgetLastVisibleColumn()
     Gets the last visible column in this table.
public  intgetLastVisibleRow()
     Gets the last visible row in this table.
public  IGraphPortgetLeftGraphPort(int row)
    
public  ColumnPortAreagetLeftPortArea()
     Gets the left port area of the table.
public  intgetMaximumCellHeight(int row)
     Gets height of the tallest column cell for a given row.
public  intgetMaximumHeight()
     Gets the maximum height of this table.
public  intgetMaximumWidth()
     Gets the maximum width which will allow us to show all the columns properly with no excess whitespace surrounding the column with the longest name.
public  intgetMinimumHeight()
     Gets the minimum height of this table.
public  intgetMinimumWidth()
    
public  ColumnPortAreagetOutputPortArea()
    
public  IGraphPortgetRightGraphPort(int row)
    
public  ColumnPortAreagetRightPortArea()
     Gets the right port area of the table.
public  intgetRowCount()
     Gets the row count in this table area.
public  intgetTableType()
     Gets table type.
public  RectanglegetTitleAreaBounds()
    
public  JGoScrollBargetVerticalScrollBar()
     Gets the vertical scrollbar.
public  intgetVisibleRowTableHeights()
     Gets the height of all visible rows in this table.
protected  voidinitGui()
     Initializes GUI components.
public  voidinitialize(int tType)
     Initialize the table.
public  booleanisExpanded()
     Indicates whether table is expanded.
public  voidlayoutChildren()
     Lays out all the children of this table area.
public  voidremoveAll()
     Removes all of the child objects in this area.
public  voidremoveItem(int row, int col)
    
public  voidsetBackgroundColor(Color c)
    
public  voidsetExpanded(boolean sExpanded)
     Sets table mode as expanded.
public  voidsetFirstVisibleColumn(int colIdx)
     Sets the first visible column in this table.
public  voidsetFirstVisibleRow(int rowIdx)
     Sets the first visible row of the table.
public  voidsetHeaders(String[] columnNames)
     Sets the header on this table.
public  voidsetShowHeader(boolean show)
    
public  voidsetTableType(int tType)
     Sets table type.
public  voidsetValueAt(int row, int col, String val)
     Sets the value of a particular cell.
public  voidupdateVerticalScrollBar()
     Updates the vertical scrollbar.

Field Detail
AUTO_RESIZE_ALL_COLUMNS
final public static int AUTO_RESIZE_ALL_COLUMNS(Code)
During all resize operations, proportionately resize all columns.



AUTO_RESIZE_LAST_COLUMN
final public static int AUTO_RESIZE_LAST_COLUMN(Code)
During all resize operations, apply adjustments to the last column only.



AUTO_RESIZE_NEXT_COLUMN
final public static int AUTO_RESIZE_NEXT_COLUMN(Code)
When a column is adjusted in the UI, adjust the next column the opposite way.



AUTO_RESIZE_SUBSEQUENT_COLUMNS
final public static int AUTO_RESIZE_SUBSEQUENT_COLUMNS(Code)
During UI adjustment, change subsequent columns to preserve the total width; this is the default behavior.



FIRST_VISIBLE_COLUMN_CHANGED
final public static int FIRST_VISIBLE_COLUMN_CHANGED(Code)
Event fired when first visible column in the table is changed.



FIRST_VISIBLE_ROW_CHANGED
final public static int FIRST_VISIBLE_ROW_CHANGED(Code)
Event fired when first visible row in the table is changed.



LAST_VISIBLE_COLUMN_CHANGED
final public static int LAST_VISIBLE_COLUMN_CHANGED(Code)
Event fired when last visible column in the table is changed.



LAST_VISIBLE_ROW_CHANGED
final public static int LAST_VISIBLE_ROW_CHANGED(Code)
Event fired when last visible row in the table is changed.



columnAreas
protected ArrayList columnAreas(Code)
Represents number of columns in the table



headerArea
protected TableHeaderArea headerArea(Code)
Table header for this table.



leftPortArea
protected ColumnPortArea leftPortArea(Code)
Left port area.



rightPortArea
protected ColumnPortArea rightPortArea(Code)
Right port area.



tableType
protected int tableType(Code)
Table type.




Constructor Detail
TableArea
public TableArea()(Code)
Creates a new instance of TableArea



TableArea
protected TableArea(int tType)(Code)
Creates new instance of table.
Parameters:
  tType - the table type



TableArea
public TableArea(String[][] rowData, String[] columnNames)(Code)
Creates an instance of table area based on row data and column name.
Parameters:
  rowData - the row data to be displayed in the table
Parameters:
  columnNames - the name of the column headers



TableArea
public TableArea(String[][] rowData, String[] columnNames, int tType)(Code)
Creates an instance of table area based on row data and column name and table type.
Parameters:
  rowData - the row data to be displayed in the table
Parameters:
  columnNames - the name of the column headers
Parameters:
  tType - the table type




Method Detail
addColumn
public void addColumn(String columnName)(Code)
Adds the column cell in the table header.
Parameters:
  columnName - name of table column



addItem
public void addItem(int row, int col, String val, String toolTip)(Code)
Adds item to this table.
Parameters:
  row - row where item needs to be added
Parameters:
  col - column in row row where item needs to be added
Parameters:
  val - the string value of the item



addItem
public void addItem(int row, int col, SQLDBColumn data, String toolTip)(Code)
Adds item to this table.
Parameters:
  row - row where item needs to be added
Parameters:
  col - column in row row where item needs to be added
Parameters:
  val - the string value of the item



copyNewValueForRedo
public void copyNewValueForRedo(JGoDocumentChangedEdit e)(Code)
copy new values when redo occurs
Parameters:
  e - JGoDocumentChangedEdit



geometryChange
protected void geometryChange(Rectangle prevRect)(Code)
Overrides parent method to handle the changes in the geometry of this area. We will lay out all the columns and headers again.
Parameters:
  prevRect - previous bound rectangle



getColumnArea
public ColumnArea getColumnArea(int index)(Code)
get the column area for this table at a particular index
Parameters:
  index - column area at index column area



getColumnCount
public int getColumnCount()(Code)
Gets column count in this area. number of column in this area



getFirstVisibleColumn
public int getFirstVisibleColumn()(Code)
Gets the first visible column of the table. first visible column



getFirstVisibleRow
public int getFirstVisibleRow()(Code)
Gets the first visible row of this table. first visible row



getHorizontalScrollBar
public JGoScrollBar getHorizontalScrollBar()(Code)
Gets the horizontal scrollbar. horizontal scrollbar



getInputPortArea
public ColumnPortArea getInputPortArea()(Code)
get the input port area column port area



getLastVisibleColumn
public int getLastVisibleColumn()(Code)
Gets the last visible column in this table. the last visible column in this table



getLastVisibleRow
public int getLastVisibleRow()(Code)
Gets the last visible row in this table. last visible row



getLeftGraphPort
public IGraphPort getLeftGraphPort(int row)(Code)



getLeftPortArea
public ColumnPortArea getLeftPortArea()(Code)
Gets the left port area of the table. left port area



getMaximumCellHeight
public int getMaximumCellHeight(int row)(Code)
Gets height of the tallest column cell for a given row.
Parameters:
  row - the row to look cell maximum cell height in a row



getMaximumHeight
public int getMaximumHeight()(Code)
Gets the maximum height of this table. maximum height of table



getMaximumWidth
public int getMaximumWidth()(Code)
Gets the maximum width which will allow us to show all the columns properly with no excess whitespace surrounding the column with the longest name. maximum width of this table



getMinimumHeight
public int getMinimumHeight()(Code)
Gets the minimum height of this table. minimum height of table



getMinimumWidth
public int getMinimumWidth()(Code)
Gets the minimum width of this tables minimum width of this table



getOutputPortArea
public ColumnPortArea getOutputPortArea()(Code)
get the output port area column port area



getRightGraphPort
public IGraphPort getRightGraphPort(int row)(Code)



getRightPortArea
public ColumnPortArea getRightPortArea()(Code)
Gets the right port area of the table. right port area



getRowCount
public int getRowCount()(Code)
Gets the row count in this table area. number of rows in this table area



getTableType
public int getTableType()(Code)
Gets table type. current table type



getTitleAreaBounds
public Rectangle getTitleAreaBounds()(Code)
get the bounds of title area this table contains the rectangle bounds of title area



getVerticalScrollBar
public JGoScrollBar getVerticalScrollBar()(Code)
Gets the vertical scrollbar. vertical scrollbar



getVisibleRowTableHeights
public int getVisibleRowTableHeights()(Code)
Gets the height of all visible rows in this table. height of visible rows



initGui
protected void initGui()(Code)
Initializes GUI components.



initialize
public void initialize(int tType)(Code)
Initialize the table.
Parameters:
  tType - the table type



isExpanded
public boolean isExpanded()(Code)
Indicates whether table is expanded. true if table is expanded; false otherwise



layoutChildren
public void layoutChildren()(Code)
Lays out all the children of this table area.



removeAll
public void removeAll()(Code)
Removes all of the child objects in this area.



removeItem
public void removeItem(int row, int col)(Code)



setBackgroundColor
public void setBackgroundColor(Color c)(Code)



setExpanded
public void setExpanded(boolean sExpanded)(Code)
Sets table mode as expanded.
Parameters:
  sExpanded - true to expand the table, false otherwise.



setFirstVisibleColumn
public void setFirstVisibleColumn(int colIdx)(Code)
Sets the first visible column in this table.
Parameters:
  colIdx - the column to set as the first visible column



setFirstVisibleRow
public void setFirstVisibleRow(int rowIdx)(Code)
Sets the first visible row of the table.
Parameters:
  rowIdx - the first visible row of this table



setHeaders
public void setHeaders(String[] columnNames)(Code)
Sets the header on this table.
Parameters:
  columnNames - names of the headers



setShowHeader
public void setShowHeader(boolean show)(Code)



setTableType
public void setTableType(int tType)(Code)
Sets table type.
Parameters:
  tType - new table type



setValueAt
public void setValueAt(int row, int col, String val)(Code)
Sets the value of a particular cell.
Parameters:
  row - row to look the cell
Parameters:
  col - column to look for
Parameters:
  val - new value of the cell



updateVerticalScrollBar
public void updateVerticalScrollBar()(Code)
Updates the vertical scrollbar.



Fields inherited from org.netbeans.modules.sql.framework.ui.graph.impl.CanvasArea
protected Insets insets(Code)(Java Doc)

Methods inherited from org.netbeans.modules.sql.framework.ui.graph.impl.CanvasArea
protected void addLinks(IGraphPort gPort, List<JGoLink> list)(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
protected synchronized void firePropertyChangeEvent(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc)
protected void geometryChange(Rectangle prevRect)(Code)(Java Doc)
public Insets getInsets()(Code)(Java Doc)
public int getMaximumHeight()(Code)(Java Doc)
public int getMaximumWidth()(Code)(Java Doc)
public int getMinimumHeight()(Code)(Java Doc)
public int getMinimumWidth()(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
protected Rectangle handleResize(Graphics2D g, JGoView view, Rectangle origRect, Point newPoint, int whichHandle, int event, int minWidth, int minHeight)(Code)(Java Doc)
public void layoutChildren()(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
public void setInsets(Insets insets)(Code)(Java Doc)
public void setToolTipText(String tTip)(Code)(Java Doc)

w_ww_.jav_a___2s._c___o__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.