Synchronous scrolling of several TreeTableView

Hello guys!

Is it possible to scroll through the two synchronization TreeTableView?

Synchronization of scrolling of two TextArea ist very easy:

TextArea = new TextArea() ta1, ta2 = new TextArea();

TA1.scrollTopProperty () .bindBidirectional (TA2.scrollTopProperty ());

TA1.scrollLeftProperty () .bindBidirectional (TA2.scrollLeftProperty ());

But I can't find the scroll property to TableTreeView.

Is it still possible?

Thank you!

Sega

I have not worked with TreeTableViews, so it does not work, but try using a search to get the vertical scroll bars and their value of binding properties. I don't usually like research, but sometimes there is no other way to make things work.

This example (to make, not TreeTableViews) seems to work very well. I don't know what happens in the TreeTableViews when the expanded state is different between the two TreeTables (so there is a different number of lines), but maybe this will give you a starting point.

import javafx.application.Application;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.scene.Scene;
import javafx.scene.control.ScrollBar;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;

public class SynchronizedTables extends Application {

    @Override
    public void start(Stage primaryStage) {
        TableView table1 = createTable();
        TableView table2 = createTable();
        final HBox root = new HBox(5);
        root.getChildren().addAll(table1, table2);
        final Scene scene = new Scene(root, 600, 400);
        primaryStage.setScene(scene);
        primaryStage.show();

        ScrollBar table1Scroller = findVerticalScrollBar(table1);
        ScrollBar table2Scroller = findVerticalScrollBar(table2);

        table1Scroller.valueProperty().bindBidirectional(table2Scroller.valueProperty());
    }

    public static void main(String[] args) {
        launch(args);
    }

    private ScrollBar findVerticalScrollBar(TableView table) {
        return (ScrollBar) table.lookup(".scroll-bar:vertical");
    }

    private TableView createTable() {
        TableView table = new TableView<>();
        TableColumn nameCol = new TableColumn<>("Name");
        nameCol.setCellValueFactory(new PropertyValueFactory("name"));
        nameCol.setMinWidth(100);
        TableColumn valueCol = new TableColumn<>("Value");
        valueCol.setCellValueFactory(new PropertyValueFactory("value"));
        valueCol.setMinWidth(75);
        table.getColumns().add(nameCol);
        table.getColumns().add(valueCol);
        for (int i = 1; i <= 50; i++) {
            table.getItems().add(new TableItem("Item " + i, i));
        }
        return table;
    }

    public static class TableItem {
        private final StringProperty name;
        private final IntegerProperty value;

        public TableItem(String name, int value) {
            this.name = new SimpleStringProperty(this, "name", name);
            this.value = new SimpleIntegerProperty(this, "value", value);
        }

        public final String getName() {
            return name.get();
        }

        public final void setName(String name) {
            this.name.set(name);
        }

        public final StringProperty nameProperty() {
            return name;
        }

        public final int getValue() {
            return value.get();
        }

        public final void setValue(int value) {
            this.value.set(value);
        }

        public final IntegerProperty valueProperty() {
            return value;
        }
    }
}

Tags: Java

