visible row in the ListView after click

in ListView

visible area

+---------------+  <--- 0 y

|                |

|  line 79 |

line 80 + -+ <-536 y

assuming that 80 line we did between 530 and 540 's position.
my visible area is 536
then click on line 80 How to make it would you like in the correct position
the visible area, that is to say in the last line of the visible area? ?



Thank you to

VirtualFlow vf = (VirtualFlow) this.lookup ("VirtualFlow");

VF. Show (line);

Note: this solution does not use the standard javafx api public, so it's at the risk of everyone to use such a solution, if anyone has a better solution please post.

I will contact jira thereon.

Tags: Java

Similar Questions

  • How to get broke the index of the row in the listview?

    Hi all

    I use the function of the snap of the listview to stop the scrolling on the single point. Is there a way to get the row of the line broke without drawing on the line?

    Just found a solution. With the help of the listscrollstatehandler and make use of the firstVisibleItem to get the row of the visible line of the listview, and everything will work.

  • AnyConnect disconnects the client after clicking on "accept".

    AnyConnect disconnects the client after clicking on "accept". Our seller is using Windows Server R2 2012.

    We see that the client passes authentication and connects then disconnects quickly without establishing a session.

    Anyconnect version is 4.2.01035

    Hi Carolina,.

    You can see this windows server operating system is not officially supported / tested platform for anyconnect: -.

    http://www.Cisco.com/c/en/us/TD/docs/security/vpn_client/AnyConnect/ANYC...

    You can still install the anyconnect DART diagnostic tool and then check the errors on the newspapers.

    http://www.Cisco.com/c/en/us/TD/docs/security/vpn_client/AnyConnect/ANYC...

    You could probably run "debug webvpn anyconnect 255" to check the logs to see where the connection has failed

    Kind regards
    Dinesh Moudgil

    PS Please rate helpful messages.

  • How do you change your bc intial model selection under options the site after clicking on finish

    How do you change your bc intial model selection under options the site after clicking on finish

    You can't do that. BC is not a system of theming like Wordpress or Joomla. The model is fixed and models of switching at this stage is not an easy feat.

  • To access the values from the row outside the ListView ListItem

    Hello

    I spent two hours browsing the forums and documentation with no chance of finding a solution on how to access the list item data from outside the listview.

    Let explain me my code. It is marked with I work and what does not work and its expected behavior.

    Should work behavior


    Tapping & getting data

    The arrayDataModel is filled with 4 rows. Firstly the list item, second item in the list... etc.

    • Tapping on the order of the day, label with the id of triggeredText displays the value of a threaded list item.
    • The index of the tapped icon appears in the label with the id of triggerredIndex.

    Incrementing Index using ActionItems onBar

    By pressing action items 'previous' and 'next', you can increment the index value to the label with the id of triggeredIndex. The order of the index is 0-4, even as total of the items in the list.

    How to extract data from the index when the value of triggeredIndex?

    Buttons

    The buttons at the bottom of the screen... Select 1, select the 2nd, 3rd Select should select indexes 0,1,2 of the list and display the value in triggeredText and triggeredIndex. They do not work.

    How did I pull the values when you click the buttons?

    import bb.cascades 1.3
    
    TabbedPane {
        id: root
        showTabsOnActionBar: false
    
        Tab {
            id: mainTab
            title: "Test List"
                Page {
                    id: mainPage
                    titleBar: TitleBar {
                        title: "List Traversal Test"
                    }
                    actions: [
                        ActionItem {
                            title: "Previous"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                // get current selected index from list=
                                var currentIndex = parseInt(triggeredIndex.text);
    
                                if(currentIndex <= 0){
                                    //do nothing already at first item
                                }else{
                                    // subtract 1 from index ( ci - 1) ?
                                    var newIndex = parseInt(triggeredIndex.text) - 1;
    
                                    // show data from new selected index
                                    // ???
    
                                    // triggeredItem.text = XXX // the data
                                    // ???
    
                                    // triggeredIndex.text = X // the current index
                                    triggeredIndex.text = newIndex;
                                }
                            }
                        },
                        ActionItem {
                            title: "Next"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                // get current selected index from list=
                                var currentIndex = parseInt(triggeredIndex.text);
    
                                if(currentIndex == 4){
                                    //do nothing already at lastitem
                                }else{
                                // add 1 to index ( ci + 1) ?
                                var newIndex = parseInt(triggeredIndex.text) + 1
    
                                // show data from new selected index
                                // ???
    
                                // triggeredItem.text = XXX // the data
                                // ???
    
                                // triggeredIndex.text = X // the current index
                                triggeredIndex.text = newIndex;
                            }
                            }
                        },
                        ActionItem {
                            title: "Clear"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                // set current index to 0 (top item in list)
                            }
                        }
    
                    ]
                    Container {
                        preferredHeight: maxHeight
                        layout: StackLayout {
                            orientation: LayoutOrientation.TopToBottom
                        }
    
                        Label{
                            id: triggeredItem      // value of listitem from current index
                            text: "0"
                        }
                        Label{
                            id: triggeredIndex    // current index
                            text: "0"
                            onTextChanged: {
                                // set triggeredItem.text to contents of selected ListItem with same index
                                // STUCK HERE cannot access ListItem.dataModel(indexPath) from here....
                            }
    
                        }
                        Container{
                            ListView {
    
                                id: theList
                                objectName: "dalist"
                                dataModel: ArrayDataModel {
                                    id: theListModel
                                }
                                listItemComponents: ListItemComponent {
                                    StandardListItem {
                                        id: itemRoot
                                        title: ListItemData
                                    }
    
                                }
                                onTriggered: {
                                    var si = dataModel.data(indexPath);
                                    triggeredItem.text = "LIST ITEM CONTENT: " + si;  //set content when user taps on item
                                    triggeredIndex.text = "LIST ITEM INDEX INDEX: " + indexPath;  // set index when user taps
                                }
    
                                onSelectionChanged: {
                                    //console.log(selected);
                                }
    
                                onCreationCompleted: {
    
                                    //add some data to the listview
                                    theListModel.append("First List Item");
                                    theListModel.append("Second List Item");
                                    theListModel.append("Third List Item");
                                    theListModel.append("Fourth List Item");
                                }
                            }
    
                        }
                        Container{
                            layout: StackLayout {
                                orientation: LayoutOrientation.LeftToRight
                            }
                        Button{
                            text: "Select 1st"
                            onClicked: {
                                theList.clearSelection();
                                theList.select(0);
    
                            }
                        }
                        Button{
                            text: "Select 2nd"
                            onClicked: {
                                theList.clearSelection();
                                theList.select(1);
    
                            }
                        }
    
                        Button{
                            text: "Select 3rd item"
                            onClicked: {
    
                                //expected behaviour is to show data from Third List Item
    
                                // triggeredIndex.text = INDEX 3
                                // triggeredText.text = (DATA FROM THIRD LIST ITEM)
    
                                // THIS IS NOT WORKING ....
                                theList.clearSelection();
                                theList.select(2);
                                console.log(theList.dataModel(3));
                                triggeredItem.text = theListModel.dataModel(3);
    
                            }
                        }
                    }
                   }
                }
            }//tab
    }
    

    Thank you and have a happy and healthy 2015!

    Your help will be greatly appreciated.

    I ran and got this:

    asset:///main.qml:161: TypeError: Result of expression 'theList.dataModel' [bb::cascades::ArrayDataModel(0x1091a838)] is not a function.
    

    But it works

    theListModel.data([3])
    

    But this isn't the solution, you have a more serious problem. You select a value, you trigger. If you add this in onTriggered you select it (and you can see that it changes color when it is selected).

    theList.select(indexPath);
    

    If you want to use option to deselect

    theList.select(indexPath, !theList.isSelected(indexPath));
    

    And if you want to have that one chose this

    theList.clearSelection();
    theList.select(indexPath);
    

    Inside the button 'Select the 3rd point' allows to select programmatically

    theList.select([2]);
    

    It works but I'm not sure what you're trying to do

  • Keep the Image of the button after click

    Hello world!

    CS4/AS3 user here...

    Does anyone know how to hold a button image after top? Can you only do this with a clip?

    THX!

    If you mean you want graphics in the buttons down from chassis to stay visible after clicking on the button, which is not possible with a touch of true/simple.  You must use a movieclip button.

  • How to refresh the Listview after adding a new item

    Hello

    I have the following list:

     ListView {
                                        id: channelsList
    
                                        dataModel: categoryModel
    
                                        listItemComponents: [
                                            ListItemComponent {
                                                type: "item"
                                                StandardListItem {
                                                    title: ListItemData.name // Channel name
                                                    imageSource: ListItemData.imageFile
                                                    status: ListItemData.id
    
                                                    id: channelItemId
    
                                                    contextActions: [
                                                        ActionSet {
                                                            //title: contentView.title
                                                            ActionItem {
                                                                title: "Add to Favorites"
    
                                                                onTriggered: {
                                                                    console.log(ListItemData.id + " will be added to the Favorites");
                                                                    //categoryModel.addFavorite(ListItemData.name, ListItemData.imageFile, ListItemData.id);
                                                                    channelItemId.ListItem.view.viewTriggered(ListItemData.name, ListItemData.imageFile, ListItemData.id);
                                                                }
    
                                                            }
    
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
    
                                        onTriggered: {
                                                var chosenChannel = dataModel.data(indexPath);
                                                console.log("indexPath: " + indexPath);
    
                                                var playingPage = playpagedef.createObject();
    
                                                playingPage.chname = chosenChannel.name;
                                                playingPage.cid = chosenChannel.id;
                                                playingPage.init();
    
                                                Qt.nav.push(playingPage);
    
                                        }
    
                                        attachedObjects: [
                                            // The bucket categoryModel is a non visible object so it is set up as an attached object.
                                            // The categoryModel itself is a QListDataModel defined in categorymodel.h and registered
                                            // as a type in the creation of the application.
                                            CategoryModel {
                                                id: categoryModel
                                                // The path to the JSON file with initial data, this file will be moved to
                                                // the data folder on the first launch of the application (in order to
                                                // be able to get write access).
                                                jsonAssetPath: "models/channels.json"
    
                                                // The filtering is initially set to "Category 1" to show category channels
                                                filter: label.text
                                            },
    
                                            ComponentDefinition {
                                                id: playpagedef
                                                source: "PlayingPage.qml"
                                            }
                                        ]
    
                                        function viewTriggered(name, imageFile, id)
                                        {
                                            categoryModel.addFavorite(name, imageFile, id);
                                            categoryModel.clear();
                                        }
    
                                    }
    

    and the categoeymodel.h is as follows:

    #ifndef _CATEGORYMODEL_H
    #define _CATEGORYMODEL_H
    
    #include 
    #include 
    #include 
    #include 
    
    using namespace bb::data;
    
    // The category categoryModel is based on the QListDataModel template, which in turn
    // implements the abstract DataModel class.
    typedef bb::cascades::QListDataModel CategoryListModel;
    
    /* CategoryModel Description:
     *
     * CategoryModel class for the Category List application, the data categoryModel
     * reads and write from a JSON file that keeps all item data
     * for the list.
     */
    class CategoryModel: public CategoryListModel
    {
    Q_OBJECT
    
    Q_PROPERTY(QString filter READ filter WRITE setFilter NOTIFY filterChanged)
    
    Q_PROPERTY(QString jsonAssetPath READ jsonAssetPath WRITE setJsonAssetPath NOTIFY jsonAssetPathChanged)
    
    public:
        /**
         * Constructor that sets up the recipe
         * @param parent The parent Container, if not specified, 0 is used
         */
        CategoryModel(QObject *parent = 0);
        ~CategoryModel();
    
        QString filter();
    
        void setFilter(const QString filter);
    
        QString jsonAssetPath();
    
        void setJsonAssetPath(const QString jsonAssetPath);
    
    signals:
    
        void filterChanged(QString filter);
    
        void jsonAssetPathChanged(QString jsonAssetPath);
    
    public slots:
        void addFavorite(QString channelName, QString channelImageFile, int channelId);
    
    private:
        bool jsonToDataFolder();
    
        // Property variables
        QString mFilter;
        QString mJsonAssetsPath;
        QString mJsonDataPath;
    
        // A list containing all data read from the JSON file
        QVariantList mData;
    
        //Invocation variables
        bb::cascades::Invocation* mInvocation;
    };
    
    #endif // ifndef _CATEGORYMODEL_H
    

    My problem is that the listview is not get automatically updated when a new item is added to the datamodel (a favorite channel is added). I have to exit the application and restart to see the updated list.

    categoryModel.addFavorite(name, imageFile, id);
    categoryModel.clear();
    

    categoryModel.clear ();

    does not work. I get:

    Asset: / / / hand. QML:180: TypeError: result of expression 'categoryModel.clear' [undefined] is not a function.

    I would like to know how to achieve using approach "more correct".

    QListDataModel does not expose its internal storage directly. It is possible to reconstruct the map by performing an iteration in a loop (with the help of data() and size() methods), the dataModel entries:

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__qlistdatamodel.html

    but I don't see how this could help. If the filtered data is changed, it must be merged with the original sort data.

    Why the original approach has not worked?

    I could not understand from the description appearance of the interface user, please post a screenshot if possible.

  • point to row in the ListView multiselect

    Once again, the lack of documentation around annoys me no. where to go so I hope someone can enlighten us

    I do it s simple list multiple selection on a customized ListView, by trial/error, I get a row on the

    {ActionItem}

    ...

    var temp = my_list.selectionList ();

    Temp [0] is the 1stevel of row to the ELT in the list, how the hell I get the actual data for the current item?

    (Works dataModel.data(temp[0]).list_fld onSelectionChanged but not onTriggered, I saw a strange)

    listView = parent.parent.parent, but that one does not work either. The bucket sample did not help either.

    Pretty frustrating is repeat the old song now... How you want devs to come when you play mysterious and not document this? Some of the ad will be would be good if you get a cut of the tech writers and start matching section. This list seems to be powerful but useless if we must spend hours of trial/error to understand how it works.

    These forums are supported by the community, with many other developers like you (i.e., people who do not work for BlackBerry) try to help each other. It does not help us help when we have to read through stuff like that ' play mysterious "etc... just an info.

    You can specify which of the two you are having problems with? Looks like you have that works well for onSelectionChanged(), but did not he works for onTriggered()? Is this correct or have I missed something? (Also please try to use social features shaped correctly. You can use the small "Clipboard with C" icon to insert the code with formatting preserved, to make the issue easier to read.)

  • Menu text freezes on the screen after clicking

    Hello!

    Whenever I click on an option in Photoshop CC, the menu button is frozen on the screen. I will attach a few pictures to better illustrate the problem.

    This is my screen after the opening and closing of a file. The respective part of the menu remains frozen on the screen:

    ps_cc_menu_freezes_1.jpg

    After clicking on a plugin button in the menu "filter":

    ps_cc_menu_freezes_2.jpg

    ps_cc_menu_freezes_3.jpg

    It happens every time on any button. The only way to erase the screen-ahem, the only way I know - is through the control panel screen resolution. I just have to go to a different resolution in both directions, and it works. The thing is, this bug will come back as soon as I use the menu, which is, thus, very often because I rely heavily on some plugins or actions with no shortcuts.

    I have Windows 7 64 bit, an ATI Radeon HD 6500 M graphics card and a Bamboo of Wacom tablet.

    I have to guess a video driver problem (upgrade from AMD site), or a utility program that mess with menu design and has a few bugs.

  • How to set current row in the table after use the button tab on inputText

    Hi all
    My first post.., I am beginner in ADF and I'll try to explain my problem.

    For now we use ADF 11 g (11.1.1.4), in a jsff page I have a table with a column of inputText.
    On the the inputText valueChangeListener, I invoke a method in a bean viewScope that call an EJB method, make some services to the EJB on the modified line. After that, I update the VO and the table (because other values in the row have been changed) and reset the focus on the inputText even modified by the user with javaScript, because the focus was lost after updating.
    So far, everything works fine.

    When I use the arrow keys to change the selected line in the table, this is excellent work (focus is always in the inputText next or previous), but if the user tries the key tab allows you to change the current line, the inputText on the line that has the focus, but the current row in the table is not changed (I think that is normal).

    My question: How can I change the current line after the tab key in this case?

    I don't know if it is really clear, not easy to explain, do not hesitate to ask for more details.
    Thanks in advance.

    Hello

    My question: How can I change the current line after the tab key in this case?

    Use a client event to listen to the keyboard entry and intercept the tab. Use af:serverListener to call the server to set the rowKey on the table and deliver a PPR for the table to repaint

    See example 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples

    to learn more on how to use the client listener and the receiving server

    Frank

  • No visible responsibilities by the user after the cloning of the Production instance

    Hello
    In my environment, a user is disabled in Production, but he has access in the DEV instance. When I clone the production on the DEV instance and allow this user, he is not able to see the responisbilities which it is supposed to see.

    I ran the "Synchronize WF LOCAL tables, but the user is not able to see the responsibility."

    Am I missing something?

    Thank you

    Hello

    Have you tried to bounce Apache and see if it helps?

    Please see the solutions suggested in the thread following/docs.

    Responsibility are not
    Re: Responsibility is not

    Assignment of responsibility not Visible when connecting through AppsLocalLogin.jsp
    Re: Assignment of responsibilities not Visible when connecting through AppsLocalLogin.jsp

    Note: 388018.1 - Unable to see a responsibility in the navigation after the end Date has been removed
    Note: 727638.1 - Unable to see responsibilities after the end Date is deleted on ATG RUP6
    Note: 406892,1 - missing or corrupt user role responsibilities
    Note: 429852.1 - reactivated the user does not see responsibilities

    Kind regards
    Hussein

  • deletion line causes the error after clicking on the button Delete: oracle Apex 5.0

    helloo...

    Use: Under shape whenever I checked and click on Remove button works fine.

    According to the need on my project, I took a default editable TEXT FIELD. Now, I did this TEXT FIELD on the SCREEN only.

    so now if click the button Delete after checking the check box I get below error.

    Session state protection violation:

    This can be caused by manually editing the protected element p11_total.

    Thank you

    Pranav shah

    Hi Dominique,.

    Pranav.Shah wrote:

    helloo...

    Use: Under shape whenever I checked and click on Remove button works fine.

    According to the need on my project, I took a default editable TEXT FIELD. Now, I did this TEXT FIELD on the SCREEN only.

    so now if click the button Delete after checking the check box I get below error.

    Session state protection violation:

    This can be caused by manually editing the protected element p11_total.

    Thank you

    Pranav shah

    Change your display-only item and do save the State of session No.

    or create the sample on apex.oracle.com and share credentials with us.

    Kind regards

    Jitendra

  • When I click on the exe that the thing charge to the taskbar and not going on the bureau after clicking

    When I click on the exe of firefox it loads my homepage but it does not load on the desktop it remains in the taskbar and when I put the cursor on it I can see the loading of the page but when I try to access it pop on the desktop, nothing happens uninstall a fact a reinstalled same prob a repair done same problem did a system restore and the sill not duty use google desktop chrome and I hate thatbold text

    computer resarted couldn't always get firefox will appear so I rebooted my system operating safely moce and reset all default settings on firefox resarted computer and it works now just need to find the bad addon now

  • opening the taskflow as a popup inline on the row in the table, double-click.

    Dear all,

    My question is my topic.

    Kind regards
    David


    Version of the component
    =========     =======
    11.1.1.59.23 ADF business components
    Java (TM) Platform 1.6.0_21
    Oracle IDE 11.1.1.4.37.59.23
    Support versioning 11.1.1.4.37.59.23

    Thanks to Jobineshhttp://jobinesh.blogspot.com/2011/03/displaying-edit-dialog-on-double-click.html...

    Timo

  • Keep the Focus on the button after mouse click

    Hello

    I have a button in my VI that triggers a function. I would like to know how can I keep the focus on the button after clicking with the mouse over it? I ask that because I want that after the first click, the focus is kept on the button then I can activate the button with the space bar.

    I know I can hit the button with "tab" and then use SPACEBAR, or I can put another key to toggle this button.   But the behavior that I'm trying to get is: 'after the first click on the button for the first time, emphasis is stored on it and then I can use the space bar to activate the button.

    Ideas?

    Thank you.

    Dan07.

    I found the solution. Using a property node, set to True KeyFocus.

    Thank you.

    Dan07.

Maybe you are looking for