Display the current item in the list without advancing the iteration using

This is my directions.
Display the current item in the list without advancing the iteration using only iterator methods.
I can't seem to figure this one out when the only methods available are hasNext();, next();, hasPrevious();, previous();, add();, remove();. and set();, and nextIndex();. Can someone please give me advice on this one?
Thanks a bunch!!!!

After thinking briefly about an ugly megillah that would detect whether or not you've ever called Iterator.next(), which is what is required for a bulletproof solution, I've decided after looking at the documenation that in fact the problem is not valid.
It's as simple as this: the Javadoc says 'a ListIterator has no current element'.
Tell your professor.

Similar Messages

  • How do i select multiple items in spark list without pressing the control ?

    Hi all,
    I need to change the list behavioral to enable multiple selections with a click on each item
    In list, instead of using the control
    10x
    elazar r

    In your itemClick handler, check the selectedItems property, and add to it. You might need to maintain a separate collection object and bind the selectedItems property to it.
    The question becomes how to unselect an item. If it is already selected, clicking it again can unselect it, and clicking a submit button or comparable action could do the same.
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • Error-Cannot set DISPLAYED attribute of the current item DUMMY.VIEW

    HI ALL,
    Im my form, I have three BLOCKS
    1) CTL(Manual Data Block)
    2) DUMMY(Manual Data Block)
    ITEMS 1) msg 2) <view> 3) <cancel> 4) <Exit>
    3) Audit Trial Log(Database Data Block)
    ITEMS All Database columns of a table Audit_Trial_Log
    CANVASES 1) CANVAS3------Block CTL---window1
    2) New_Entries---Blocks Dummy and Audit Trial Log--New_Entries
    In CTL block I have button <VIEW>. On when-Button-Pressed trigger I am setting "VISIBLE' properties false for items of datablock AUDIT Trail LOG and also for item of datablock DUMMY excluding for <VIEW> and <Cancel> buttons.
    when-Button-Pressed trigger of <View>, I have done reverse setting i.e. previously visible items to invisible and vice versa. Also I am executing query on Audit Trial Log block. But when I click <VIEW> I get the following error
    FRM-41016: Cannot set DISPLAYED attribute of the current item DUMMY.VIEW Even execute query fails.
    Please help me......

    before setting a current item to invisible you must navigate to another item, which is visible

  • When i login to my mac, it opens iTunes, Skype and AIM. I've tried deleting these from the login items, but they are not on the list.  Can anyone help?

    When i login to my mac, it opens iTunes, Skype and AIM. I've tried deleting these from the login items, but they are not on the list.  Can anyone help?

    babowa wrote:
    If you do not lock that folder immediately after deleting all the contents, it will simply populate again (Resume - a "feature" in Lion). You do that by doing a Get Info (highlight folder and press Command + I keys), unlock the lock at the bottom, enter your admin password, then check the box to lock the folder. lock the lock and you're done.
    Yes, that is correct. The alternative is to quit all applications prior to logging out. Lion will then have a chance to remove the saved states.
    babowa also wrote:
    And, for the OP:
    It has also been a regular feature of Mac OS to automatically open any window that was open at shutdown. To avoit that behavior, simply close any Finder windows and  properly quit applications by closing their window and using Command + Q (or File >Quit).
    This was true only for the Finder. Prior to Lion, no other apps would launch unless they were included in the Login Items for the account. And the OS would not restore windows for other apps.
    A very small number of apps (TextWrangler is an example) implemented this capability prior to Lion. They could restore previously opened windows. But that is an application feature, and can be controlled by the application's preferences. Lion implements it at the system level, and users have virtually no control on a per application basis.

  • Is there a way go get the item number of the current item?

    In an item with multiple instances: Is there a way to get the item number of the current item? If for instance, I am on the 3rd item, is there some kind of “GET CURRENT RECORD NUMBER” built-in that would return a ‘3' to the program?
    Thanks
    Edited by: WayneFMcKinstry on Apr 9, 2010 10:50 AM

    If i am getting you correctly that in tabular item you want to know the current record or current item you can try this...
    For current record
    :SYSTEM.CURSOR_RECORD;
    or
    :SYSTEM.CURRENT_RECORD;for current item
    :SYSTEM.CURSOR_ITEM;-Ammad

  • Changing the color of the current item in a link bar

    It seems that the currrent item and the disabled color are
    the same. How can I have the current item stand out in a link bar?
    I see styles for Selected but not for the current item.
    thanks
    bruce

    I tried with keylistener but it is not working.What is not working, the KeyListener or the coloring of cells? Don't make us guess.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

  • Modifying an "ssl-proxy-list" without disturbing the active sessions.

    Hello,
    I would like to know if it is possible to have two SSL modules installed in a CSS11503 with each one having it's own "ssl-proxy-list" ("ssl-proxy-list list1" and "ssl-proxy-list list2"), but the two lists (list1 and list2) are exactly the same.
    I will explain my idea:
    In normal situation the two "ssl-proxy-list" are active and the user's encrypted sessions are load balanced between the two SSL modules. But when we need to make a change to the "ssl-proxy-list", like changing a server's certificate, I would like to be able to suspend one service (type ssl-accel with the "ssl-proxy-list List1" attached to it for example) and wait for all active sessions to terminate before suspending the "ssl-proxy-list list1" for applying the changes.
    Once the first "ssl-proxy-list" is updated I would make it active again and apply the same changes to the second "ssl-proxy-list".
    Doing this this way I would like to be able to upgrade the servers's certificate during the working houres without disturbing the connected users...
    Do you think this way of doing would be possible, or do you have an other solution to modify a "ssl-proxy-list" without disturbing the active running sessions ?
    Thank you for your answer,
    Best regards

    Hi Francois,
    An SSL proxy list may belong to multiple SSL services (one SSL proxy list per service), and an SSL service may belong to multiple content rules. You can apply the services to content rules that allow the CSS to direct SSL requests for content.
    The CSS supports one active SSL service for each SSL module in the CSS, one SSL service per slot. You can configure more than one SSL service for a slot but only a single SSL service can be active at a time.
    No modifications to an SSL proxy list are permitted on an active list. Suspend the list prior to making changes, and then reactivate the SSL proxy list once the changes are complete. Once you have modified the SSL proxy list, suspend the SSL service, reactivate the SSL proxy list, and then reactivate the SSL service.
    You can use maximum 4 different certificates at a time.
    Use the suspend command to suspend an active SSL proxy list.
    To suspend an active SSL proxy list, enter:
    (config-ssl-proxy-list[ssl_list1])# suspend
    use the url below for your reference:
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v7.10/command/reference/CmdSSLC.html
    Kind regards,
    Sachin Garg
    Senior Specialist Security
    HCL Comnet Ltd.
    http://www.hclcomnet.co.in
    A-10, Sector 3, Noida- 201301
    INDIA
    Mob: +91-9911757733
    Email: [email protected]

  • How to clear a cursor list without clearing the first row??

    Hi all, good to see ya ...
    I'm having this problem , that i'm using the first row ín a cursor list as a cursor in another graph. The rest of the rows are used as test sets i can add. So  when finnish with the tests if some was set, i have to delete or clear the cursorlist(but only the tests and not the first wich is the pointcursor) byy using the graphs cursor list proberty node ' Crsr.List '  and initialising it as showed in picture 1.
    Picture 2 shows the cursor list with some test and the cursor name (point cursor) and properties at  top. These properties are directly copied to another graph cursor list also at the top and there the point cursor is used as the cursor. The tests are also copied to the other graph cursor list, but when deleting the tests by 'clear button' all data are cleared also the point cursor. That is my problem.
    so the question is, how can i clear a cursor list without clearing the first raw and its proberties. any suggestions would be much help for me.
    Regards
    Zamzam 
    HFZ
    Attachments:
    Cursor Palette Front panel.JPG ‏25 KB
    cursor paletteA.JPG ‏66 KB
    Cursor paletteB.JPG ‏77 KB

    Zamzam
    The cursor list is just an array so you can delete the elements that you don't want.
    David
    Message Edited by David Crawford on 06-15-2006 12:46 PM
    Attachments:
    Delete Cursors.jpg ‏8 KB

  • How to change the current item background color

    I m working in forms 6.0.
    I want to mak the background color of the current item (whatsoever the item name is ) as 'yellow'. How can i do that.How can i accoplish that? I've tried
    set_item_property(:system.cursor_item,background_color,'yellow');
    in Pre_text_item
    set_item_property(:system.cursor_item,background_color,'white');
    in post_item_item
    at block level
    But i failed to do that
    anyone to help me plz
    Riaz Shahid

    hi riaz,
    i think instead of pre-text-item put the code in when new item instance.or try creating a visual attribute with background color as yellow and attach that using set_item_property in when new item instance or check for help on DISPLAY_ITEM built in in forms help.I think one of these should definitely help u.
    bye
    Atul

  • After a few minutes, the page down won't work without clicking the mouse pointer on the page I am reading to activate page down again. Is there a way to go back to page down working every time without having to click the page first?

    Question
    After a few minutes, the page down won't work without clicking the mouse pointer on the page I am reading to activate page down again. Is there a way to go back to page down working every time without having to click the page first?

    Today, two other users reported issues with the back-forward history list dropping down if they hovered the mouse pointer over the back or forward button -- without clicking -- and then moved the pointer downwards. One user was on a touchpad, I don't know about the other user. Are you experiencing anything like that?

  • I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    If the old ID is yours, and if it is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Unable to refresh the schema of FIM MA.Getting an error in Event viewer ""the current version of database is not compatible with the one expected by Forefront Identity Manager service. The current version of database is : 1116. The expected version is :1"

    Hi,
    We have installed FIM MA with an account that have all the sufficient rights.It got created successfully and worked for Full Import and Full Sync. But, due to some version incompatabilities, we have installed a patch.PFB link for the patch.
    http://support.microsoft.com/en-us/kb/2969673/en-us
    Now, we are trying to refresh the schema of FIM MA. While doing that we are facing an error "Failed to connect to database". The user account with which we are connecting has read and write permissions on DB.In the event viewer some errors are
    logged like  "the current version of database is not compatible with the one expected by Forefront Identity Manager service. The current version of database is : 1116. The expected version is :1122" with event ID 3. PFB images for more detailed
    view.
    Please advice how to fix the issue.
    Thanks
    Prasanthi.

    Hello,
    seems to me that you maybe only updated the syncengine but not portal/webservice.
    I had that error once after an recovery from scratch and forgot one of the hotfixes to apply to all services.
    -Peter
    Peter Stapf - ExpertCircle GmbH - My blog:
    JustIDM.wordpress.com

  • TS3230 i get a pop-up window saying the current version of Safari does not support the community toolbar.  How do I get rid of this?

    i get a pop-up window saying the current version of Safari does not support the community toolbar.  How do I get rid of this?

    You need to uninstall the Community / Conduit toolbar add-on.
    Locate the files in bold print and move them to the Trash. The first five are in your root   /Library
    /Library/Application Support/Conduit
    /Library/InputManagers/CTLoader
    /Library/ScriptingAddtions (anything CTLoader realted)
    /Library/Receipts/<Toolbar name>.pkg
    /Library/Application Support/SIMBL/Plugins/CT2285220.bundle
    The next one is in your Home folder.
    ~/Library/Application Support/Conduit
    When you're done, try Safari.

  • HT201269 I restored my iphone and now it has gone back to factory settings. How do I transfer all the purachsed items from my itunes back onto the phone?

    I restored my iphone and now it has gone back to factory settings. How do I transfer all the purachsed items from my itunes back onto the phone?

    Hello whytea4
    Check out the articles below and choose the one for your computer to sync media and apps to your iPhone.
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12113
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12313
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How to get the current folio from inside a folio with the reading sdk

    Hi there,
    I'm currently trying to get the current folio and its filter value within the reading sdk (custom Navigation).
    In 2.31 there was a "ReadingService" with "currentfolio" (Adobe DPS - Reading SDK 2.31 : adobeDPS-ReadingService : JsDoc Reference).
    However, in 2.32 this Service is gone. "Folio" itself exists tough.
    My question is: How do I get the current folio and its filter?
    I tried with adobeDPS.Folio / adobeDPS.Folio().filter and so on but getting nowhere.
    Best regards,
    Andy

    Aah.. yes, you're right. And since I made a typo (writing adobdeDPS.Readingservice with an uppercase "r") I got an undefined and thought it was really gone
    So... can confirm that adobeDPS.readingService.currentFolio actually works.
    Thank you,
    Andy

Maybe you are looking for