Examples of scrollAreaToVisible()


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

            Component focusedComponent = component.transferFocus(direction);

            // Ensure that the focused component is visible
            if (component != focusedComponent
                && focusedComponent != null) {
                focusedComponent.scrollAreaToVisible(0, 0, focusedComponent.getWidth(),
                    focusedComponent.getHeight());
            }

            consumed = true;
        }
View Full Code Here

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

            Component focusedComponent = component.transferFocus(direction);

            // Ensure that the focused component is visible
            if (component != focusedComponent
                && focusedComponent != null) {
                focusedComponent.scrollAreaToVisible(0, 0, focusedComponent.getWidth(),
                    focusedComponent.getHeight());
            }

            consumed = true;
        }
View Full Code Here

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

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

                    listView.scrollAreaToVisible(getItemBounds(index));
                }

                consumed = true;
                break;
            }
View Full Code Here

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

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

                    listView.scrollAreaToVisible(getItemBounds(index));
                }

                consumed = true;
                break;
            }
View Full Code Here

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

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

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

        validateSelection = false;
View Full Code Here

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

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

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

        validateSelection = false;
View Full Code Here

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

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

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

        validateSelection = false;
View Full Code Here

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

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

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

        validateSelection = false;
View Full Code Here

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

                listData.add(listItem);

                // Re-select the item, and make sure it's visible
                index = listData.indexOf(listItem);
                listView.setSelectedIndex(index);
                listView.scrollAreaToVisible(listView.getItemBounds(index));
            }

            itemEditorListeners.changesSaved(this, listView, index);
            saved = true;
        } else if (vote == Vote.DENY) {
View Full Code Here

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

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

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

        validateSelection = false;
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.