State assets ListItemListener behavior

I had problems tracking the active status of an item in my list, to keep highlighted.

In fact, when the user clicks on the element, it is activated after a short period, then when the user slides his finger from the element to over the ActionSet who appeared, the signals of ListItem enable with the parameter 'activate' set to false, and my list item is not (because I put it no, since it is the only signal I can listen to determine its is no longer be pressed).

However, I saw in the documentation it should probably not the case:

A list item is "active" while a user is actively pressing the list item or when the item is target for a context menu operation. Once released, or when no longer a context menu target, the item is no longer active. With a StandardListItem, the active visual will have a outline around the item border.

documentation "ListItemListener".

Activate with 'false' when the user runs the attached menu present my object should not call States and should be inactive when the user is the navigation menu, and releases their finger (which is the behavior I want).

I have a suspicion that the cause of this is because I you join the ActionSet ListItemListener class itself, but to the ListView. Can someone confirm that it is why it's more treated as active, because the ListView has the ActionSet attached, not the ListItemListener?

I really don't want to rewrite the code to the ActionSet and move it to a new place, if I do not, but if it will solve this problem, it is well worth.

I attach ActionSet point in ListItemProvider updateItem() and connect actions to the slots of the element.

Following is a work of one of my projects. I hope that helps:

void MovableMenuListItemProvider::updateItem(ListView* list, VisualNode *listItem, const QString &type,
                const QVariantList &indexPath, const QVariant &data)
{
    Q_UNUSED(list);
    Q_UNUSED(type);
    Q_UNUSED(indexPath);

    MenuDataItem *menuData = data.value();
    MovableMenuListItem *item = static_cast(listItem);

    item->setTitle(menuData->getTitle());
    item->setDescription(menuData->getDescription());
    QString image = menuData->getImageSource();
    if (!image.isEmpty())
        item->setImageSource(image);
    else
        item->resetImageSource();    item->removeAllActionSets();
    int childCount = list->dataModel()->childCount(QVariantList());
    //qDebug() << "childCount=" << childCount << ", index=" << indexPath.front().toInt() << "\n";
    item->setDataModel(qobject_cast(list->dataModel()));
    item->setIndexPath(indexPath);
    item->addActionSet(ActionSet::create()
        .title(menuData->getTitle())
        .subtitle("Please choose an action")
        .add(ActionItem::create()
             .imageSource(QUrl("assets/images/icons/upArrowIcon.png"))
             .onTriggered(item, SLOT(moveUp()))
             .enabled(!indexPath.isEmpty() && indexPath.front().toInt() > 0)
             .title("Move Up"))
        .add(ActionItem::create()
             .imageSource(QUrl("assets/images/icons/downArrowIcon.png"))
             .onTriggered(item, SLOT(moveDown()))
             .enabled(!indexPath.isEmpty() && indexPath.front().toInt() < childCount-1)
             .title("Move Down"))
        .add(DeleteActionItem::create()
             .onTriggered(item, SLOT(removeFromFavorites()))
             .title("Remove as Favorite"))
    );
}

Tags: BlackBerry Developers

