| java.lang.Object net.sf.jmoney.entrytable.Block
Block | abstract public class Block (Code) | | |
Field Summary | |
final public static int | horizontalSpacing horizontalSpacing specifies the number of pixels between the right
edge of one cell and the left edge of its neighboring cell to
the right. | final public static int | marginLeft marginLeft specifies the number of pixels of horizontal margin
that will be placed along the left edge of the layout. | final public static int | marginRight marginRight specifies the number of pixels of horizontal margin
that will be placed along the right edge of the layout. | protected int | minimumWidth | protected int | weight | protected int | width |
Method Summary | |
abstract public Collection<CellBlock<? super T, ? super R>> | buildCellList() | abstract public void | createHeaderControls(Composite parent, T entryData) | abstract int | getHeight(int verticalSpacing, Control[] controls) Calculate the height of this block. | abstract int | getHeightForGivenWidth(int width, int verticalSpacing, Control[] controls, boolean changed) Given a width, calculate the preferred height. | abstract public int | initIndexes(int startIndex) This method must be called after construction of the root block.
It traverses over the sub-blocks and sets the indexes of any
cell blocks it finds. | abstract void | layout(int width) | abstract void | paintRowLines(GC gc, int x, int y, int verticalSpacing, Control[] controls, T entryData) Paints the lines between the controls.
This method assumes that the contained controls have all been set to
their correct size. | abstract void | positionControls(int x, int y, int verticalSpacing, Control[] controls, T entryData, boolean flushCache) |
horizontalSpacing | final public static int horizontalSpacing(Code) | | horizontalSpacing specifies the number of pixels between the right
edge of one cell and the left edge of its neighboring cell to
the right.
The default value is 1.
|
marginLeft | final public static int marginLeft(Code) | | marginLeft specifies the number of pixels of horizontal margin
that will be placed along the left edge of the layout.
The default value is 1.
|
marginRight | final public static int marginRight(Code) | | marginRight specifies the number of pixels of horizontal margin
that will be placed along the right edge of the layout.
The default value is 1.
|
minimumWidth | protected int minimumWidth(Code) | | |
weight | protected int weight(Code) | | |
width | protected int width(Code) | | |
createHeaderControls | abstract public void createHeaderControls(Composite parent, T entryData)(Code) | | |
getHeight | abstract int getHeight(int verticalSpacing, Control[] controls)(Code) | | Calculate the height of this block. Because variable height rows are
supported, the height may vary from row to row and thus depends on the
controls in the row.
This method assumes that the contained controls have all been set to
their correct size. This method does not resize controls. Therefore this
method should only be called after positionControls has
been called.
Parameters: controls - a list of controls in a row the height of this block |
getHeightForGivenWidth | abstract int getHeightForGivenWidth(int width, int verticalSpacing, Control[] controls, boolean changed)(Code) | | Given a width, calculate the preferred height.
Parameters: width - Parameters: verticalSpacing - Parameters: controls - a list of controls in a row Parameters: changed - true if the control's contents have changed,and false otherwise the preferred height |
initIndexes | abstract public int initIndexes(int startIndex)(Code) | | This method must be called after construction of the root block.
It traverses over the sub-blocks and sets the indexes of any
cell blocks it finds. These indexes will match the index of the
cell block in the array returned by buildCellList .
Parameters: startIndex - 0 if the root block, appropriate value for sub-blocks the number of cell blocks in this block, this value being theamount by which the caller must increment startIndex before passingit on to the next child block |
layout | abstract void layout(int width)(Code) | | |
paintRowLines | abstract void paintRowLines(GC gc, int x, int y, int verticalSpacing, Control[] controls, T entryData)(Code) | | Paints the lines between the controls.
This method assumes that the contained controls have all been set to
their correct size. Therefore this method should only be called after
positionControls has been called.
Parameters: controls - a list of controls in a row |
positionControls | abstract void positionControls(int x, int y, int verticalSpacing, Control[] controls, T entryData, boolean flushCache)(Code) | | |
|
|