Class parameters not seen in all methods

Dear experts,
Please help!
I have two classes in my program:
Class "screen_init" and class "screen_handler".
Each class has its own constructor plus other methods.
For example class  "screen_handler" has methods "constructor", "handle_node_double_click",
"handle_picture_double_click", "handle_textedit_double_click".
In Constructor of class "screen_init" I do:
- define event_handler:
Data  event_handler type ref to screen_handler
- create an object event_handler: 
        Create object  event_handler
           exporting textedit = textedit
                      tree = tree.
In definition section of class "screen_handler" I define constructor as:
   methods: constructor importing
                  textedit type ref to cl_gui_textedit
                  tree type ref to cl_gui_simple_tree.
When the program creates an object  event_handler - then the Constructor of  class "screen_handler" is run.
The problem is that textedit and tree are successfully received in the Constructor of "screen_handler" class. But when it gets to any other method of "screen_handler" class ( method "handle_textedit_double_click", for example) - these objects are empty.
I need tree object when method "handle_textedit_double_click" is run - so I could read textedit and then  repopulate the tree depending on textedit value.
Please note that textedit and tree are defined in both classes in Public section:
class screen_init definition.
public section.
    data: textedit type ref to CL_GUI_TEXTEDIT,
            tree type ref to cl_gui_simple_tree.
class screen_handler definition.
  public section.
data: textedit type ref to CL_GUI_TEXTEDIT,
          tree type ref to cl_gui_simple_tree
Thank you,
Tatyana.

Hello Tatyana
The only possible reason I see is that you do no save the imported instance into the public instance attributes. Presumably the coding of your CONSTRUTOR method is missing the following coding:
Recommendation: rename your instance attribute, e.g.
class screen_init definition.
public section.
    data: mo_textedit type ref to CL_GUI_TEXTEDIT,
            mo_tree type ref to cl_gui_simple_tree.
class screen_handler definition.
  public section.
data: mo_textedit type ref to CL_GUI_TEXTEDIT,
          mo_tree type ref to cl_gui_simple_tree 
"       Create event handler instance
        Create object  event_handler
           exporting textedit = textedit  " instance IS BOUND
                      tree = tree.               " instance IS BOUND
" Here we are inside the CONSTRUCTOR
method CONSTRUCTOR.
  me->mo_textedit = textedit.  " save the imported instance to instance attribute
  me->mo_tree      = tree.       "  dito
endmethod.
Regards
  Uwe

