Regarding the focusGained and iteratorBindingChange events

Dear Jdev/JClient team,
I'm trying to build up a self-style API based upon the
JClient classes to emulate more or less the mechanisms
of the Developer tool. My first efforts were to match
next concepts:
JUApplication <---> Application (Frame)
JPanelBinding <---> Form
JUIteratorBinding <---> Block
Moreover, I'm using my own toolbar that I want it to
act at application level. This toolbar uses the
JUActionBinding dynamically because it's able to target
the current panel binding "in focus". I'm also intercepting
the focusGained events to perform the typical navigation
triggers in Developer: WHEN-NEW-ITEM-INSTANCE,
WHEN-NEW-RECORD-INSTANCE, WHEN-NEW-BLOCK-INSTANCE and
WHEN-NEW-FORM-INSTANCE.
In this context, I have some major concerns:
1) I've reading about the next 9.0.3 version, and I'm very
interested, and quite worried, about possible changes
in the way the focusGained and iteratorBindingChange
events will be delivered. I mean, these events will be
delivered in the same situations in the next version??
Knowledge about this is vital due to the fact that my
API relies in the JClient current behavior.
2) Regarding the structure of bindings, I've read and
I've seen that the JPanelBinding really don't act
at "Form" level. That is, you can associate all your
panels to only one JPanelBinding. However, I prefer
to use one JPanelBinding for each "Form". In this
context, I have the next particular problem. I have
two or more JUPanelBinding and I have a class that
implements the JUNavigationBarInterface to track
the current JUIteratorBinding by registering itself to
all these JUPanelBinding, and one of these JUPanelBinding
has only one JUIteratorBinding. In this case, when
I navigate to this last JUPanelBinding from another one
I don't receive the iteratorBindingChange event.
Browsing the source code this is "normal" because a
JUPanelBinding with only one JUIteratorBinding is
expected to delivered this event once. However, this
mechanism seems very restrictive (or maybe a bug). The
problem seems to be that the standard toolbar are
expected to receive these events and track the iterator
binding, and this standard toolbar only acts at
JUIteratorBinding or JUPanelBinding level. Nevertheless,
I want a toolbar that can share all the panel bindings!!
Is this something you plan to change in 9.0.3? is this
a bug? a non-supported functionality? What can I do?
I'm thinking in ignoring the iteratorBindingChange
events and generating them by myself upon receiving
the focusGained events which act at JUApplication level.
Is this a good idea? Will this be compatible with 9.0.3?
The next piece of code is part of the current implementation
of the JUPanelBinding. You can see that the mNavBarInit
variable make the class to only deliver the iteratorBindingChange
event once if we have only one JUIteratorBinding. This is
issue I'm referring to.
public void focusGained(...)
if (mNavigationBarList != null)
JUIteratorBinding currentIter = null;
ArrayList al = getIterBindingList();
if (al.size() > 1)
//this could be optimized by keeping track of current iterator.
currentIter = iterBinding;
else if (!mNavBarInit)
mNavBarInit = true;
currentIter = (JUIteratorBinding)al.get(0);
if (currentIter != null)
al = mNavigationBarList;
for (int i = 0; i < al.size(); i++)
((JUNavigationBarInterface)al.get(i)).iteratorBindingChanged(currentIter);
I would appreciate any comments, advice or information you
can address to me.
Thanks in advance.
Jaume Espriu
Software engineer
[email protected]
SAME S.I. S.A.

