Package org.apache.pivot.wtk

Examples of org.apache.pivot.wtk.TableView.scrollAreaToVisible()


                        tableView.addSelectedIndex(index);
                    } else {
                        tableView.setSelectedIndex(index);
                    }

                    tableView.scrollAreaToVisible(getRowBounds(index));
                }

                consumed = true;
                break;
            }
View Full Code Here


                        tableView.addSelectedIndex(index);
                    } else {
                        tableView.setSelectedIndex(index);
                    }

                    tableView.scrollAreaToVisible(getRowBounds(index));
                }

                consumed = true;
                break;
            }
View Full Code Here

                tableData.add(tableRow);

                // Re-select the row, and make sure it's visible
                rowIndex = tableData.indexOf(tableRow);
                tableView.setSelectedIndex(rowIndex);
                tableView.scrollAreaToVisible(tableView.getRowBounds(rowIndex));
            }

            rowEditorListeners.changesSaved(this, tableView, rowIndex, columnIndex);
        } else if (vote == Vote.DENY) {
            rowEditorListeners.saveChangesVetoed(this, vote);
View Full Code Here

                selectionBounds = selectionBounds.union(getRowBounds(rangeEnd));

                Bounds visibleSelectionBounds = tableView.getVisibleArea(selectionBounds);
                if (visibleSelectionBounds != null
                    && visibleSelectionBounds.height < selectionBounds.height) {
                    tableView.scrollAreaToVisible(selectionBounds);
                }
            }
        }

        validateSelection = false;
View Full Code Here

                selectionBounds = selectionBounds.union(getRowBounds(rangeEnd));

                Bounds visibleSelectionBounds = tableView.getVisibleArea(selectionBounds);
                if (visibleSelectionBounds != null
                    && visibleSelectionBounds.height < selectionBounds.height) {
                    tableView.scrollAreaToVisible(selectionBounds);
                }
            }
        }

        validateSelection = false;
View Full Code Here

                selectionBounds = selectionBounds.union(getRowBounds(rangeEnd));

                Bounds visibleSelectionBounds = tableView.getVisibleArea(selectionBounds);
                if (visibleSelectionBounds != null
                    && visibleSelectionBounds.height < selectionBounds.height) {
                    tableView.scrollAreaToVisible(selectionBounds);
                }
            }
        }

        validateSelection = false;
View Full Code Here

                tableData.add(tableRow);

                // Re-select the row, and make sure it's visible
                rowIndex = tableData.indexOf(tableRow);
                tableView.setSelectedIndex(rowIndex);
                tableView.scrollAreaToVisible(tableView.getRowBounds(rowIndex));
            }

            rowEditorListeners.changesSaved(this, tableView, rowIndex, columnIndex);
            saved = true;
        } else if (vote == Vote.DENY) {
View Full Code Here

                selectionBounds = selectionBounds.union(getRowBounds(rangeEnd));

                Bounds visibleSelectionBounds = tableView.getVisibleArea(selectionBounds);
                if (visibleSelectionBounds != null
                    && visibleSelectionBounds.height < selectionBounds.height) {
                    tableView.scrollAreaToVisible(selectionBounds);
                }
            }
        }

        validateSelection = false;
View Full Code Here

                Bounds selectionBounds = getRowBounds(rangeStart);
                selectionBounds = selectionBounds.union(getRowBounds(rangeEnd));

                Bounds visibleSelectionBounds = tableView.getVisibleArea(selectionBounds);
                if (visibleSelectionBounds.height < selectionBounds.height) {
                    tableView.scrollAreaToVisible(selectionBounds);
                }
            }
        }

        validateSelection = false;
View Full Code Here

                tableData.add(tableRow);

                // Re-select the row, and make sure it's visible
                rowIndex = tableData.indexOf(tableRow);
                tableView.setSelectedIndex(rowIndex);
                tableView.scrollAreaToVisible(tableView.getRowBounds(rowIndex));
            }

            rowEditorListeners.changesSaved(this, tableView, rowIndex, columnIndex);
        } else if (vote == Vote.DENY) {
            rowEditorListeners.saveChangesVetoed(this, vote);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.