Similar Messages

  • 2nd Gen Shuffles charge with power adapter, not seen at all by computer

    I have three Gen 2 Shuffles (mine and kids), and am having same problem with all three.
    If I plug them into either of our home computers - an iMac and a brand  new Macbook Pro - they don't even seem to be recognized at all by the computer as even being plugged in, nor will they charge. The orange light flashes on for a split second when I plug in the USB cord, then goes out.  Nothing else happens.  I have two USB cords - same with both.
    If I plug the same USB cords into the power adapter and plug into the wall outlet - all three iPods charge, with either cord.  So the cords seem to be working fine.
    If I plug the USB cord into my work PC - a Dell that doesnt' even have iTunes on it -- the computer recognizes the iPod as a disk.  I've done this many times for many years to charge it at work if it was low, with no problems.  And I haven't plugged the kids' into my work computer.
    I am pulling my hair out here. I've read about others with a similar problem -- but in those cases at least the iPod seemed to be communicating with the mac, but not showing up in iTunes.  In my case, I can't even get anything to happen!!
    Would really appreciate any advice.
    Intel Core 2 Duo iMac with 10.5.8, and Macbook Pro bought last week with OS-X Lion.

    Nobody has any ideas?

  • Nano not seen at all on My Computor

    This is a variation on all the other hundreds of posts about this problem. I have the latest version of I-tunes on the latest windows computer the latest Software. I have two I-pods, a mini that works fine on one account and a Nano that works fine on another account. A freind wanted to update his nano on my machine, so we created another account. His nano is not recognised on my machine AT ALL. When you plug it in we get the "USB Device Not Recognised" error. I have tried everything that we can, to get this USB device to work. (of course I cant do the freakin 5Rs cause the machine does not recognise the Nano) HE says he was having similar problems on his home machine!
    The HP USB format tool just says "checking device...." for hours and nothing happens. This is in disc mode and ordinary mode, with Ipod terminal services diabled.
    Strangely the Nano works fine...it plays it tunes, we just need to change them now!!!
    Pentium Core 2 Duo   Windows XP Pro   2GB nano with 1.1.1 Version

    Rest it many many times. Have tried disk mode. Resetting it then, many times. Disbled ipod magament services in comp managment and so on. I have even tried installing an older version of i-pod updater to try to update the 1.1 software on the nano but it wont let me as I am running the newest version of itunes for my other two ipods (which all work fine on this machine).
    I have tried everything that is recently posted on this forum.
    Bottom line this computer does not recognise the nano when its plugged in , apart from the 'usb device detected' message as I mentioned above.
    I am desperate as this nano plays but I would like to alter the selection that Ive heard a thousand times.

  • Email attachments not seen by all receivers

    Why is it that some email contacts can see my attachments and some can not. I send out emails in Mail with our newsletter attachments to our Mac group, and inevitably I hear from a couple of our users that they "can't see an attachment." When I check my sent folder, the attachment shows up there. Is there something in Preferences that can be checked by them? I usually have to solve this by going to my Yahoo account and sending it from there. Can someone help me?

    The use of Plain Text to compose a message has absolutely no impact on the attachments. Your PDF will not be effected! Even if you add no text in the message body, as opposed to the attachment, it works better to use Plain Text for messages.
    Again, I am not talking about your fonts and text in the Pages/PDF document -- only the setting for message text in Mail. Can be done either by setting in Mail Preferences/Compose or before sending, click on Format in the menubar, and choose Make Plain Text.
    Ernie

  • Why there should not be many static methods.

    Why a java class should not have many static methods.How is memory managed in case of static methods.
    If a Utility class has static methods then we can use methods directly by class name but if we do not make the methods static then we can acess methods using object.How does it make the difference.I know that there remains a single copy of class variables/methods.But i want to know how class memory is managed and garbage collected.

    shobhit123 wrote:
    Why a java class should not have many static methods.How is memory managed in case of static methods.
    If a Utility class has static methods then we can use methods directly by class name but if we do not make the methods static then we can acess methods using object.How does it make the difference.I know that there remains a single copy of class variables/methods.But i want to know how class memory is managed and garbage collected.The reason to discourage static methods is stylistic rather than technical. It encourages object oriented thinking.
    Each loaded class is represented by a Class object, and associated with that it a block of memory for static fields. As with all such storage this block is, as viewed from code, rather like an array with one, or in the case of double or long values, two slots per field.
    Because the class loader maintains a map from FQN to Class this storage is only released if the class loader that loaded it becomes unreachable, which happens only in situations like the un-deployment of a web application or EJB.
    Local variables for static methods are allocated in a stack frame, just as with instance methods. There's really no significant difference there.

  • IPod shuffle not seen on USB

    I have a strange problem connecting my iPod shuffle. If I plug it into the keyboard USB hub, iTunes recognizes it and I am able to load it with music, but if I plug it into the USB ports on the rear of the G4 it is not seen at all on the Bus (System profiler shows nothing connected to that USB bus) but it will charge up.
    Very strange! Does anyone have any idea how to resolve this because where the computer is sited, the USB ports are not very accessible!
    I have tried resetting the shuffle and reloading the software to no avail.
    Many thanks
    Simon

    Actually, it doesn't sound like the same problem at all.
    When you have the shuffle plugged into a USB port, it isn't the shuffle that's 'playing all day' - iTunes, on the computer, is playing the playlist of songs, copies of which are on the shuffle.
    What's the charge status of your shuffle's battery?
    srb

  • Secure storage not seen from configtool and Portal not starting

    Hi,
    My Portal is not starting. The dispatcher and sdm are starting,but server0 is not able to start.The exit code displayed was -11113.
    I checked up the log files and the error displayed was :
    No active user store set.
    I opened up the Configtool , and the secure storage node and ume ldap storage  node are not seen at all.
    Here is a what was found in the trace file:
    <b>#
    #1.5#000180522ADA001E0000000A000017A4000408D055EC5E0A#1135590794609#com.sap.engine.core.service630.container.ServiceRunner##com.sap.engine.core.service630.container.ServiceRunner#######SAPEngine_System_Thread[impl:5]_58##0#0#Error#1#/System/Server#Java###Core service security failed. J2EE Engine cannot be started.
    [EXCEPTION]
    #1#com.sap.engine.services.security.exceptions.SecurityServiceException: Unexpected exception:
                at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:186)
                at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:201)
                at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:142)
                at com.sap.engine.frame.core.thread.Task.run(Task.java:60)
                at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:73)
                at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:98)
    Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: No active userstore is set.
                at com.sap.engine.services.security.server.UserStoreFactoryImpl.getActiveUserStore(UserStoreFactoryImpl.java:77)
                at com.sap.engine.services.security.server.jaas.LogonInfoLogger.update(LogonInfoLogger.java:322)
                at com.sap.engine.services.security.server.jaas.LogonInfoLogger.<init>(LogonInfoLogger.java:57)
                at com.sap.engine.services.security.server.SecurityContextImpl.<init>(SecurityContextImpl.java:54)
                at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:146)
                ... 5 more</b>
    Can anyone explain how I must solve this problem.
    (People who answer the question will be richly rewarded)
    Regards,
    Harish

    Hi Harish,
       Check whether your SecStore.properties file exists in <SID>\SYS\global\security\data folder. If not, place that file from the backups you have.
    Regards,
    Siva
    P.S: Award points if you find this useful.

  • Second IDE controller not seen, Blade 150

    On our Blade 150, on the first IDE bus I have a hard drive and a DVD recorder. On the second IDE bus I have another hard drive. The second bus is not seen at all. If I do a stop-a, probe-scsi-all the drive on the second controller is not seen. If I swap the two hard drives I get the same results; drives on the first bus are seen, drives on the second bus are not seen. I have also tried a new cable. Do I need to enable the second IDE controller somehow? Am I overlooking something? My goal is to make this a multi-boot machine and use an alias to choose which drive to boot from.

    Thank you for the tip, I gave this a shot. I took all the defaults up to the point where it asked if I wanted to rebuild the path_to_inst file, where I answered yes. Then it asked for the physical name of the root device, I took the default which looked correct. Then it gave me the same error as before, "/dev/dsk/c0t2d0s6 or /usr, no such file or directory" and the boot failed. I then rebooted again and it cannot find the path_to_inst file so aparently it did not get far enough to save the new file.
    Just to clarify what I believe the problem is, here is my layout:
    c0t0d0sX --> Solaris 9 install, boots and runs great, c0t2d0sX listed under both /dev/dsk and /dev/rdsk, c0t2d0sX will mount just fine when running Solaris 9 so the disk looks OK
    c0t2d0sX --> Solaris 8 install, OS was installed when disk was in c0t0d0 location then the disk was moved to c0t2d0 (first disk, second IDE bus), now has problems booting, c0t2d0sX not listed under /dev/dsk or /dev/rdsk on this disk and I think this is the problem.

  • Nano not seen after update

    Since installing the latest iTunes update my 4 gig Nano is NOT seen at all by my G4 iMac. I cannot even install the iPod update. I reset the Nano, did repair disk permissions, restarted the computer, nothing changed. Used a different USB port. Nothing changed.
    running OS X 10.4.7
    Allan

    Since installing the latest iTunes update my 4 gig
    Nano is NOT seen at all by my G4 iMac. I cannot even
    install the iPod update. I reset the Nano, did repair
    disk permissions, restarted the computer, nothing
    changed. Used a different USB port. Nothing changed.
    running OS X 10.4.7
    Allan
    After I wrote this question I went back to my computer and decided to do some additional troubleshooting. I tried some of the other USB ports and found that fianally the Nano was seen by the computer and I was able to update it with the new software with no problem.
    So now I know that I may have a problem with one of my USB ports in my iMac which may not be easier to solve but at least I have been able to get my Nano to work with my iMac.
    So I have solved my own problem - word to the wise - many times the solution to your problem is right in front of you if you take the time to do more troubleshooting yourself.
    Allan

  • In which case we need a class with all methods defined as abstract ?

    In which case we need : A class with all methods defined as abstract (or should we go for Interface always in this case)

    The concept of interface and abstract class overlaps sometime, but we can have the following thumb rule to use them for our specific need:
    1) Interface: This should be use for code structuring. They standardize your application by providing a specific contract within and outside. If you think abstract class also provide structure, then reconsider as it limits the structure re-usability when there are many super-classes to inherit from. Java allow multiple inheritance by interface and not by Abstract class.
    2) Abstract Class: This should be use for code-reusability. Interface doesn't have any code so can't be used for code-reusability.
    Actually we can use both to provide the best.Taking a refernce to J2EE framework, the "Servlet" is an interface. It laids down the contract/structure for any code to be a servlet.
    But the "GenericServlet" class is an abstract class which provides implementation of some of the methods defined in the "Servlet" interface and leave some method abstract.
    Thus we see that the "Servlet" interface standardise the structure and the "GenericServlet" abstract class gives code re-usability.
    Original Question:
    In which case we need a class with all methods defined as abstract ?To this question, as all methods are abstarct we don't have option for code-reusability. so why not add standard structure concept to your application. So if there is not any restriction on making the field variable(if any) as final, we should go with the interface concept.

  • Shouldn't all methods pertaining to an object be defined inside that class?

    I am trying to understand if I am missing something basic java-wise (I come from other oop environments) or am I facing an ide-style/problem, or maybe I HAVE NO problem.
    The way I always had it, was to place all code (functions/procedures/properties) INSIDE the class that it was meant for. But jDev does not do this, and again maybe its Java I'm up against, but then maybe not. Here is a clear example of what I mean. (All SWING.)
    On a new jFrame, define a container, and inside the container a jComboBox and a jtextfield. The objective is to ADD ITEMS to the combobox, then upon a trigger event, specifically item_changed (when the user chooses an option from the item list), display a message to the jTextfield. (This differs from the tutorial sample requiring a button.) The purpose of jPanel is to tie the combobox and textfield via delegation. Ultimately we want an extended jPanel that I can (drag and drop) import into any project and drop it onto any jframe.
    We have two distinct custom-operations/extensions, 1) is to add_items, and 2) is to talk to another object to display text. First the add_items; ideally I should be able to (if I want to) add_items inside an extended jCombobox and reuse it. Why put the add_items on the jFrame??? jFrame has NOTHING to do here with my little extended-jPanel. I SHOULD be able to choose if to put it into the extended jPanel, as well. (Since this jPanel is built with the purpose of serving a micro-framework for the two objects it contains.)
    Similarly with 2, display the text message. I should be able to define the trigger event message to send upon item_change inside the jComboBox class. jPanel would then receive the message via delegation and take care of sending the message to jTextfield, also preferably to an extended jTextfield. But AT THE LEAST, all methods/properties should be within the extended jPanel. (Again, which I want to simply import and reuse.) Why does the ide put this code at the jFrame level? (By the way, if I copy/paste this jPanel, the ide does NOT add the appropriate imports (for the events) to the target jFrame, and neither does it copy the methods that are triggered. This seems like a bug, but I couldn't care less if I can accomplish what I described here.)
    Having said all this I am ready (and hoping) for an answer that I am missing something basic in Java.
    Thank you all
    -Nat

    In fact, you don't even need the jbInit() method if you're just using the component as a bean in other components.Cool.
    For the component to display properly in the UI editor, it should be a descendent of Component.ok. Does this mean that you can have a component (if not extending jComponent) that does not display properly in the ui editor, and still be properly maintained by the ide? That would be very nice, as long as the ui editor displays a mnemonic/icon instead of that component. I don't [always] NEED the
    cutsy picture displayed, but I DO need to know that a component so-and-so is located 'here'.
    AS a matter of a fact, I would love to have a pseudo-ui mode in jDev where you can build/maintain a frame with panels and icons representing components, where you can visualize the hierarchy, change the layout via drag-drop of the icons, and drill down. I have a gut feeling that people would use this mode more than the full ui mode we have now. Also, performance wise, jDev would be happier. This view allows one to get a clear wide-angle 'picture' of the layout (and delegation paths) of the classes. Coupled with 'drill down' to allow inserting/maintaining components within others, you have a winner!
    Wadda you think? Am I nuts or something?
    Come to think of it, it should not be tough for the jDev team to do this, since jDev is already doing something much more complex in the ui_editor. Instead of drawing pictures, when a bean is dropped, simply leave the icon as-is. 9.0.3??<g>
    WE developers know that sometimes you can add tremendous functionality (especially from a marketing point of view) to a system, with minimal amount of work.
    Sheesh, I forgot what put soapbox mode 'on'. I still would like to know how jDev would currently treat a bean that is not a sub-classed jComponent.
    Thanks
    -Nat

  • HT4356 My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    hi
    could you tell us what the other app is please

  • I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    If the external drive can be seen at all in Disk Utility, follow the instructions for repair here.

  • I like and use Top Sites but it has become unsuable with this constant blacking out and reloading the thumbnails.  My MBP has not seen a problem at all.   I have been searching every other day for over a month trying to find a fix in Windows Safari with n

    I like and use Top Sites but it has become unsuable with this constant blacking out and reloading the thumbnails.  My MBP has not seen a problem at all.
    I have been searching every other day for over a month trying to find a fix in Windows Safari with no joy.  I want to resolve, not switch browsers. Please offer up a solution that only refreshes the Top Site thumbnails once a day or as some controlable interval.  Started about two versions ago, now on ver 5.1.5. Windows 7 64bit.
    Safari 5.1.5 for Win64 bit, Windows 7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    I think I solved the wifi connection problem, just by switching off completely the router! sounds trivial, but in this case it worked!!!
    the funny behaviour of the trackpad/cursor still persists. any suggestion???
    thanks again

  • My macbook pro running lion will not boot . it stays on the grey page with the cog spinning. I have tried all methods of booting to no avail. I have removed the bottom and taken out the battery and the ram . will this affect my applecare warranty.

    my macbook pro running lion will not boot . it stays on the grey page with the cog spinning. I have tried all methods of booting to no avail. I have removed the bottom and taken out the battery and the ram . will this affect my applecare warranty. I had to try myself as I'm overseas for two months and nowhere near any sort of help .

    there was a recent software update that seemed to screw HDV up.  Do some searching here over the last month or 2 and you'll find a bunch of posts and some possible solutions.
    Worst case scenario, do as Shane suggests.  But might I suggest you take a look at the user tips section of the forum.  there are some great tips on how to prevent these sorts of problems by cloning your startup drive, etc.

Maybe you are looking for