A different cell renderer for the root node ??

Is it possible to use one cell renderer for the root and a different cell renderer for the other nodes ?
Thanks.

Well I tried that and it didn't work.I do it without any problems so what how did you do it?
Hint - in the renderer compare tree.getModel().getRoot() with the value using == .
>
Basically I have a checkbox at each node. So, I tried
setting the checkbox invisible for the root. Hard work! Since you are just wanting to change the rendering rule for the root you should change the renderer.
>
But then all the nodes have an invisible
checkbox.............................

Similar Messages

  • JTree as cell renderer for JList

    I have an application that requires to display a list of tree-structured data.
    So I've used JTree a the cell renderer for the JList, and I can see a list of trees with that data in.
    However, the Jtree doesn't respond to Mouse messages, even if I dispatch the to it manually. So the tree is essentially dead.
    Does anybody know how to fix this?

    I'm not sure if they have the same thing for lists though.Yes, it is so - a cellrenderer or celleditor is a component, that is only there during it is used - a cellrenderer is there as long as it needs to paint the contents, a celleditor is there, if an edit-process is invoked and it will get messages as long as the editing process continues - after finishing editing, the component is no longer there - normally the renderer is called after that, to render the new contents into the rectangle of that cell, because the contents in its non-editing state may look other than that from the editor during the editing-state.
    greetings Marsian

  • JTree: How to set different cell editor for different tree Nodes.

    I have a JTree and I want to set different cell editors for different node depending on some condition. E.g. I want to set ComboBox as editor for leaf node but each leaf node will have its own set of data.
    Any help or pointer?
    Thanks in advance
    Sachin

    take there:
    http://www.mutualinstrument.com/Easy/FAQ/Tree/tree.html

  • Setting a cell renderer for a Cell?

    Hi everybody,
    I'm sitting here with a problem: I'm trying to set a Cell renderer for a cell.
    The problem is in all of the examples that i saw till now this was made only with columns.
    Is it possible to set different CellRenderer foor different cells in the same column?

    Hi,
    if you implement your cellRenderer you return the Object you get for all columns but the one you want to be handled im a special way. As you know the row as well you can return sth different for each row.
    Phil

  • GRC 10 LDAP query issue at the root node

    Hello,
    We are unable to do a search based on root node after successful LDAP integration but if we add a particular OU within the base entry then we are able to search the users for that specific OU. Specifying a specific OU is not the right solution as we have different OU for North America, Europe,
    Latin America etc. regions. We need to specify the root node so that it will search for all the users in different region. We are getting the below operation failed error when we don't specify OU in the base entry.
    Operation failed
    Message no. LDAPRC001
    Diagnosis
    This is an error message that is triggered by the directory server.
    It is not possible to analyze the error in the SAP system.
    Procedure
    Check the log files for the directory server (if they exist), to see if they
    contain more information.
    Please let us know if you guys have faced this situation and what was the resolution.
    Thanks,
    Gautam.

    We just have one LDAP server/connector set-up and it is working fine if we specifiy OU within the base entry along with the domain but it doesn't work if we remove OU and leave the base entry with the root node/domain. I have checked with our Basis team and we have only one forest..going to check with our AD team for the same. Since specifying OU in the base entry is pulling result from Active directory within LDAP t-code in GRC 10 system, I believe everything is fine from LDAP configuration standpoint and also SPRO configuration in GRC 10 system will come into scope when we try to retrive/populate those field in ARQ/CUP configuration in NWBC.
    Below is the structure of our AD. If we leave the base entry with the root node/domain (DC=NR,DC=AD,DC=NEWELLCO,DC=COM) then it doesn't work and give the operation failed error message but if we add OU (OU=EMEA,DC=NR,DC=AD,DC=NEWELLCO,DC=COM) along with the root node then it does provide us with the result.
    I'm going to follow up with the AD team but let me know if anyone got any ideas to resolve the above error.
    Thanks,
    Gautam.

  • Setting background color to just the root node in a tree

    How can I set a background color to just the root node in a tree? I got the node in the followig way in the renderer method.
    IconNodeClass parentIconNode = (IconNodeClass)((IconNodeClass)value).getRoot();
    Then how can I set the background for just the root node? Thanks.

    You need to write ur own treeCellRenderer for that to be done

  • Issue on deployment: Solution Deployment : Missing one or more of the following attributes from the root node in solution .wsp: assembly '', type ''

    Hi,
    I have the following issue when deploying:
    Solution Deployment : Missing one or more of the following attributes from the root node in solution .wsp: assembly '', type ''
    The solution is a farm solution (was never sandbox) and it deploys fine.
    It was updated several times with success. We did not see this issue until recently when we had some other issue (unrelated) and looked at the logs. The solution is updated without problem and updates are available for the user. But we can see this error
    in the logs at the update time. 
    Any idea what might cause this?
    Pop Anisia

    Hi,
    This error is wide meaning, as it can come from differences between SP versions, variables types used, bad manifest file, WebConfiguration ...
    You can try to redeploy the solution.
    retracted the solution,removed all the previous ref, removed dll from GAC and folder from 14\features and reset the iis, deploying it again.
    Here are some similar issue post, you can use as a reference:
    https://social.technet.microsoft.com/Forums/office/en-US/72ac9a02-3a51-48b8-9e36-3b24a2d4da74/missing-one-or-more-of-the-following-attributes-from-the-root-node-in-solution-alertbdcwsp?forum=sharepointgeneralprevious
    https://social.technet.microsoft.com/Forums/office/en-US/331af288-5ba6-48a7-9e9d-ac4e4bc8f8fa/missing-one-or-more-of-the-following-attributes-from-the-root-node-in-solution-xxxwsp-assembly-?forum=sharepointdevelopmentprevious
    In additional, you can check the ULS log (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS) to get the detailed information.
    I hope this helpful.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Ldif2db command fails to import data and deletes the root node

    ldif2db command fails to import data into LDAP.
    The command used was
    ldif2db -n userRoot -s "dc=example,dc=com" -i test.ldif
    The test.ldif conains the nodes under dc=example,dc-com
    eg: ou=test,dc=example,dc=com
    But on executing the command the root node "dc=example,dc=com" itself got deleted. The console output was like "Skipping entry uid=test001,ou=test,dc=example,dc=com" for all the entries present in ldif.
    What might be the reason for this ? Any clues ?
    The reason y i am trying to do this ldif2db is to preserve the createtimestamp and modifytimestamp while migrating data from one Directory Server to another. Any other ways of doing it ?

    ldif2db is the right command to migrate data and preserve those attributes like createtimestamp and modifytimestamp.
    However, when this command is used, it will first remove everthing before it load whatever you want. So you need to be very careful. I got this terrible problem as well.
    In my experience, if you use this command, don't use "-s". You can just use:
    ldif2db -n suffixName -i test.ldif
    If you only have one suffix (database), then you can use "-n userRoot".
    Also, if you migrate your data from server A to server B, you'd better dump the data using db2ldif -n userRoot -a test.ldif from server A. Then load it into server B using ldif2db -n userRoot -i test.ldif.

  • [JAXB] Multiple imports in the root node

    Hello,
    I use JAXB and am doing this scenario : unmarshalling an XML document created manually, and automatically marshalling another from the generated Java code.
    This is a multiple schemas / multiple imports issue.
    I would like the 2 XML documents to be similar, but in the first one, I get :
    <?xml version="1.0" encoding="UTF-8"?>
    <aaa:first xmlns:aaa="http://aaa" xmlns:bbb="http://bbb">
    </aaa>
    and in the second :
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <aaa:first xmlns:aaa="http://aaa" xmlns:ns1="urn:abc" ...>
    <bbb:second xmlns:bbb="http://bbb">
    </bbb>
    </aaa>
    So, how is that possible to import multiple namespaces (xmlns) in a single node please ? It seems that JAXB does the import only when needed, and won't group all the imports in the root node.
    (moreover, how can I disable the "standalone" attribute in the header of the generated XML document please ?)
    Thanks in advance.

    Ok, I found a solution to get all namespaces placed in the root of the generated XML document : one have to implement a NamespacePrefixMapper
    marshaller.setProperty("com.sun.xml.bind.namespacePrefixMapper",new NamespacePrefixMapperImpl());and redefining its ' public String[] getPreDeclaredNamespaceUris()' method.
    For now, the problem is that namespaces declared there are somehow static. In fact, when unmarshalling Java objects from an XML document, it seems that this document namespaces are lost.
    Do you know a way these namespaces would be kept somewhere, associated with the unmarshalled object ? I need these namespaces in the case that I would create another XML file from it in the future.
    It's seems logical to keep this with the object, so did I miss something please ?

  • Unable to find a qualifications catalog for the root object specified-ESS

    Hi SDN,
    We are getting following exception Unable to find a qualifications catalog for the root object specified   when click on Add New Skill in Skills Profile, ESS . It is working fine , if user is assigned sap_all role. This is issue with permissions. Which role need to be assigned to work with Skills Profile in r3. Please help me out.
    regards,
    Sree.

    Have a look in table T77S0 for an entry called QUALI ESSST and make sure the object ID stored there matches the appropriate node in your qualifications catalogue.
    This setting is designed to be used for restricting ESS users to a particular part of the Quals Catalogue.
    If the table entry was configured in your development system, it may not match the obect numbers in your production system.

  • Tooltip for the Navigation Node - language dependent / translation?

    Is it possible to provide language dependent Tooltip for the Navigation Node.
    I tried the Portal content translation, but there was no possibility to translate the tooltip.
    Talking about this:
    Property ID: com.sap.portal.navigation.Tooltip
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/32a70ee8c45aaae10000000a42189d/frameset.htm

    Hi Van Vi,
    when I get your question right, you are looking for a possibility to change the text of the navigation items, not the text inside a content page, correct?
    I am using MII 12.0.2. The workaround for me was to create different roles like "XMII User EN", "XMII User DE" which contain the navigation item in the according language. The content pages contain tags like Michael mentioned, e.g. {##LBL_KEYWORD} in an *.irpt page. Those tags are set using the language set for the user in the NetWeaver UME.
    Michael, is there a possibility to use this {} notation in the navigation in 12.1, so I do not have to create language based roles?
    Michael

  • Dynamically rename the root node of XML based on the child elements

    Hi Gurus,
    Is there any way to rename the root node of the resultant XML after a mapping based on the child elements.
    For ex:
    consider the following resultant XML after mapping
    <result>
    <element1> </element1>
    <result>
    if the element1 is <type> then the output should be
    <category>
    <type> </type>
    </category>
    elseif the element1 is <character> then the output should be
    <property>
    <character> </character>
    </property>
    Let me know how to do this, either in XSLT or in Graphical mapping.
    Thanks,
    Prabu

    Hi, Prabu:
    In this case, I am suggest you have Src and Tar Message.
    I am suggesting you create another type of message using key / value pair as I suggested, e.g. called Mid Message.
    My solution for you is to have two message mappings:
    1. Src -> Mid
    2. Mid -> Tar.
    In first mapping, you have no control of the structure, but you can map it to Mid structure:
    e.g.
      if Type node Exist, then map 'Type' to Key, as Key/Value can be creatd under a parent node with 0:1 Occurrence.
      saying item.
       in this case, a new item created.
    If you think of this way, any xml file can be represted in this way:
       <Employee>
          <Fname>David</Fname>
          <Lname>Miller</Lname>
       </Employee>  
       <Employee>
          <Fname>Steve</Fname>
          <Lname>Mai</Lname>
       </Employee>   
    Can be interpretd as this way:
       <Employee>
          <Element>
             <key>Fname</Key>
             <value>David</Value>
          </Element>
          <Element>
             <key>Lname</Key>
             <value>Miller</Value>
          </Element>
       </Employee>  
       <Employee>
          <Element>
             <key>Fname</Key>
             <value>Steve</Value>
          </Element>
          <Element>
             <key>Lname</Key>
             <value>Mai</Value>
          </Element>
       </Employee> 
    Now you should understand what I mean.
    In your case target structure have to desgined as following way:
    You need to put Category and Property together with their sub-structure in parallel, make occurence to 0:1
    In your second mapping, you can check the key value is "Type" or "Character", based on which one is true,
    you create corresponding structure: either Categary or Property.
    Regards
    Liang
    Edited by: Liang Ji on Oct 22, 2010 8:31 PM
    Edited by: Liang Ji on Oct 22, 2010 8:35 PM

  • Multiple Antennas for 1300 root node

    Hello everyone.
    Is it possible to run two antennas from a 1300? We have three sites that we need to connect (one root node, point-to-multipoint). All 1300s would run in bridge mode. We are curious if the root node would need two antennas to receive signal from two 1300s in bridge mode (the non-root nodes are well outside the area of one antenna).
    AP(BR)<->{AntA <|rootAP|> AntB}<->AP(BR)
    Any help is appreciated. Thank you in advance.
    Tim

    No, two directional antennas would only confuse things. For systems with two antenna jacks per band, only one antenna is active at a time (for 'Diversity' - reduces the chance of multipath and nulls).
    The most common way would be to put a single omnidirectional antenna at the root site, then directional antennas (yagis or parabolics) at the hub sites (aimed at the omni).
    Good Luck
    Scott

  • Validation to find the Root Node !!!!

    Hi All,
    Is it possible to write a Validation to find the Root Node of the Hierarchy,
    For E.g.  If we have a three level hierarchy
    Printer
            Dot Matrix
                          T123
    So is there a way I can check if my Root node value is Printer or not, because in Data Manager the value that is selected from the hierarchy drop down is the leaf node.
    Regards,
    Parul

    Hi Jitesh,
    The solution is as follows:
    MDM does not give us the option to traverse to the grandparent of the leaf node..
    In the example that we have taken :
    Printer
    - Dot Matrix
    - Laser
    --Laser1
    --Laser2
    Here if we want to check if the Grandparent of Laser1 is Printer, this cannot be done using the simple Validation, because through validation also we can at max find the parent of the current node i.e. we can traverse till Laser (for Laser 1 leaf node).
    Further we cannot use Laser as the node because in MDM we have to traverse completely through the last node and select it in Data Manager. So again we cannot search for Laser -> Parent.
    The Work Around that I have used is :
    I have created a new field and every time I import data I have mapped this field with the first Level Node and have put the Validation on this field.
    Eg: The field name is Root Node, so everytime the data is imported, Level 1 is mapped to Root Node and so all the Root node values are imported in the Root Node field that we have created and everytime the Validation Runs on this Root Node field and accordingly the process follows.
    Hope that would be helpful to you all!!!!
    Regards,
    Parul Malhotra

  • Different No. Ranges for the GR in  one client.

    The rquirement is as follows:
    We have two different company codes in one client . These two company codes have their respective plants assigned to it. The GR No. range should be different for different plants as this is the requirement for the client.
    Let me know that how we can create the document type for the GR's so that we can assigh the different No. range for the different plants.
    Thanks and Regards,
    Mahendra Dev.

    Hi ,
    Thanks for ur reply,
    I also know that different number ranges in this situation are not possible and as per your suggessation we can create a new document in OBF4 and assign new number range to it but this assigned number range will be applicable to whole client, that means suppose we are doing a goods receipts in different plants of different company codes in same client the number range assigned to the goods receipt document will be from the same number range but my requirement is whether it is possible to assign different number ranges to goods receipt for two different plants.

Maybe you are looking for

  • How to retrieve specific data from a text file

    Hi, everyone For my project it is required that a parameter file is read at the beginning, in order for certain variables to be initialized with specific values that change with the user. At the moment, the way it is done is the following:  The value

  • What is the best way to connect two monitors to MacBook Air?

    I have a MacBook Air and I want to connect two monitors to it (not Thunderbolt Displays). I was thinking about using a Mini DisplayPort to DVI adapter to connect one monitor and a USB to DVI adapter to connect the other (such as Diamond BVU). But I h

  • Extracting OBJECTGUID using DBMS_LDAP package

    Hi, My final goal of this exercise is to search a LDAP for an objectGUID and get the sAMAccountName of the user. But to get the things started I'm trying the easier way and doing the reverse.. But when I extract objectGUID by searching for sAMAccount

  • How do I make groups in contacts

    My email is GMAIL.COM.  Is it possible to make contact groups for my IPAD/Iphone?

  • Calling ecatt_execute

    Hi, i'm calling the RFM ECATT_EXECUTE from a C# Command Line Application with the .NET Connector. The call itself run's successfully, but when i look at the ECatt log, the test is marked as failed. The Testscript is rather simple, it tests the ME21N