1) I've reading about the next 9.0.3 version, and I'm very
interested, and quite worried, about possible changes
in the way the focusGained and iteratorBindingChange
events will be delivered. I mean, these events will be
delivered in the same situations in the next version??
Knowledge about this is vital due to the fact that my
API relies in the JClient current behavior. I'm not sure where you get the "impression" that raising of focusGained and iteratorBindingChanged events will be changed?
- focusGained is generated by Swing and should stay the same. JClient does not raise/block raising of this event.
- iteratorBindingChanged event is generated by JClient when the RowSetIterator for an iteratorBinding is changed
No bugs were fixed/resolved for this area of the code.
2) Regarding the structure of bindings, I've read and
I've seen that the JPanelBinding really don't act
at "Form" level. That is, you can associate all your
panels to only one JPanelBinding. However, I prefer
to use one JPanelBinding for each "Form". In this
context, I have the next particular problem. I have
two or more JUPanelBinding and I have a class that
implements the JUNavigationBarInterface to track
the current JUIteratorBinding by registering itself to
all these JUPanelBinding, and one of these JUPanelBinding
has only one JUIteratorBinding. In this case, when
I navigate to this last JUPanelBinding from another one
I don't receive the iteratorBindingChange event.
Browsing the source code this is "normal" because a
JUPanelBinding with only one JUIteratorBinding is
expected to delivered this event once. However, this
mechanism seems very restrictive (or maybe a bug). The
problem seems to be that the standard toolbar are
expected to receive these events and track the iterator
binding, and this standard toolbar only acts at
JUIteratorBinding or JUPanelBinding level. Nevertheless,
I want a toolbar that can share all the panel bindings!!
Is this something you plan to change in 9.0.3?No.
is this
a bug? a non-supported functionality? What can I do?You may want to implement some kind of focus changed mechanism where you "common" toolbar is notified of the current panel in focus so that it can then update it's iterator binding to current panel's iterator binding.
Default raising of the event iteratorBindingChanged(), is only within the context of one JUPanelBinding instance.
I'm thinking in ignoring the iteratorBindingChange
events and generating them by myself upon receiving
the focusGained events which act at JUApplication level.
Is this a good idea? Will this be compatible with 9.0.3?I believe so.
The next piece of code is part of the current implementation
of the JUPanelBinding. You can see that the mNavBarInit
variable make the class to only deliver the iteratorBindingChange
event once if we have only one JUIteratorBinding. This is
issue I'm referring to.
public void focusGained(...)
if (mNavigationBarList != null)
JUIteratorBinding currentIter = null;
ArrayList al = getIterBindingList();
if (al.size() > 1)
//this could be optimized by keeping track of current iterator.
currentIter = iterBinding;
else if (!mNavBarInit)
mNavBarInit = true;
currentIter = (JUIteratorBinding)al.get(0);
if (currentIter != null)
al = mNavigationBarList;
for (int i = 0; i < al.size(); i++)
((JUNavigationBarInterface)al.get(i)).iteratorBindingChanged(currentIter);
I would appreciate any comments, advice or information you
can address to me.
Thanks in advance.
Jaume Espriu
Software engineer
[email protected]
SAME S.I. S.A.