Similar Questions

  • How can I add pictures as a fill State assets om in widget menu?

    How can I add pictures as a fill State assets om in widget menu?

    Can we go to the window/Fill to open the Toolbox options filling instead of the menu list?

  • State multi objects - how to create a State asset/down AND a visited State Captivate 9

    Hello

    I hope someone might be able to help me understand how I am best at what a "assets/down" State and a "visited" .

    I have a screen with a number of buttons - when the learner clicks on a button, they appear different information (easily click reveal sort of interaction) can I do now with the functionality of the State multi 9 Captivate object.

    But can I use "States" to show that they have visited a button.

    The scenario is as follows:


    Screen has 10 buttons.

    By example, Normal (not yet visited) - button is blue.

    Active/low (learner has selected the button)-button is purple.

    Visited - button is green.

    Thank you.

    Lisa

    Sorry, but Lisa doesn't quite ask on built-in States (Normal, Rollover, Down)! Read each question carefully, please.

    She questioned an integrated State and a State of 'Clicked', which is NOT at all.

    @Lisa the easiest way is to States. I use above all form buttons, because they are much more flexible than the old types of buttons. You see in this Panel of State of the object, I've changed the text on them and rolling to the bottom of the State, which is impossible for the transparent buttons and text and for text image buttons must be in the image, which means that whenever you want to change the text, you must re-create the three images. Not very friendly, because it must still occur in another program.

    You see that on top of the InBuilt three States I created a custom state "Clicked". Do not confuse this Panel: the button has the same size as in the integrated States, but the thumbnails have a fixed size, where the last State of the scene shows that three States integrated.

    If you want the State Down to be the same as the clicked State, you can do it as well, but I wanted to show that it's a different State. With this configuration, you can have the Clicked State, replacing the Normal State (attention: the flyover States and down will remain the same) after clicking on the button with this workflow:

    • Create a tip or shared action standard (in this article, I used shared actions: 1 share = 5 buttons toggle - Captivate blog )
    • Add the command "change the State of MyShapeButton, Clicked
    • Put the command you want to be executed by this button (like the jump to slide X)

    If you navigate away from this slide, the "Clicked" State is only kept in 9.0.1.320 - not in the previous version - if you check the option "Maintain state on the overview of the slide" which you will see in the upper part of the properties of the button panel.

    I would like to know if that's what you're looking for? If you want to have the rollover state change, you will need two buttons and will have to replace the first box of the other which shows all States in a version Clicked.

  • Bug for State assets on a Menu item when an anchor its placed on the Page of masters as a footer...

    Hi, I think I found a bug with Adobe Muse CC 2015.

    As I said on a previous question to myself,

    I have observed the following

    -Created a Page in the House of master (House - A-master) which is actually a unique site of scrolling down

    -Use the masters (A template) to display the section "Contact us" on the footer

    -Created a menu across the top for the user to navigate to all sections of the site, just on the scrolling page

    -Finally place the pegs on the menu and indicates where status = Active, a horizontal black line is placed under the menu item

    So, for the content of the footer, I have created some social media links,

    The problem is that when I used the anchor point in the menu to go to the footer,

    even if an anchor was placed on the page of masters (A-master).

    the menu item was not as I wanted in the active state (with a horizontal black line).

    He was placed on the section of the site, even if I was transferred to the content of the footer.

    So I tried the following:

    -Copy the contents of the footer on the main and placed my anchor Home Page here.

    It works well.

    So, if I'm not mistaken, there is a bug for the active on a Menu item, when state his place on the

    Page of Merlin as a footer...

    You can see the question on

    nektariostest.BusinessCatalyst.com/index.html

    and you can make the change I describe, and the problem is solved.

    My previous thread was: Question about the menu item is displayed does not correctly on the 'Active' State

    BR

    ARIS

    Please check whether or not the active State for the anchor links is enabled, go to Site Properties > advanced

    Thank you

    Sanjit

  • Registry-widget, problem of active States

    Hello, I have a question on le register widgets. Is it possible that the records are closed at the beginning? now the first tab is open? (see Sreenshot)


    Bildschirmfoto 2014-04-07 um 19.39.36.png

    Question: In the phone mode is shifted in the Overview page layout on the left and un menu appears which is not available in design mode?
    Third question: Le " States-active" in the menu items work correctly nich. Is not displayed as, for example, only when you scroll a minimum ...

    Link: http://mgneu.businesscatalyst.com/

    Thanks for help , Martin

    Hi Martin

    Answer your questions:

    -Yes, you can select to hide all initially for the compositions used on the page that allows you to hide all the targets initially, and the click of the mouse on action will appear targets.

    -Access to phone, please check for any empty object as rectangle, block of text along the left side of the page, the menu that is displayed can be master or place the far left of the page, try to remove that.

    -State assets enable for anchor links from the Site Properties > Content

    Thank you

    Sanjit

  • Instructions to remove the search engine do not work, the "delete" button remains grayed out check marks independently. Is there another way that actually works?

    The Firefox Support instructions below do not work in version 36. The button 'delete' is never gray State asset once the unwanted/s search engine are checked for removal. I tried one at a time and in groups, it does everything just as they suggest below.

    Delete a search engine

    You can remove search engines, that you don't need by performing the following steps on the search bar in the toolbar or on the page tab.

       Click the search engine icon and select Manage Search Engines... to open the search engines manager.
       To remove a search engine, select it from the list, and click Remove.
    

    If you accidentally delete a default search engine, click on restore default values to recover the default search engines.

       If you accidentally delete a search engine that you installed, you must re-install it.
    

    I found the solution, the surprisingly simple. Thanks to everyone for trying, but against all the recommendations after a new analysis of malware, virus and upgrade to the latest version released on March 5, 2015... Here is the fix:

    Left click on the dropdown search button, then left click on the "change search settings." Ignore completely the checkboxes as suggested by Mozilla. The text of the search engine you want to delete to highlight in blue in the Middle, click on the grey Out button below should become active. The only function of the boxes by the search engine will make them visible or not when using the search box in Firefox. The solutions proposed by others seems logical, but I learned more than 4 decades as a technician in computer science, opt for the simple solution first. Thank you all for your suggestions, this fix works for versions 36 and 36.0.01on Windows 7. I guess it should work for other OS also.

  • Cat6500 Sup1A password recovery problem.

    Dear all,

    I have a nasty problem with password recovery in 6500 Sup1A - 2G.

    I have read very carefully the password recovery procedure,

    http://www.Cisco.com/en/us/products/hw/switches/ps708/products_password_recovery09186a00801349aa.shtml#ouput

    Reset power, with success, get in the console > (Enable), but then I tried to put the new password.

    I get following message:

    Enter the password:

    Console >

    Console > en

    Enter the password:

    Console > (enable)

    Console > (enable) set enablepass

    The command is disabled until the system configuration file is downloaded.

    Console > (enable) 24-Nov-2012 10:30:09 PDT--07:00 % SYS-5-1 MOD_OK:Module is online

    24 Nov 2012 10:30:09 PDT--07:00 % SYS-5-4 MOD_OK:Module is online

    24 Nov 2012 10:30:09 PDT--07:00 % SYS-5 - MOD_OK:Module 3 is online

    Console > (enable) set enablepass

    The command is disabled until the system configuration file is downloaded.

    Console > (enable) set enablepass

    The command is disabled until the system configuration file is downloaded.

    Console > (enable)

    Console > (enable)

    Console > (enable) set enablepass

    The command is disabled until the system configuration file is downloaded.

    Console > (enable) 24-Nov-2012 10:30:22 PDT - 07:00 % SYS-5 - SUP_IMGSYNC:File synchronization process will start in 10 seconds

    Console > (enable)

    Console > (enable) set enablepass

    The command is disabled until the system configuration file is downloaded.

    Console > (enable)

    Console > (enable)

    Console > (enable) set enablepass

    The command is disabled until the system configuration file is downloaded.

    Console > (enable) see the race

    Current TFTP session. Try again later.

    Console > (enable) set enablepass

    The command is disabled until the system configuration file is downloaded.

    Console > (enable) 24-Nov-2012 10:31:23 PDT - 07:00 % MGMT-5 - SYS_CONFIG_START:System config began with the NVRAM configuration text file

    2012 24 Nov 10:31:24 PDT - 07:00 % SYS-5 - PORT_SSUPOK:Ports on supervisor ensures (module 2) are on the rise

    2012 on 24 Nov 10:31:24 PDT - 07:00 % SYS-3 - MOD_PORTINTFINSYNC:Port for Module 2 synchronization Interface

    2012 on 24 Nov 10:31:24 PDT - 07:00 % MGMT-5-config SYS_CONFIG_END:System finished

    2012 on 24 Nov 10:31:24 PDT - 07:00 % SYS-5-AUTOSAVE: auto-save timer started

    Console > (enable) set enablepass

    Enter the old password:

    Sorry wrong password.

    Console > (enable) set enablepass

    Enter the old password:

    Sorry wrong password.

    Console > (enable)

    Console > (enable)

    Console > (enable) 24-Nov-2012 10:31:44 PDT - 07:00 % SYS-5-SUP_IMGSYNCSTART: Active supervisor synchronizes slot0:cat6000 - supk8.8 - 1 - 1.bin

    Console > (enable)

    Console > (enable)

    Console > (enable)

    Console > (enable) set enablepass

    Enter the old password:

    Sorry wrong password.

    Console > (enable)

    Console > (enable)

    Console > (enable)

    I'm in doubt, because my config don't have any string on tftp.

    Could you help me?

    Thanks in advance.

    See the Configuration section below:

    !

    set password

    Set enablepass

    the value of disconnection 0

    set config mode text nvram

    enable auto-save set config mode text

    Set the interval for automatic saving of text config mode 360

    !

    #!

    #vtp

    the value of bms vtp domain

    VTP transparent mode set vlan

    game vtp version 2

    nwzbms name of vlan Set 7 type ethernet mtu 1500 said 100007 active state

    VLAN Set 30 name video_security type ethernet mtu of 1500 said State active 100030

    VLAN Set 31 name novinsky_31 type ethernet mtu of 1500 said State active 100031

    Set VLANs 1002 name fddi-default type fddi mtu 1500 said 101002 active state

    Set vlan 1004 name default fddinet type fddinet mtu 1500 said 101004 active bridge State 0 x 0 stp ieee

    set vlan 1005 trbrf default name type trbrf mtu 4472 101005 State assets bridge 0xf stp ibm

    define the vlan 1

    Set vlan 1003 default name trcrf type trcrf mtu 4472 said 101003 State active parent 1005 ring 0xccc off srb aremaxhop 7 stemaxhop 7 backupcrf mode

    !

    #ip

    set interface sc0 1 192.168.3.65/255.255.255.0 192.168.3.255

    set interface sc1 down

    set ip route 0.0.0.0/0.0.0.0 192.168.3.43

    set the alias default ip 0.0.0.0

    !

    #ntp

    set the timezone PDT - 7 0

    !

    Start #set command

    set boot config-register 0 x 2102

    flash slot0:cat6000 system starter set - supk8.8 - 1 - 1.bin

    !

    # Is the default port enable

    !

    !

    #module 1:2 - port 1000BaseX supervisor

    !

    #module 2:2 - port 1000BaseX supervisor

    !

    03:16 - port Ethernet, 1000BaseX #module

    set the trunk 3/3 on dot1q 1-1005, 1025-4094

    set the trunk 3/8 on dot1q 1-1005, 1025-4094

    !

    4:8 - port Ethernet, 1000BaseX #module

    !

    #module 5 empty

    !

    #module 6 vacuum

    !

    #module 15 empty

    !

    #module 16 empty

    end

    Hello

    You please set the binary model configuration mode (which is the default) then successfully to the "Console > (enable)" invites via the command 'set binary mode config' and then try the recovery procedure of password for the document again.

    Best regards

    Antonin

  • Loss/Corruption of a Redo Log multiplex group member

    Grid infrastructure: 11.2.0.4

    DB version: 11.2.0.4

    OS: RHEL 6.5

    All recovery logs are multiplexed IE once. Copy of a mirror

    I created a document on how to cope with the loss of a member of a group of Redo Log multiplex. It applies to DBs in ASM or Linux Filesystem.

    If a member of a multiplex redo logs group is lost/damaged is in State assets or CURRENT (v$ log.status), will be the following work?

    Assuming that the DB would not crash (well that's the whole point of multiplexing)

    Step 1. Switch redo log group and bring him to the INACTIVE State IE. LGWR is not written for her now


    Step 2. Remove the Member lost/damaged.

    ALTER DATABASE DROP LOGFILE MEMBER "+ DATA_DG1/mbhsprd/onlinelog/group_1.256.834497203";

    Apparently, this command does not actually remove the log file at the level of the ASM/OS; It updates only the control file

    Step 3. If it is a corrupt then log file physically remove the damaged location ASM/OS file

    Step 4. I hope the below will create a mirror copy of the survivor

    ALTER DATABASE ADD LOGFILE MEMBER '+ DATA_DG1/mbhsprd/onlinelog/group_1.256.834497203' to GROUP 3.

    The above steps won't work?

    There is no point in writing in the document if you do not actually test what you write

    It seems that you are working with Oracle managed files. In this case:

    You will find that your "apparently" in step 2 is not correct, and that your step 4 will throw an ora-01276.

  • Monitor logs

    Hi all

    I see some inconsitent data (as the data collection stopped if my server and its agents are in a State assets in foglight) to specific time limits.

    I'm showing a few screenshots that might help you in the real problem in my console.

    Is there a way where I can get each parameters collected by all agents on my server? Are there logs outside "the agent logs" where I can get a State of collection of accurate data.

    Nicely, I would like to know if there is a specific approach in doing so.

    Kind regards

    Shiva G

    Additional accessories:

    It sounds like the symptoms described by Asma in incompatible in Foglight (FMS) 5.6.4 data collection.

    You're colleagues?

    I suggest we consolidate your evidence and continue the discussion in this thread.

    Kind regards

    Brian Wheeldon

  • Oracle Database 10g managing Oracle on Linux (OCE) Recertification

    On https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=769

    In the list:

    Renewal of certification required by March 1, 2016

    It seems that this certification will be inactive except for certification renewal.

    .....

    However, on the page of retirement: Oracle Certification Exam retirement

    We have:

    Certification Path who retiresDate of retirementNewer version of retirement Certification path
    Oracle Database 10 g managing Oracle on Linux Expert certifiedMarch 1, 2015None


    I.e. There is no version of Superceding to revalidate at:

    In truth I am bovvered? ... Well not really (although I'm concerned because I am the owner of the said ACTIVE certification).  The thing is more outdated than an old ram my uncle once sold... a real old firecracker.  However, the principle of the thing is a little interest...

    I almost added a question about this certification to your original on recert requirements thread.  Then I saw the following note in the page 'requirements and process ':

    https://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=768

    "You can keep all your types of database credentials (associate, professional, Expert and Master) in State ASSETS by winning a single credential OCA, OCP or CMO in the CURRENT version of Oracle Database certification."

    Based on this statement, you take a certification or 11g OCA/OCP/CMO 12 c will prevent any expert version-specific certifications being expired.

    It is worth noting that the reverse is not true, taking a current CEO of certification does * not * prevent anything either, but an earlier version of this same certification expires.  Really means a lot right now because he communicated there very little specific expert certificates (RAC, performance and Tuning SQL optimization are the only 11g those for example), but it's something to know.

  • You can add a button in Photoshop in an Accordion widget?

    I m using the Accordion widget to hide some of the content and added a graphic touch. My button is a simple button with an arrow pointing down in a State normal and like the active state when the content is to be an arrow pointing up. I tried a photoshop button and tried to turn the button for State assets that turn simply all States. Is this possible? Seems pretty simple to me can't seem to make it work.

    You can use 2 separate images for the active and normal state and add them individually to the State selection containers.

    Thank you

    Sanjit

  • change menu bubble icon

    Hi all, how can I change my icon menu on the now hover over it?, for example, change of menu bars to close cross.i try with button States but I Don t know how to insert in the menu widget or the composition of works as I want. http://brianhoffdesign.com/#/, this page has some examples on my question.i as this effect in the menus, but I Don t know if there is a way to do it in muse.thanks... and sorry my English.

    You can define States assets and the mouse down, States can be defined for the fill picture or opacity, color etc. It goes the same for composition triggers.

    https://helpx.Adobe.com/Muse/using/assigning-States-objects.html

    Thank you

    Sanjit

  • Connecting to MQ bridge message shows active / forward messages, but does not

    • Created a message between active MQ and weblogic bridge.
    • The State assets > > messages
    • When I put a message in the queue, I see the following error in the logs

    "< 21 August 2013 2:13:29 PM PDT > < WARNING > < MessagingBridge > < BEA-200026 > < Bridge"

    Bridge-1 "has encountered some problems in one of his cards or the underlying systems

    . It stopped the message transfer and will try to reconnect to the sho adapters

    1. (The exception caught was javax.resource.ResourceException: error send)
    2. message.) >

    Weblogic10.3

    We have solved this problem by using the last Active MQ pot. Previously we were using 5.4.3 now when you use the most recent version that has solved this problem

  • Showcase Custom Android v27

    Hello

    I tested a showcase custom in the DPS v27 iOS and it all works, but the same code that I use in the iOS does not work in android.

    I tried to use v2.27 and v2.28 LibraryAndStoreSDK (links below), but the results are the same.

    http://www.Adobe.com/devnet-docs/digitalpublishingsuite/LibraryAndStoreSDK-2.27/docs/index .html

    http://www.Adobe.com/devnet-docs/digitalpublishingsuite/LibraryAndStoreSDK-2.28/docs/index .html

    Also, I was able to debug my showcase custom iOS successfully, but in Android, there seems to be no way to debug it.

    So, should I do something special to make it work on android? It is even possible to have a showcase custom in android? Is there a way to debug it in Android?

    All of the examples I have seen are old and they all speak of showcases custom iOS... someone was able to implement one in android?

    Thank you.

    Library updates automatically each time the app is taken over State assets. But if you need to explicitly call and update the library, yes libraryService.updateLibrary () is the function to call

  • Selectable checkboxes in text Richt texteditor

    Hello

    I'm trying to set a default value (default text) on a field of type text, Rich Text. This default text must contain checkboxes that the user can select and save. This rich text editor is HTML-based, so I can use checkboxes, etc.

    If I use the value below as default text, I get the check boxes in the content/text editors, but these boxes are not selectable, so that the user can change the default and save its new State.
    The behavior is the same for any type of text editor enriched in the Apex.

    + * < INPUT TYPE = CHECKBOX NAME = 'fungi' > mushrooms < BR > * +.
    + * < INPUT TYPE = CHECKBOX NAME = "greenpeppers" > < BR > green peppers * +.
    + * < INPUT TYPE = CHECKBOX NAME = "olives" > < BR > olives * +.
    + * < INPUT TYPE = CHECKBOX NAME = "onions" > < P > onions * +.

    Is there a way to do this?

    Concerning
    Bottom

    Edit:

    I think I understand now. They just want to have a document in which appears a checkbox enabled. The value of the check box itself has no need to be saved in a db column.

    This works if you select (highlight) the box first, then click on it.

Maybe you are looking for