Similar Questions

  • No Muse CC 2015 no effect of scrolling with breakpoints?

    With the new Muse how do you work around not being able to use effects of scrolling with several breakpoints?

    theDogger! @

    Scroll effects are currently not supported for sensitive sites in Adobe Muse. The team works to this effort for a future update. Stay tuned.

  • is there a way to speed up scrolling library inches?

    Hello

    I have the last 5.7 lightroom 64-bit w8.1 and w7, with the latest processors from intel cpu and ram 32gib

    the new ssd samsung 850 pro

    but when I scroll my thumbs, there is always some time a shift, like very short block

    for example bridge cc suffers from this, I can scroll through several inches without glitch or lag

    I have all my photos on the new hard drive from seagate and my catalog on my ssd

    is there a way to spped up scrolling thumbs?

    for the rest, lightroom is pretty nice quick

    Thank you

    Just found this post while working on a different issue:

    http://feedback.Photoshop.com/photoshop_family/topics/lightroom_5_5_2_the_library_module_i s_painfully_slow

    The solution for a number of people with problems of speed for the library module is to position the metadata Panel on the 'default' or close it. John R. Ellis compliments.

  • Scrolling effects help

    Hello

    I am new to Muse scrolling effects. I just wanted to know how the scroll on this model effects were created. As there are white rectangles, but when they move, there's a different background image that remains in place, and you can see different parts of this image that the rectangles when you scroll up and down. As there is an image of a laptop in the background in the model (link below). When you scroll from top to bottom, the white rectangles move and you can see the different parts of the laptop. I am making sense?

    I am trying to achieve that effect with the effects of scroll, but so far without success, and the tutorials are not just a large.

    Any help is appreciated!

    Thank you! XX

    http://CreateTheme.BusinessCatalyst.com/#contact

    Hello

    You can configure using scrolling effects, on the page you mentioned rectangles and frames of images are used with applied scrolling effects where corresponds to the initial position and final position to scroll.

    You can can install background pictures with frames of image into rectangles and then on them, you can set other page with scrolling objects and configure the relative speed of scrolling so that one is fast and other is slow.

    It is quite difficult to define the speed of scrolling with several objects on the page, you worked by creating examples of pages with many objects of scrolling.

    These videos may help you:

    http://www.YouTube.com/watch?v=8m2Lg241e3A

    http://www.YouTube.com/watch?v=KJMi5l9Ru-g

    http://www.YouTube.com/watch?v=FEiRwVMNBgU

    http://www.YouTube.com/watch?v=9kqrjoivJXE

    Thank you

    Sanjit

  • Lightbox with several images accompanying a vignette?

    Is it possible to have a thumbnail allow you to scroll through several images without having to click on another image?

    For example, let's say I have three projects with 10 images per project.  I want to only have three thumbnails that allow the user to see each project by clicking on its thumbnail "master."

    Thank you.

    The only real difference is that there is no way to automatically select images as in the version of slideshow. You must add them manually.

    Thanks for asking this question though. I added to a list of tutorials to Muse that I'm trying.

    Post edited by: Brad Lawryk

  • Newly inserted row in Table not visible until scroll us - question of ease of use

    Hello

    JDeveloper 11.1.1.5

    I have a table in a page and an Add button which will add a new row in the table.
    I just add the line before the current line.
    After you have added the line, I put new line on the current line in the View object.

    When there are a number of lines in the table and we have a scroll bar on the table to display the rows preceding and following, the question of ease of use, I am facing.

    Steps to follow:
    -Select the first row in the table
    -Scroll downwards several times so that the first line is not visible in the table
    -Added a new line

    This will add the line before the first line, but the problem is we cannot see it as the selected active line and is not ready for data entry.
    Users need to scroll upwards or downwards to find where the row is inserted.

    Is there a way we can set the focus on a particular point on the new line in the table?
    Or is there a way that we can make the new line to shown during creation, regardless of the current visibility of the rows in the table?
    Or can we get handle for the current line or any component of the current line so that we can try to set the focus?

    I observed the same behavior in the ADF components demo
    http://jdevadf.Oracle.com/ADF-richclient-demo/faces/components/table/updateableTable.JSPX

    Thanks for any help
    Concerning
    Sameer

    >
    Or is there a way that we can make the new line to shown during creation, regardless of the current visibility of the rows in the table?
    >
    try to set the property DisplayRow of the selected table

  • Bug report: Creative Cloud Drive

    I use Adobe products religiously since CS2, but the creative cloud storage is a product, that I now have to avoid. The reason is that archives files must be deleted manually... so far today, of that I have spent more than six hours to deleting files because there is no way to select all, then delete all the. All files of the archive must be deleted manually - I can select all on a page, but this becomes very time consuming and frustrating experience.

    Action taken:

    1. arrival at the cloud creative, copied files in the area of creative cloud on the C: drive.

    2 Dreamweaver related to site files in the C: drive of creative cloud

    3. locally installed and removed thousands of web files on the C: drive of creative cloud.

    4 cloud creative is automatically synchronized local files to https://creative.adobe.com files domain.

    5. after a two months of adding and deleting files Creative Cloud C: drive, the folder on the C: drive was 8.5 GB and Creative cloud produces a warning 'lack of storage space.

    6 Inspecting the https://creative.adobe.com Archives revealed thousands of files need to be deleted manually in order to free up space so that the files could synchronize Creative C: cloud drive up to https://creative.adobe.com files.

    And the process of deleting all files from that archive has not deleted took a little more than a very frustrating and painful 7 hours to do manually.

    Recommended steps to reproduce:

    1. in a clean (empty) area of creative cloud on the C: drive, create about 7 unique files and decompress a copy of WordPress in each. Then at wp-content/plugins, unzip and add about 15 plugins in every single directory.

    2. let the creative cloud sync with online storage.

    3 remove about 6 folders on the local C: drive.

    4. allow the creative cloud to synchronize.

    5 look at the creative area Cloud Files online and Archive.

    5a. If you want the files have not disappeared from Creative Cloud Files, select all of them and archive them.

    6. open the Archive.

    7. use the checkbox Select all to select all files.

    8. permanently delete them.

    9. once the removal process is completed, refresh the browser.

    10 files remain to be permanently deleted? If so, repeat steps 7 through 9.

    It seems that the Archive fills only about 30 files when it is open. It is possible to add additional files by scrolling to the bottom of the page, but that only adds about another 30 files. At the beginning I scrolled down and added about 1 500 files deleted, but this deletion process took the time to complete the server. Then I did scroll down several times and add about 3 600 files to remove, and which took the server even more time to complete. Then I scrolled down enough times to add files a little more 4 600 and repeated the waiting time for the server to complete the removal process. After this tour, it was about 3 000 files that remained to be removed manually through this process, and finally they were all deleted, but it was that an extremely painful process of 7 hours.

    Recommended solution:

    Add a "Delete all files" button inside the Archive.

    You may think that this problem is very good to support... Well, I tried. First, I called the toll-free number and was informed by the computer that my wait time exceeded two hours. So I chose to use their chat support - so what happened surprised me.

    The cat of support referred me to "a multitude of technical documentation" on the Adobe website and also sent me on the forums. No interest in hearing the problem beyond the initial description was expressed, and when I asked for what is obvious - one button to delete all files in archive - I was told quite frankly that the product does not only.

    Adobe is not concerned to solve the problem and offered no resources to file a bug report or a feature request. And if you go back to the online support area really added insult to injury.

    I am deeply disappointed by the quality of the customer service I received by Adobe and am unfortunately obliged by my need to work productively with the time-effectiveness do not use the creative cloud beyond one or two storage. I certainly will not be upgraded beyond the default level of storage included with the basic subscription.

    Who reported about 20 days ago.

    The bug has been fixed.

  • Firefox is late and refreshing not fast enough

    I noticed this first with a Google map that was slow to update. It seems to be deteriorating, and when I have several tabs, many do not update. In addition, when I look at a page like Google News and scroll down, several times the entire Central column is a black box and does not always load images.

    I tried refreshing and it did not help. I started in Safe Mode, and it seems to be a lot better, so I think it's a problem with add-ins? I am currently scanning of malware as well.

    Any suggestions?

    You can try to disable hardware acceleration in Firefox.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    You will need to close and restart Firefox after enabling/disabling this setting.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Firefox exceeds the page down when a bar at the top of some websites (ThinkProgress) opens and hides the text time that Firefox has already moved to the bottom.

    When I go to one of the new articles (not the home page) of http://thinkprogress.org/ , and then press the 'next page', a bar or window appears in the upper part, which obscures the part of the page. I think it's because the site does not place the bar until after I have scrolled down several rows on the initial page and then that Firefox has already calculated the number of lines to move down. The problem will not occur on the bottom of next page because the bar is already in place. I did not have the bar and want to make him stop appearing.

    -- I already have "block pop-up windows" activated and ThinkProgress is not one of the allowed exceptions.
    -- I am using Mac OSX 10.9.2 on a 3.06 GHz Intel Core 2 Duo
    

    Ahh... This is a header. Some web pages, when you move down, place it in
    the top of the screen. If you go up to the top of the page, it should
    Go away.

  • iTunes is showing iOS 9.2.1 as a later version for iPad only. It is running iOS 9.2.1.

    It's new... After I connect my iPad (iOS 9.2.1) 2 Air, and then by opening iTunes (12.3.2) the update of the software window appears indicating there is a newer version available - 9.2.1. And yet my iPhone settings 6 and iPad Air 2 > software updates both show the software is up-to-date.

    iTunes also had connection problems (could not synchronize) with the iPad, as well as the iPad asking if I have confidence in the computer, it is connected to. I got this iMac and iPad for months, already connected and synchronized/backed up several times.

    Apple has published a review of the iOS 9.2.1 and kept the same numbering. This has to do with the situation of error 53.

  • Safari - fully deployed collapse folder when adding bookmarks tree.

    I (and many others) were looking for a solution to this problem for months (some for years) now.   Someone at Apple even listening?

    Here's the problem:

    When I go to 'Add bookmark', I get tree of folders completely developed, which, in my case, has hundreds of folders/subfolders.  They are fully developed, so I have to scroll through several pages of subfolders to find a good place to store the bookmark.   I know I could "simplify my tree", but it's not a good solution for those of us who would like to have the choice.   I and others with the same problem, should be able to have the tree of folder/subfolder 'Add bookmark' COME UP COLLAPSED, so that we can choose the right global folder, THEN expand it, so that we can save the bookmark in the subfolder of our choice.

    I am I have this ad in the right place?  Everything Apple developers even read this, or should I post elsewhere?

    Thank you!

    Apple is not regularly monitor the discussions. These are mostly a user in discussions.

    Send feedback to Apple. They will not respond, but at least know that there is a problem. If enough people send feedback, it can become the problem solved as soon as possible.

    Your comments

  • Why the new Apple TV is so bad!

    I've recently upgraded to an Apple TV 4. However, the software has changed and it is now much worse. Can you explain why:

    (1) I can't add a favorite television show;

    (2) I can't score TV episodes as supervised or unsupervised;

    (3) scroll down several television series shows lasts too long. No option to see the series individually;

    (4) if I watch a movie of my wish list, it remains on the wish list. I manually delete which is annoying.

    These are questions which worked perfectly on the Apple TV 2 and 3. Why would you do something worse?

    Don't forget Apple aren't here. Only users. It is all explained when registering on the forum. Apple questions must be sent to them.

  • Smart pro iPad Keyboard page up/down question on Safari

    Hello.

    Don't know if anyone else has this problem:

    On Safari, if I press the SPACEBAR on the smart keyboard, it always seems to scroll through several pages rather than just a single page.

    Does anyone else have this problem? Is it possible to configure the smart keyboard so that Safari scrolls to the low just 1 page at a time? That is the way it works on a Mac.

    Thanks in advance.

    Try to hit the space bar and release more quickly. It gives me a shorter scrolling. Button for a longer time causes will continue to scroll.

  • Reorganization of episodes of TV shows

    One of the most annoying "features" of the Apple TV 4 is the arrangement of the episodes of TV series. Whoever decided that the episodes should always appear from the oldest to the newest wasn't thinking about ease of use. Why should I always have to scroll through several seasons and episodes to get to the newest one. Apparently, there is currently no way to solve this problem, but I really hope that Apple will address this shortcoming. Yes, I know that I can just click on the watch next episode, but that is not really the solution I want.

    If you have any suggestions that you think might improve Apple TV you can send your feedback here at Apple

  • LogonUI.exe - BadImage "gdiplus.dll".

    Windows will not end from any mode.  He never to the login screen.

    I get this message:

    LogonUI.exe - bad Image
    C:\WinSys\x86_microsoft. Windows.gdiplus_6595b64144ccf1df_1.0.6002.18342_none_9e54f8aaca13c773\gdiplus.dll is not designed to run on windows or it contains an error.  Try to install the program by using the original installation media or contact your system administrator or the provider of software for support.
    ..............

    After clicking 'OK', the screen remains black with a white cursor and never progresses from here.

    I have repeatedly tried to "STARTUP REPAIR" and successfully restored the system to a point prior to the error.

    I ran several checks on the hard disk, unfortunately I have never seen a report of one of these controls, but once the screen has been spammed with messages which read in the sense of «recovering orphaned file...» 'or 'hard drive detected mistakes'.  I did not notice all the similar posts on latest controls.

    Sometimes the screen goes completely black and blocks of power immediately after forever, very briefly after connection, or trying to start "startup repair" or other recovery utilities.

    ------------
    Can I remove the "gdiplus.dll" file, copy it from an external device, or the recovery partition to resolve the "LogonUI.exe - bad Image" error?  Sometimes I can get access to a command prompt via 'repair your computer' after pressing f8, although sometimes the screen turns all white.  The system seems to scroll through several modes of "not start" periodically, and if I just continued to restart I eventually get to a point where repair utilities seem to work fine, even if none of them have managed to solve the problem.

    Hello

    Method 1: Follow the steps described in the article below and run Startup Repair.

    Windows Vista or Windows 7 unbootable and the Startup Repair tool does not resolve the problem

    http://support.Microsoft.com/kb/934540

    Method 2: I suggest you to rebuild the BCD (Boot Configuration data), refer to the procedure described in the link below

    How to use the Bootrec.exe tool in the Windows recovery environment to troubleshoot and repair startup issues in Windows

    http://support.Microsoft.com/kb/927392

    Error message when you start Windows Vista: "the Windows Boot Configuration data file is missing required information".

    http://support.Microsoft.com/kb/927391

    You can also see

    When you start a Windows Vista-based computer, the system may stop responding (hang) at a black screen

    http://support.Microsoft.com/kb/946532

    Warning In a clean installation, existing data will be deleted. These data include settings and personal data. After installing the operating system, you must also reinstall all programs.

Maybe you are looking for