Similar Messages

  • How can i catch the gotfocus and lostfocus events

    Hi Dear;
    i tried to catch the gotfocus and lostfocus events, but i can't.
    in the same code i can catch the onclick events.
    is there any special code for the gotfocus and lostfocus events?
    regards;

    Danny;
    Whenever I have an issue such as this I fire up the event logger and it will show you exactly which events you can put your hooks into.   If you are not using it you should really check it out.  Will save you tons of time.
    https://www.sdn.sap.com/irj/sdn/businessone-tools
    I know it's not the exact answer you were looking for but I hope it helps.
    Wayne

  • I've lost the contacts and calendar events from my 3GS after setting up iCloud with iPad3 and PC Outlook.  Any solutions?

    I've lost the contacts and calendar events (& email) from my 3GS after setting up iCloud with iPad3 and PC Outlook.  Any solutions?
    I tried to re-synch it with the PC iTunes, but no luck, even when re-checking the boxes for Outlook...

    I should mention that i have NOT upgraded to iOS 5 on the 3GS and don't want to.  Therefore, no iCloud on the phone.

  • Question regarding the "mcxquery" and "dscl -mcxread" commands:

    Question regarding the mcxquery and dscl -mcxread commands:
    Does anyone know why the mcxquery and the dscl . -mcxread commands don't show any info about MCX managed login items & printers? The System Profiler's "Managed Client" section does. Id like to see info regarding managed printers and managed login items using the mcx tools. I have Mac users running 10.5.2 with both login items and printers that are pushed out to them via MCX. The System Profiler app shows all of their policies, but the dscl . -mcxread and mcxquery tools dont. Why not?
    -D
    Message was edited by: Daniel Stranathan
    null

    How do you "call procedures/functions" without sql code? You need at least the call statement like
    {call myProc(?,?,?)}that you wrap into a CallableStatement.
    Other than that: when you switch off autocommit, you need to call commit/rollback at the end. Usually, if you don't commit/rollback a non-autocommitted connection, the transaction get's committed/rollbacked when you close the connection - that depends on the JDBC driver. But it's never a good idea to ommit the commit/rollback calls on a non-autocommit connection. Usually you enclose your code in a try/catch block like this:
    con.setAutocommit(false);
    try {
       con.commit();
    } catch (Exception e) {
       con.rollback();
    } finally {
        con.setAutocommit(true); //or:
        con.close();
    }

  • SCCM reporting - logging the login and logoff events on every device.

    Hi,
    I am currently looking at recording the login and logoff events on all 10k devices we support.
    We are running System Center 2012 R2 on Windows Server 2012 within a hierarchy with two primaries.
    Any help would be greatly received.
    Thanks,
    Katie 

    There is an easy way to do this via Group Policy
    http://social.technet.microsoft.com/wiki/contents/articles/20422.record-logon-logoff-activities-on-domain-servers-and-workstations-using-group-policy.aspx
    You'd have to do regular housekeeping though as the files could get big.
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • Regarding the difference between an event and an album in iPhone

    As I understand it, and event is a type of permanent" storage of downloaded images from cameras, etc. An album is where you sort them out to make a special album. OK. Mu question is: let's suppose I have pictures in an event and they take up 500MB; and let's suppose, I create an album with all the same pctures. Does this mean that I now have 1GB of pictures or are those picture that are in album, are virtual or ghost pictures?
    Thanks much,
    Emile

    Yes if you create an album the photos are ghost images. The phrase used is the photos in a album are pointers back to the original and in your example don't double the storaged used.

  • Regarding the Customer and Vendor insurance

    Hi Gurus,
    My client is dealing with food materials,the requirement of the client is he will take an insurance policy say for 1cr and is valid accross India.The moment any sale or purchase takes place and which is transported in a truck,the invoiced amount should be automatically deducted from the policy and the system should warn them if the amount or validity date is near lapse so that they can renew the policy.
    If any customer is picking the goods then the amount should not be deducted from the policy.Can anyone please help me in this issue.
    Thanks in advance,
    Ramesh.
    Edited by: malladirb on Jul 28, 2011 7:18 AM
    Edited by: malladirb on Jul 29, 2011 11:37 AM

    Dear Sreenivas,
    My client deals with food materials.He buys the raw materials from farms and transports from different locations to the main plant where the material is processed.Similar is the scenario with the sales.The customers of the  Client r in different locations in the country.The requirement here is,if the client sells or procures any material which involves transportation by a truck (in case of any accident taking place) he can claim the insurance for the amount.
    What ever the amount which is invoiced in the above explained scenarios should be deducted from the insurance policy which is an Inland Transit Insurance policy and similar is the case with the expots also.
    I hope my explanation is clear to u.
    Thanks & Regards,
    Ramesh.

  • Looking at the AWTEventQueue and adding events to it

    I was wondering if its possible to see whats on the current AWTEventQueue and possibly add my own events to it without having some component such as a Button causing the event?

    I will be doing overflow editing for car commercials as well as other corporate promo video work. Mostly following already shot and produced pics and graphics. I will just be importing the work and laying down the tracks.
    My peripherals include:
    Suitable storage 400/800 firewire connections
    extra monitor for duel screen work
    Contour shuttle pro and trackball mouse
    Sony DSR-11 VTR if I can find one. If not Sony GVD-1000
    Various Jumpback graphic programs
    JD

  • Regarding the GR and the IR

    Hi ,
    Is there any way to relate the GR value and the IR value that is take for example
    i have three GRs 10 20 50 for the first 10 and 20 an IR is created and for the third another seperate IR is created is there any way to match the IR and GR

    hi,
    go to purchasing doc ie ME23N,  and then go to purchase history tab.
    there you can see against which GR which Invoce is done.
    to find PO for particular GR : go to Tcode migo - display - enter gr no.- in purchase order history tab - you get OP no.

  • Regards the ipad2 and iOS5.1

    Have, under the direction of apple, updated the software on my 4 month old ipad2. Since then the ipad appears to take on a mind of its own at some times, opening up programmes, playing my music, locking up, not allowing me to use other applications. At this momemt am tempted to return it to the supplier as it is still well within its warrenty! Any one got any suggestions!

    Have you tried a reset to see if that fixes it ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Regarding the logo and guidance required to get in to IT field

    Hi Team,
    I have just completed my OCA(9i) Developer Track
    Please guide me from where I can download the logo to add it on my cv.
    Now I want to do a DBA Track 10g i.e. 1z0-042 and 1z0-043 is it necessary to join instructor base training institute to get the certificate??(after clearing the exam) or one can do only one subject training and submit the oracle form?
    and do self study for second paper (43) is it possible?? or I have to do both instructor base training
    what is scope for 9i developer OCA in the market as I am fresher in database (I have experience from other field i.e KPO) will it help me if I show the certification in CV do they give me chance to enter in Technology and I cant show fake experience
    How I should get more and more chances in the field of Database to ensure my knowledge
    Please suggest me the procedure to prove my skill in the field of IT
    Regards
    Tushar

    user9312215 wrote:
    Hi Team,
    I have just completed my OCA(9i) Developer TrackTo be very strictly correct this is not actually true; as I am fairly you have not recieved evidence via your certiication success kit or via Certview in which case either of these would give you details of where to get the logo.
    I believe you have exam passes for the relevant exams, but that is not quite the same thing as the certification.
    >
    Please guide me from where I can download the logo to add it on my cv.
    http://certview.oracle.com
    http://blogs.oracle.com/certification/2009/11/0080a.html
    Now I want to do a DBA Track 10g i.e. 1z0-042 and 1z0-043 is it necessary to join instructor base training institute to get the certificate??(after clearing the exam) or one can do only one subject training and submit the oracle form?
    and do self study for second paper (43) is it possible?? or I have to do both instructor base training
    If you take either course from oracle university you only need to attend one hands on class ... you will not receive 10g DBA OCP without it. (10g DBA OCA does not need it).
    If you are taking the course via a WDP instiute, which is more econmical but risks lesser quality, this is less clear to me whether the complete course has to be attended {thread:id=1065168}
    what is scope for 9i developer OCA in the market as I am fresher in database (I have experience from other field i.e KPO) will it help me if I show the certification in CV do they give me chance to enter in Technology and I cant show fake experience There are too many factors to give a simple answer; and conditions in different parts of the world may be different. Experience may often be more important than certification. I would image the market for DBA's with certifications and little experience is saturated in many parts of the world.
    Previous experience in a related business area can help. As you KPO and bigdelboy dunno you should hve a better answer than I; i merely try to mainly do cerification process logistics and strange humour.
    >
    How I should get more and more chances in the field of Database to ensure my knowledge Use KPO
    Please suggest me the procedure to prove my skill in the field of ITPublish useful blog on the web on how to do something technical.
    Regards
    TusharRegards - bigdelboy .... in a holiday mood.

  • Regarding the FM and FG in a Transport Request

    hI Experts,
    I have created a Function Module and make some changes in the Function Group but in the Transport Request i see that i have only Function Group only.
    Is Function group automatically contain the function module.?
    Regards,
    RG

    Hi,
    Dont worry ... the Transport Request has the Function Group. This means the Function Module is also under the same Request.
    Whenever a Function Group is transported, all the FMs inside the Function Group are also transported.
    Hope this helps!
    Regards,
    Saurabh.

  • Please help me regarding the law and telephone pol...

    Hi guys this is my first post but I've been suffering for a few weeks with this matter and need some help from those in the know...
    I had a new line put in to the house which is about 1m from the middle of the pair of semi detatched where I live.
    The cable travels over my next door neighbours garden to the pole on the other side of the street at around 45 degrees.
    They can open all the windows etc, it's over 3m high and doesn't pass over any buildings, but they have complained about the installation. I have had 3 or so visits from BT engineers who seem to want to move heaven and earth to keep my neighbour happy but don't seem so concerned with my opinion and I really don't want to move the cable to the other side of the house as all my cables enter on the same side and I don't want trailing wires across the render (plus it's not the point as theres a history between us).
    I had another visit today saying that they are now looking at possibly installing a new pole outside my house for the cable which in my view is insane as there is another one about 10m away and I already have a bus stop outside my property.
    Can anyone please help me to understand and advise on:
    1. Where I stand in terms of having to move the cable.
    2. If I have any grounds to object and prevent a new pole being sited outide my house (if he wants it outside the next door thats up to him).
    3. Whether I can say even if a new pole is installed that I can still insist the cable remains in the original position.
    4. Any other advice on how to make this harrassement stop without giving in to his bullying.
    If anyone has any help/guidance/legislation to offer I'd really appreciate it as it's really upsetting both me and my elderly mother who I live with. 
    Thanks guys.

    pete-r36 wrote:
    Hi guys this is my first post but I've been suffering for a few weeks with this matter and need some help from those in the know...
    I had a new line put in to the house which is about 1m from the middle of the pair of semi detatched where I live.
    The cable travels over my next door neighbours garden to the pole on the other side of the street at around 45 degrees.
    They can open all the windows etc, it's over 3m high and doesn't pass over any buildings, but they have complained about the installation. I have had 3 or so visits from BT engineers who seem to want to move heaven and earth to keep my neighbour happy but don't seem so concerned with my opinion and I really don't want to move the cable to the other side of the house as all my cables enter on the same side and I don't want trailing wires across the render (plus it's not the point as theres a history between us).
    I had another visit today saying that they are now looking at possibly installing a new pole outside my house for the cable which in my view is insane as there is another one about 10m away and I already have a bus stop outside my property.
    Can anyone please help me to understand and advise on:
    1. Where I stand in terms of having to move the cable.
    2. If I have any grounds to object and prevent a new pole being sited outide my house (if he wants it outside the next door thats up to him).
    3. Whether I can say even if a new pole is installed that I can still insist the cable remains in the original position.
    4. Any other advice on how to make this harrassement stop without giving in to his bullying.
    If anyone has any help/guidance/legislation to offer I'd really appreciate it as it's really upsetting both me and my elderly mother who I live with. 
    Thanks guys.
    Hi Pete.
    Not sure about existing cables, but i am sure they would need your neighbours permission to cross over his land.
    Michael (ypt) might come in here. he lives about 30ft from his nearest pole(second house away) Apparantly the original neighbour on the new builds gets his line from this pole but refused permission for the cable to go over his land to others, so for his property (about 30ft from the pole) it goes across the road to another pole, then down the road for about 100ft to another pole, and from there goes back across the road to his house.
    Stupid I know.
    toekneem
    http://www.no2nuisancecalls.net
    (EASBF)

  • Regarding  the rowset and row tags in the XML output

    Hi,
    We generated an XML file using dataset of type SQL query.The output is including additional tags
    <ROWSET> and <ROW> tags.How to disable them from appearing in the XML output.

    Hi,
    Iam not using the Datamodel of data template type.If we use the data template we can disable the rowtags by setting the property mentioned by you.But we get the data template name and the query name included in the output.My requirement is to disable the extratags.
    Can u please provide inputs on how to disable the datatemplate name and the query name tags in the output when we use datatemplate.Thank you.

  • ADF Drag and drop event inside the single af:treetable

    Hi Experts,
    I have a af:treeTable in my ADF web project and i would like to implement the drag and drop event to the same tree table for supporting my sample test project use case. Currently i am facing some issue to get the source tree node and the destination tree node of the drop and drop event inside my drop listener method. How can i get those object since i need to perform some business operation inside the listener. Please note that i am not using ADF BC4j in my project. The service layer is implemented as EJB and it's being called from the backing bean.
    Looking forward some guide lines to resolve this issue from you experts.
    Thank you.

    It's not a perfect solution, but a work in progress that i'm currently using in my backing bean:
    private RichTree navTree;
    private void exitContainers() {
    boolean success = false;
    while (!success) {
    try {
    navTree.exitContainer();
    } catch (Exception e) {
    success = true;
    private void clearDisclosedRowKeys() {
    if (navTree != null && navTree.getDisclosedRowKeys() != null) {
    RowKeySet rks = navTree.getDisclosedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    exitContainers();
    List<Integer> rowkey = (List<Integer>) rksIter.next();
    List<Integer> newRowkey = new ArrayList<Integer>();
    for (Integer row : rowkey) {
    if (navTree.isRowAvailable(row)) {
    navTree.setRowIndex(row);
    navTree.enterContainer();
    newRowkey.add(row);
    } else {
    // Row is no longer available
    break;
    if (newRowkey.size() == 0) {
    rks.remove(rowkey);
    } else {
    rowkey.clear();
    rowkey.addAll(newRowkey);
    Whenever you make a 'delete' or 'move' in the tree, call clearDisclosedRowKeys(), it will remove anything that's no longer valid, so your tree won't collapse, and you won't get the error anymore.
    I took out my logging and debug statements, but essentially this just gets all the rows, checks to see if they're valid, and if so creates a new RowKeySet with the valid rows in it.
    Of course make sure you have the setNavTree and getNavTree accessor's created and that they're bound in your JSFF, otherwise navTree will always be null.
    I haven't yet found a way to 'nicely' find out if you're at the top level container, so i'm relying on an Exception to occur to give me that information, if anyone knows a better solution please feel free to share it.

Maybe you are looking for