Examples of scrollAreaToVisible()


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

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

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

                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

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

                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

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

                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

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

                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

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

                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

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

                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

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

    private void scrollCharacterToVisible(int offset) {
        TextArea textArea = (TextArea)getComponent();
        Bounds characterBounds = getCharacterBounds(offset);

        if (characterBounds != null) {
            textArea.scrollAreaToVisible(characterBounds.x, characterBounds.y,
                characterBounds.width, characterBounds.height);
        }
    }

    public Color getColor() {
View Full Code Here

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

    private void scrollCharacterToVisible(int index) {
        Bounds characterBounds = getCharacterBounds(index);

        if (characterBounds != null) {
            TextArea textArea = (TextArea)getComponent();
            textArea.scrollAreaToVisible(characterBounds.x, characterBounds.y,
                characterBounds.width, characterBounds.height);
        }
    }

    /**
 
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.