| 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,
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. |
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
|
tableType | protected int tableType(Code) | | Table type.
|
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 |
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 |
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 |
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)
|
|
|