| java.lang.Object org.netbeans.modules.visualweb.designer.Interaction org.netbeans.modules.visualweb.designer.TableResizer
TableResizer | public class TableResizer extends Interaction implements KeyListener(Code) | | Handle user interaction for a Table Resize operation; this refers
to resizing the internal rows and columns. The overall table size itself
is handled by the generic Resizer as for any other component.
author: Tor Norbye |
Constructor Summary | |
public | TableResizer(WebForm webform, Element tableComponentRootElement, int direction, boolean leftTopSide, int spanLeft, int spanTop, int spanSize, int otherSize, int minimum, int maximum, int row, int column, Element element) Create a resizer which tracks resize mouse operations.
Parameters: webform - The webform associated with the resized table Parameters: bean - The table component Parameters: designInfo - The markup table design info which coordinates model updates to the table Parameters: direction - CssBox.X_AXIS if we are resizing a row, CssBox.Y_AXIS if weare resizing a column. Parameters: leftTopSide - If you're resizing the column by dragging on the left sideor the row by dragging on the top side, pass in true, otherwise false. Parameters: spanLeft - The x coordinate of the row or column (span) being resized Parameters: spanTop - The y coordinate of the row or column (span) being resized Parameters: spanSize - The current width or height of the row or column (span) Parameters: otherSize - The size of the other dimension of the row/column. |
previousCursor | protected transient Cursor previousCursor(Code) | | |
TableResizer | public TableResizer(WebForm webform, Element tableComponentRootElement, int direction, boolean leftTopSide, int spanLeft, int spanTop, int spanSize, int otherSize, int minimum, int maximum, int row, int column, Element element)(Code) | | Create a resizer which tracks resize mouse operations.
Parameters: webform - The webform associated with the resized table Parameters: bean - The table component Parameters: designInfo - The markup table design info which coordinates model updates to the table Parameters: direction - CssBox.X_AXIS if we are resizing a row, CssBox.Y_AXIS if weare resizing a column. Parameters: leftTopSide - If you're resizing the column by dragging on the left sideor the row by dragging on the top side, pass in true, otherwise false. Parameters: spanLeft - The x coordinate of the row or column (span) being resized Parameters: spanTop - The y coordinate of the row or column (span) being resized Parameters: spanSize - The current width or height of the row or column (span) Parameters: otherSize - The size of the other dimension of the row/column. This is typicallythe table height (if resizing a column) or the table width (if resizing a row) Parameters: minimum - The minimum size of the span. This value is not allowed to be negative. Parameters: maximum - The maximum size of the span. Pass in Integer.MAX_VALUE for unconstrained size. |
mouseDragged | public void mouseDragged(MouseEvent e)(Code) | | Moves the dragging rectangles
|
mousePressed | public void mousePressed(MouseEvent e)(Code) | | Start the resizer by setting the dragging cursor and
drawing dragging rectangles.
|
mouseReleased | public void mouseReleased(MouseEvent e)(Code) | | When the mouse press is released, get rid of the drawn resizer,
and ask the selection manager to select all the components contained
within the resizer bounds.
|
|
|