Setting objects on not visible rows

Hi there,
I'm building a TreeTable (on the 1st column a tree, n the 2nd one some checkboxes, and on all the others some statistics collected from the tree). Particularly, the seconf column allows to select a bunch of tree nodes for later treatments.
Say all the tree is not expanded and I check a node that has some of its descendant childs node not visibles (parent not currently expanded). I'd like my program to automatically check all descendant childs nodes of the currently being check node - INCLUDED all childs that are not visible.
In my cellEditor (I can use "row" as the only information to get the right node), I currently have that kind of ugly code to do so:
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
        CTestTreeNodeData testTreeNodeData = (CTestTreeNodeData) sortTreeTable.getValueAt(row, 0); // get the tree node -> column=0
    short newState = computeNewState(testTreeNodeData.getState()); // compute the new state ("checked" or "not checked")
t    estTreeNodeData.setState(newState); // set this new value on the model
switch (newState) {
     case CThreeStateCheckboxModel.SELECTED:
     case CThreeStateCheckboxModel.PARTIALLY_SELECTED:
               // need to do this in this order to get correctly the rows
               mainFrame.expandNodeAll(row); // first expand of descendant childs !!!!               
               mainFrame.checkNodeAll(row, newState); // check all childs from current row (this code is incrementing row, then verify from the new treepath to see if it's a descendant or not and redo it recursively
               mainFrame.collpaseNode(row); // HACK !!!! restore how it was before
               break;
      return defaultCellEditor.getTableCellEditorComponent(table, threeStateCheckbox, isSelected, row, column);which looks very bad for me... Is there a better solution to change data on some currently hidden nodes if we have only the row has input ?
Thx,
Eg\\*

Hi Namsheed,
I think this is normal because the travel request does not include any booking details.
The travel request is before any online bookings.
So might be it would help to explain in detail your process and used components.
Best regards,
Sigi

Similar Messages

  • The method clone() from the type Object is not visible

    Hi,
    This is my 1st post here for a few years, i have just returned to java.
    I am working through a java gaming book, and the "The method clone() from the type Object is not visible" appears, preventing the program from running. I understand "clone" as making a new copy of an object, allowing multiple different copies to be made.
    The error occurs here
    public Object clone() {
            // use reflection to create the correct subclass
            Constructor constructor = getClass().getConstructors()[0];
            try {
                return constructor.newInstance(new Object[] {
                    (Animation)left.clone(),
                    (Animation)right.clone(),
                    (Animation)deadLeft.clone(),
                    (Animation)deadRight.clone()
            catch (Exception ex) {
                // should never happen
                ex.printStackTrace();
                return null;
        }The whole code for this class is here
    package tilegame.sprites;
    import java.lang.reflect.Constructor;
    import graphics.*;
        A Creature is a Sprite that is affected by gravity and can
        die. It has four Animations: moving left, moving right,
        dying on the left, and dying on the right.
    public abstract class Creature extends Sprite {
            Amount of time to go from STATE_DYING to STATE_DEAD.
        private static final int DIE_TIME = 1000;
        public static final int STATE_NORMAL = 0;
        public static final int STATE_DYING = 1;
        public static final int STATE_DEAD = 2;
        private Animation left;
        private Animation right;
        private Animation deadLeft;
        private Animation deadRight;
        private int state;
        private long stateTime;
            Creates a new Creature with the specified Animations.
        public Creature(Animation left, Animation right,
            Animation deadLeft, Animation deadRight)
            super(right);
            this.left = left;
            this.right = right;
            this.deadLeft = deadLeft;
            this.deadRight = deadRight;
            state = STATE_NORMAL;
        public Object clone() {
            // use reflection to create the correct subclass
            Constructor constructor = getClass().getConstructors()[0];
            try {
                return constructor.newInstance(new Object[] {
                    (Animation)left.clone(),
                    (Animation)right.clone(),
                    (Animation)deadLeft.clone(),
                    (Animation)deadRight.clone()
            catch (Exception ex) {
                // should never happen
                ex.printStackTrace();
                return null;
            Gets the maximum speed of this Creature.
        public float getMaxSpeed() {
            return 0;
            Wakes up the creature when the Creature first appears
            on screen. Normally, the creature starts moving left.
        public void wakeUp() {
            if (getState() == STATE_NORMAL && getVelocityX() == 0) {
                setVelocityX(-getMaxSpeed());
            Gets the state of this Creature. The state is either
            STATE_NORMAL, STATE_DYING, or STATE_DEAD.
        public int getState() {
            return state;
            Sets the state of this Creature to STATE_NORMAL,
            STATE_DYING, or STATE_DEAD.
        public void setState(int state) {
            if (this.state != state) {
                this.state = state;
                stateTime = 0;
                if (state == STATE_DYING) {
                    setVelocityX(0);
                    setVelocityY(0);
            Checks if this creature is alive.
        public boolean isAlive() {
            return (state == STATE_NORMAL);
            Checks if this creature is flying.
        public boolean isFlying() {
            return false;
            Called before update() if the creature collided with a
            tile horizontally.
        public void collideHorizontal() {
            setVelocityX(-getVelocityX());
            Called before update() if the creature collided with a
            tile vertically.
        public void collideVertical() {
            setVelocityY(0);
            Updates the animaton for this creature.
        public void update(long elapsedTime) {
            // select the correct Animation
            Animation newAnim = anim;
            if (getVelocityX() < 0) {
                newAnim = left;
            else if (getVelocityX() > 0) {
                newAnim = right;
            if (state == STATE_DYING && newAnim == left) {
                newAnim = deadLeft;
            else if (state == STATE_DYING && newAnim == right) {
                newAnim = deadRight;
            // update the Animation
            if (anim != newAnim) {
                anim = newAnim;
                anim.start();
            else {
                anim.update(elapsedTime);
            // update to "dead" state
            stateTime += elapsedTime;
            if (state == STATE_DYING && stateTime >= DIE_TIME) {
                setState(STATE_DEAD);
    }Any advice? Is it "protected"? Is the code out-of-date?
    thankyou,
    Lance 28

    Lance28 wrote:
    Any advice? Is it "protected"? Is the code out-of-date?Welcome to the wonderful world of Cloneable. In answer to your first question: Object's clone() method is protected.
    A quote from Josh Bloch's "Effective Java" (Item 10):
    "A class that implements Cloneable is expected to provide a properly functioning public clone() method. It is not, in general, possible to do so unless +all+ of the class's superclasses provide a well-behaved clone implementation, whether public or protected."
    One way to check that would be to see if super.clone() works. Their method uses reflection to try and construct a valid Creature, but it relies on Animation's clone() method, which itself may be faulty. Bloch suggests the following pattern:public Object clone() throws CloneNotSupportedException {
       ThisClass copy = (ThisClass) super.clone();
       // do any additional initialization required...
       return copy
    if that doesn't work, you +may+ be out of luck.
    Another thing to note is that Object's clone() method returns a +shallow+ copy of the original object. If it contains any data structures (eg, Collections or arrays) that point to other objects, you may find that your cloned object is now sharing those with the original.
    Good luck.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Xcelsius 2008 Object Browser not Visible but checked on View menu

    I have lost the Object Browser window.  It is checked on the View menu.  Even when I first start up Xcelsius it is not visible.  Does anyone have any idea how to make it visible again?
    Thanks,
    Karen

    Hi Karen,
    Can you goto view and uncheck the option for Object browser and then re-check it again?
    Also let me know if this behaviour is happening from the time you have installed the product?
    Thanks,
    Amit.

  • Services for object box not visible for some users

    Dear All,
    PM module experts please help. In equipment master transaction IE02  in left hand top corner we get  box for SERVICES FOR OBJECT which is useful for attaching external documents like word and excel. but problem  is it is  not visible for some users.  Our security/authorisation team has also done some check but didn't get any solution.
    anybody knows the reason why there is no box availabe?
    Thanks
    SR

    Dear Siddhartho Raha
    I think this problem related ABAP work,this problem very general problem,first refer any note availble or search throgh any class in SE24
    note are like this way 492331,this is not related to your query but same like it is and also may be
    Due to an error in the coding, it was possible to link a Word document to a Document in IE01. Because the data cannot be saved in transaction IE01, the linked document is lost after leaving the transaction.
    Hope this may helps you
    Prem.

  • Set object to precence = 'visible' both in screen and print modes

    Hi folks,
    In my form, I have a check box which toggle visabillity of some table object.
    i'm using 'visible' and 'hidden' values in the presence propery for the toggling.
    It's all work fine except when i'm printing the form - the "visible" table is not printed.
    How can I make it visible also for print mode?
    Yair

    If the table is visible, then it should print unless you have done one of the below..
    1) Setting the presence property of the table to visible(Screen Only)
    2) write code in prePrint event to hide the table.
    If you have not done any of the above then try placing the code in the prePrint event to make the Table visible.
         You can place in the CheckBox prePrint event with JavaScript as language.
         //Check if the Check box is checked.
         if(CheckBox1.rawValue =="1")
              Table1.presence = "visible";
    Thanks
    Srini

  • Attachment list for business objects is not visible

    Dear all
    I have connected an external server to SAP.
    Created repository and created Doc types (say for ex : ZFIINV,  ZMM DRW) and created entries using tcode OAC3
    now i have assigned my doc type to corresponding Business Objects (BKPF for accounting doc,BUS2105 for purchase requisition ,MKPF for MM related docs)
    now i have created entries for my scanned docs in table TOA01.
    i can search an display these docs which are already placed  there in my content server. but i can not see these documents links entries in the attachment list of corresponding Business objects entries.
    for example in BO : BKPF  attachment list i cant see al the link entries .
    please suggest whether any BO is not published or R/3 application connection to the generic object service is not done?
    thanks sandeep

    Hi Sandeep,
    I am not totallt getting your point but can suggest following points:
    1. Check whether these object are displaying in DIR's as object links.
    2. If it is there then it shoud be displayed in document data of those objects.
    3. Check that documents are properly checked-in.
    Hope this may help.
    Regards,
    Ravindra

  • Objects & attachments not visible for supervisor ESS NWBC.

    Hi all gurus,
    We have done Travel Request in ESS NWBC. Now when the supervisor try to approve, he can see only limited details. He couldn't see travel service he booked(Flight,Taxi or Hotel booked).  I mean in SBWP of Supervisor, he can see the everything in Objects & Attachments. Is there anyway to appear this objects & attachments for supervisor in NWBC when he click on the travel request.??
    Regards,
    Namsheed.

    Hi Namsheed,
    I think this is normal because the travel request does not include any booking details.
    The travel request is before any online bookings.
    So might be it would help to explain in detail your process and used components.
    Best regards,
    Sigi

  • Object type  not visible in transaction bapi

    hi all.
    I'm very new to Bapi,and recently I created a custom object type 'ZTEST' which was inherit from oject 'BUS1001'(material),then I add some custom method(BAPI) to 'ZTEST'.After I released all the object type 'ZTEST', I go to BAPI Explorer(t-code : BAPI), there I found my object 'ZTEST' exist in Alphabetical list but not in hierarchical list.
    How can I add my object type to the hierarchical list?
    thanks in advance

    Hi Bhokal,
              I suggest you put the question under ABAP General or similar category as this is not directly related to CRM 7.0 - in order to get faster response to the question.
      I hope it helps.
    Thanks,
    Rohit

  • Folder permissions set in Powershell not visible in Windows Explorer

    Hi
    I have created the following script to grant TestGroup access to c:\MyFolder:
    $MyFolder = "c:\MyFolder"
    $rule = new-object System.Security.AccessControl.FileSystemAccessRule ("TestGroup","FullControl","Allow")
    $acl = Get-ACL $MyFolder
    $acl.SetAccessRule($rule)
    Set-ACL -Path $MyFolder -AclObject $acl
    The script works and grants access. However, if I open the Security pane from Windows Explorer, I cannot see the permissions:
    But the permissions are set:
    Why can't I see the permissions in Explorer when they are set through Powershell?

    I added
    "ContainerInherit, ObjectInherit","None","Allow")
    which seems to have done the trick.

  • Can see the bounding box of the object present on the art-board but the colors of that object are not visible!!!! Why???

    I have made some objects in 8-bit design style using rectangular grid tool.
    I was working on the file, and i saved the file, and then illustrator crashed, and all the data in the 8 bit grid wasn't showing up, only the bounding boxes(rectangular-grid) of those 8-bit designed objects were present with no color/no fill.
    I am attaching some screenshots and jpegs to show how it was before and how it is now.
    Can somebody help me out in this?

    Illustrator crashed when saving and most probably took some of your file with it.
    Do you have a backup copy?

  • Setting first visible row in Web Dynpro ALV in Releases above 7.0

    Hello Everybody,
    I have an ALV in which a particular row should be set to lead selection and also set as the first visible row in this ALV for the first display. The index for this row is determined at runtime.
    I used the method SET_FIRST_VISIBLE_ROW of the interface IF_SALV_WD_TABLE_SETTINGS and it worked fine in a system of Release 7.0.
    However, after the system has been upgraded to 7.02, this is not working. The row is lead selected but it is not set as the first visible row and as a result I need to scroll down and look for the row that is lead selected.
    Does anybody have suggestions?
    Thanks!
    Vidya

    Hello Srilatha,
    Thanks a lot for your suggestion! I am calling method SET_FIRST_VISIBLE_ROW in the wddoinit method of the view.
    I tried checking in the debugging mode by inserting a call to GET_FIRST_VISIBLE_ROW in both the wddoinit method as well as wddomodifyview method.
    The value of the first visible row is correct in both these methods but when the screen is rendered, the first row of the ALV continues to be the first visible row.
      CALL METHOD wd_this->lref_nd_node_rename->set_lead_selection_index
        EXPORTING
          index = lv_leadselection.
      wd_this->lref_table_settings ?= wd_this->lref_value.
      CALL METHOD wd_this->lref_table_settings->set_first_visible_row
        EXPORTING
          value = lv_leadselection.
      " Set vertical scrollbar height to 15 rows
      CALL METHOD wd_this->lref_table_settings->set_visible_row_count
        EXPORTING
          value = '15'.
    Here lv_leadselection contains the index of the row that needs to be lead selected (in this case it is 3)
    lref_value is of type CL_SALV_WD_CONFIG_TABLE
    lref_table_settings is of type IF_SALV_WD_TABLE_SETTINGS
    lref_value and lref_table_setings are view attributes.
    Thanks and best regards,
    Vidya

  • New objects not visible in report objectpicker

    Hi, I'm new to SCOM so please forgive me if I say something wrong.
    We are using SCOM 2007 R2.
    In Operations Console I've created 2 new Web Applications in Authoring view.
    In Reporting view I open  Availability report from Microsoft Generic Report Library
    Click Add Object
    Search for Web Application I've created and get nothing
    For some reason I see only old objects when search or view all available in report. I tried to use old Management Package and created my own (I thought the problem was in sealed MP, but my new is unsealed). Found similar problem in "Missing Objects
    in Report Objectpicke" question,  but we have less than 100 monitoring agents.
    So I have no idea why objects are not visible, could you please help?

    Verify from Group {contain all computers that you want} that using in Reporting.
    You also check below link, it's similar issue
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/5cb0fb12-73c5-4553-987f-ea415babd876/missing-objects-in-report-objectpicker?forum=operationsmanagerreporting
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

  • Ole object not visible on oracle report

    Hi,
    I have an oracle report built in oracle report 6i builder I have used a Boilerplate OLE Object(image.bmp) in the report but when I am executing the report on Oracle E Business(Application) then that OLE object is not visible on the report output(output is in the pdf format).
    Please help me out with this
    Thanks in advance

    If you want to display an image on your report, use Link File as item type in the Layout Editor.
    Note that the image has to be accessable from the Reports Server.

  • Object found by SUIM, not visible in PFCG (same in AGR_1251 and UST10S)

    Dear All,
    In SUIM I get some roles listed when I search for a specific authorization object (S_USER_AGR in this case). Wehn I look at the role via PFCG however, the object is not visible.
    When I look at the role/profile via tables:
    - AGR_1251for the role : object S_USER_AGR not present
    - UST10S for profile: S_USER_AGR is present
    It seems that the output from UST10S is the one giving the actual authorization (as the testuser seems to have access to S_USR_AGR).
    What can I do to have the PFCG listing the real/actual authorizations?
    Thanks in advance
    Kristof

    Hi Kristof,
    Don't let the wonder go away:-)) Check why that role was inconsistent at the first place. 
    1 - Check the role if its out of sync in Dev- Production as well. (Assuming you have already corrected this in Test sysh tem by creating new profiles).
    2 - Check out the recent transports for that role. Check out the status of those transports(RC=0/RC=4/8/12). If not RC=0  then whats the error message.
    3 - Check out if there was a system refresh recently carried out in your test environment. If yes then from which system this refresh is carried out. check out the role status in  that system as well.
    Run PFUD for User Master Data Reconciliation.Hope this will resolve the issues for all the roles in your system.

  • Some workflow Mail items not visible in SCOT in QA but there in Development

    Hi,
    In our development system and QA system the SCOT is enabled to test the workflow for credit approval. The settings as far as I can see is same in both the systems except in address types maintained in QA is specific and it is * in development. In QA while the task for mails is raised, the items with recipient type Organisation object are not visible in SCOT overview of orders but in development all the items are visible. In development, the mail is also activated based on the user id but this is not working in QA system where the only item that is sending the mail is the one with recipient type Email. Can you plaesea advice what is wrong in teh configuration?
    Regards,
    Arcahna

    Hi,
    In our development system and QA system the SCOT is enabled to test the workflow for credit approval. The settings as far as I can see is same in both the systems except in address types maintained in QA is specific and it is * in development. In QA while the task for mails is raised, the items with recipient type Organisation object are not visible in SCOT overview of orders but in development all the items are visible. In development, the mail is also activated based on the user id but this is not working in QA system where the only item that is sending the mail is the one with recipient type Email. Can you plaesea advice what is wrong in teh configuration?
    Regards,
    Arcahna

Maybe you are looking for

  • Best practice for Plan and actual data

    Hello, what is the best practice for Plan and actual data?  should they both be in the same app or different? Thanks.

  • Design/gallery website - loading external SWF asset on splash page

    Hello all, This forum has been such a help with my website, i've found the answers to hundereds of questions but I've hit a bit of a brick wall and I wonder if anyone can help me. I have recently built a website http://www.intivision.co.uk/ using ill

  • Userspecific Variants

    Hello, i realized a central user administration. After synchronizing the user from all daugther systems with the central system all user specific variants are lost. Whta's the problem here? Is it a problem with the "user distribution field selection"

  • Changes email password in iphoto

    I accidentially put in the wrong password when setting up my email account through iphoto.  I need to change because it won't send the photos through iphoto. How do I do that? THanks Tiff2012

  • How do you debug JavaFX Script

    I'm very frusturated with JavaFX debugging "feature". (I'm using Netbeans 6.7.1 on Linux x86 platform.) It doesn't let me to watch objects, how can one debug code without watching objects? Great effort JavaFX team, that really made developing JavaFX