CellView.
Its main goal is to draw an object (a triangle) on cells which have their
SpreadsheetCell#commentedProperty() set to true.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private Region | |
| private Region | |
| private final ChangeListener | |
| public static final EventType | FILTER_EVENT_TYPE
This EventType can be used with an |
| private MenuButton | |
| private final ChangeListener | |
| private static final String | |
| private static final String | |
| private Region | topLeftRegion
The region we will add on the cell when necessary. |
| private Region | |
| private static final int | TRIANGLE_SIZE
The size of the edge of the triangle FIXME Handling of static variable will be changed. |
| private final EventHandler | |
| private final WeakChangeListener | |
| private final WeakChangeListener | |
| private final WeakEventHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred width of this |
| private static Region | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| protected void | layoutChildren(double x, final double y, final double w, final double h)
Overrides javafx. The Layout algorithm works like this: - Get the labeled w/h, graphic w/h, text w/h - Compute content w/h based on graphicVPos, graphicHPos, graphicTextGap, and graphic w/h and text w/h - (Note that the text content has been pre-truncated where necessary) - compute content x/y based on content w/h and labeled w/h and the labeled's hpos and vpos - position the graphic and text |
| private void | |
| private void |
| BOTTOM_LEFT_CLASS | back to summary |
|---|---|
| private static final String BOTTOM_LEFT_CLASS | |
| BOTTOM_RIGHT_CLASS | back to summary |
|---|---|
| private static final String BOTTOM_RIGHT_CLASS | |
| bottomLeftRegion | back to summary |
|---|---|
| private Region bottomLeftRegion | |
| bottomRightRegion | back to summary |
|---|---|
| private Region bottomRightRegion | |
| columnChangeListener | back to summary |
|---|---|
| private final ChangeListener<TableColumn<S, T>> columnChangeListener | |
| FILTER_EVENT_TYPE | back to summary |
|---|---|
| public static final EventType<Event> FILTER_EVENT_TYPE This EventType can be used with an | |
| filterButton | back to summary |
|---|---|
| private MenuButton filterButton | |
| itemChangeListener | back to summary |
|---|---|
| private final ChangeListener<SpreadsheetCell> itemChangeListener | |
| TOP_LEFT_CLASS | back to summary |
|---|---|
| private static final String TOP_LEFT_CLASS | |
| TOP_RIGHT_CLASS | back to summary |
|---|---|
| private static final String TOP_RIGHT_CLASS | |
| topLeftRegion | back to summary |
|---|---|
| private Region topLeftRegion The region we will add on the cell when necessary. | |
| topRightRegion | back to summary |
|---|---|
| private Region topRightRegion | |
| TRIANGLE_SIZE | back to summary |
|---|---|
| private static final int TRIANGLE_SIZE The size of the edge of the triangle FIXME Handling of static variable will be changed. | |
| triangleEventHandler | back to summary |
|---|---|
| private final EventHandler<Event> triangleEventHandler | |
| weakColumnChangeListener | back to summary |
|---|---|
| private final WeakChangeListener<TableColumn<S, T>> weakColumnChangeListener | |
| weakItemChangeListener | back to summary |
|---|---|
| private final WeakChangeListener<SpreadsheetCell> weakItemChangeListener | |
| weakTriangleEventHandler | back to summary |
|---|---|
| private final WeakEventHandler<T extends Event> weakTriangleEventHandler | |
| CellViewSkin | back to summary |
|---|---|
| public CellViewSkin(CellView tableCell) | |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| getRegion | back to summary |
|---|---|
| private static Region getRegion(SpreadsheetCell. | |
| handleBottomLeft | back to summary |
|---|---|
| private void handleBottomLeft(SpreadsheetCell cell) | |
| handleBottomRight | back to summary |
|---|---|
| private void handleBottomRight(SpreadsheetCell cell) | |
| handleFilter | back to summary |
|---|---|
| private void handleFilter(double x, final double y, final double w, final double h) | |
| handleTopLeft | back to summary |
|---|---|
| private void handleTopLeft(SpreadsheetCell cell) | |
| handleTopRight | back to summary |
|---|---|
| private void handleTopRight(SpreadsheetCell cell) | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(double x, final double y, final double w, final double h) Overrides javafx. Doc from javafx. The Layout algorithm works like this: - Get the labeled w/h, graphic w/h, text w/h - Compute content w/h based on graphicVPos, graphicHPos, graphicTextGap, and graphic w/h and text w/h - (Note that the text content has been pre-truncated where necessary) - compute content x/y based on content w/h and labeled w/h and the labeled's hpos and vpos - position the graphic and text
| |
| layoutTriangle | back to summary |
|---|---|
| private void layoutTriangle() | |
| removeMenuButton | back to summary |
|---|---|
| private void removeMenuButton() | |