Implementation of the hasProperties() method of the Node class

The following snippet of code prints:
false
true
which seems to be a bug.
TextField nameField = new TextField();
System.out.println(nameField.hasProperties());
ObservableMap<Object, Object> props = nameField.getProperties();
System.out.println(nameField.hasProperties());The implementation of the hasProperties() method in the Node class returns true, if the ObservableMap object for storing properties has been created. That is not what is expected from this method. I think, this method should also check if the ObservableMap has any properties.
Can someone confirm that it is a bug?
Thanks
Kishori

You can log it at http://javafx-jira.kenai.com and then, if the developers want to keep it the way it is (which they may for API compatibility purposes), they can at least document it so that a user would know what to expect without writing a test or making a potentially invalid assumption.

Similar Messages

  • Overwriting a method of a super class in the subclass ???

    Hi,
    can somebody tell me whether it's possible to add a new implementation of a method in the sub class which is inherited from a super class?
    I want to model my program in that way:
    1. I define a super class with some implemented methods.
    2. This class should be inherited in a sub class. One method should be used as it was implemented in the super class but another method should be overwritten in the subclass.
    I know this concept from Java but I couldn't find a way how to do it in ABAP
    Many thanks for any help!
    Best regards,
    Birgit

    hi,
    yeas you can do it,
    Subclass can re-implement  the inherited public and protected methods from superclass.Class C1 contains method METH1(public) and METH2(protected), both of which are modified and re-implemented in  its subclass C2.also you can have ur own methods in subclass.Objects are created out of both classes and the method METH1 for both objects are called.
    Output of the program demonstrates different behaviour for method METH1 of class C1 and C2.
    This demonstrates the theme.
    REPORT YSUBDEL.
    CLASS C1 DEFINITION.
      PUBLIC SECTION.
       METHODS : METH1.
      PROTECTED SECTION.
       METHODS METH2.
      ENDCLASS.
    CLASS C1 IMPLEMENTATION .
      METHOD : METH1.
       WRITE:/5 'I am meth1 in class C1'.
       CALL METHOD METH2.
      ENDMETHOD.
      METHOD : METH2.
       WRITE:/5 ' I am meth2 in class C1 '.
      ENDMETHOD.
    ENDCLASS.
    CLASS C2 DEFINITION INHERITING FROM C1.
    PUBLIC SECTION.
      METHODS : METH1 redefinition,
      meth3.
    PROTECTED SECTION.
      METHODS : METH2 redefinition.
    ENDCLASS.
    CLASS C2 IMPLEMENTATION.
    METHOD METH1.
       WRITE:/5 'I am meth1 in class C2'.
       call method meth2.
    endmethod.
      METHOD : METH2.
      WRITE:/5 ' I am meth2 in class C2 '.
    ENDMETHOD.
    METHOD : METH3.
      WRITE:/5 ' I am own method of class C2'.
    ENDMETHOD.
    endclass.
    START-OF-SELECTION.
      DATA : OREF1 TYPE REF TO C1 ,
             OREF2 TYPE REF TO C2.
      CREATE OBJECT :  OREF1 , OREF2.
      CALL METHOD : OREF1->METH1 ,
                    OREF2->METH1.
    hope it helps,
    regards

  • Is it possible to call a subscreen/modal dialog box from the global class

    Hi,
    Is it possible to call a subscreen or modal dialog box from the global class ..
    or is there any option to display a pop screen or subscreen in order to get the values from user which as to be implemented
    in the global class..
    thanks and regards,
    Poornima.

    Hi Poornima,
    you should follow Uwe's suggestion. The only alternative I can imagine is dynamic document in a dialog container. But I don't know any standardized classes to make use with minimum effort. Have a look at report DD_ADD_FORM_INPUT. Here they put the input field in a container control in a screen; you can put the container control on a dialog container (CL_GUI_DIALOGBOX_CONTAINER).
    We will not get rid of any screen for the time being, but if your application is started from any screen, the DIALOGBOX_CONTAINER can start from there.
    Regards,
    Clemens

  • Implements interface method at the derived class

    Hi all.
    I have a class (Derived) that extends another class (Base).
    In the base class (Base) there is a method f() with its implementation.
    In the interface (C) there is also f() method exactlly like in the base class (Base).
    The derived class (Derived) is implements the interface (C).
    My question is:
    Do i have to implement the method f() in the derived class (Derived) ?

    My guess is that you probably have to, even if it's just to call the parent's method.
    This all sounds pretty sketchy. Why don't you just make the BASE class implement your interface?

  • How to implement the String class "split()" method (JDK1.4) in JDK 1.3

    is it possible , with some code, to implement the split() method of the String class......which is added in JDK1.4 ..... in JDK1.3
    would be helpful if anyone could suggest some code for this...

    Here it is
    public static String[] split(String source, char separ){
    answer=new Vector();
    int position=-1, newPosition;
    while ((newPosition=source.indexOf(separ,position+1))>=0){
    answer.add(source.subString(position+1,newPosition));
    position=newPosition;
    } //while
    answer.add(source.subString(position+1,source.length-1);
    return (String[])(answer.toArray());
    } //split

  • Change the Node Color

    how do i change the Node color in the JTree

    What do you mean it doesn't help you? PhHein told you you need to use TreeCellRenderer and gave you a link to a tutorial, what more do you want? You need to create a class that implements TreeCellRenderer like:
    private static class CellRenderer implements TreeCellRendererAnd implement this method:
    public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected,
      boolean expanded, boolean leaf, int row, boolean hasFocus)If you want to be spoon fed, you need to pay for a tutor.

  • Binding with all the nodes to the table

    Hi,
    I have requirement like this,
    I have table in which data is displayed using BAPI.
    In my BAPI , there are four tables.
    My criteria is to bind the values to the table from the four nodes which is mapped from BAPI.
    But I can't able to bind the value form all the nodes, it allowing me to only bind form one node.
    Please help me with the procedure to bind the values to the table from all the nodes in the context.
    Thanks,
    Anitha

    Hi Anita,
    I had a similar requirement and resolved my problem by following the below procedure. Try this, it might help you.
    I have got 3 Nodes coming from a BAPI
    Model Node Root--
           Model Node A---
              Attribute- 1
              Attribute- 2
          Model Node B--
              Attribute- X
              Attribute- Y
          Model Node C--
             Attribute- F
             Attribute- G
    Now I want bind all these Nodes to one table. So, I created a "Value Node" - V under Model Node Root. Then create Value Attributes under Node -V with the similar names of the above Model Node attributes and then change their "Type" property exactly same as the Model Attributes Type.
    Then, create a Table and then Bind the table to the Value  Node. Now, in your wdDoinit Method of your Component Controller, give this code
    WDCopyService.copyElements(wdContext.node<modelnode>, wdContext.node<valuenode>);
    Later in your View Implementation give the following Code.
    IPrivate<Name>View.ISourceValueNode iSourceValueNode= wdContext.nodeSourceValueNode();
    IPrivate<Name>View.ISourceValueElement iSourceValueElement;
    IPrivate<Name>View.ITargetRFC Element iTargetRFCElement;
    for(int i=0;i<wdContext.nodeTargetRFC().size();i++){
    iTargetRFCElement = wdContext.nodeTargetRFC().getTargetRFCElementAt(i);
    iSourceValueElement = iSourceValueNode.createSourceValueNodeElement();
    iSourceValueElement.set<attribute name>(iTargetRFCElement.get<Attribute name>());
    iSourceValueNode.addElement(iSourceValueElement);
    iSourceValueNode.moveNext();
    I hope this helps you. Let me know if you need any information.
    Regards,
    Gopal.

  • Unable to drag the Icon associated with the node

    I am working on dragging a node from Tree to a list.
    I have to drag the Icon associated with the leaf too. I am able to drag only the string of the node not the Icon that is associated with it. Can you help me with this? I have the code as below. Thanks.
    public class IconNode extends DefaultMutableTreeNode {
    protected Icon icon;
    protected String iconName;
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode() {
    this(null);
    }//end IconNode
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode(Object userObject) {
    this(userObject, true, null);
    }// end IconNode
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode(Object userObject, boolean allowsChildren
              , Icon icon) {
    super(userObject, allowsChildren);
    this.icon = icon;
    }//end IconNode
    //* setIcon
    /**sets the Icon to the node*/
    public void setIcon(Icon icon) {
    this.icon = icon;
    }// end setIcon
    //* getIcon
    /**gets the Icon of the node*/
    public Icon getIcon() {
    return icon;
    }//end getIcon
    //* getIconName
    /**gets the IconName*/
    public String getIconName() {
    if (iconName != null) {
    return iconName;
    } else {
    String str = userObject.toString();
    int index = str.lastIndexOf(".");
    if (index != -1) {
    return str.substring(++index);
    } else {
    return null;
    }//end getIconName
    //* setIconName
    /**sets the IconName*/
    public void setIconName(String name) {
    iconName = name;
    }//end setIconName
    }// end IconNodepublic class IconNode extends DefaultMutableTreeNode {
    protected Icon icon;
    protected String iconName;
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode() {
    this(null);
    }//end IconNode
    public class DNDTree extends JTree
    public DNDTree (IconNode top)
    super (top);
    DNDTreeHandler dndHandler = new DNDTreeHandler(this);
    setAutoscrolls(true);
    public class DNDTreeHandler extends DnDHandler
    TransferableDataItem transDataItem = new TransferableDataItem();
    public DNDTreeHandler(Component dndComponent)
    super(dndComponent);
    public DataFlavor[] getSupportedDataFlavors()
    return transDataItem.getTransferDataFlavors();
    * Gets the data from the selected object being dragged
    * @return node DataItem being dragged
    public Transferable getTransferable()
    TreePath path = getSelectionPath();
    //DefaultMutableTreeNode selection = (DefaultMutableTreeNode)path.getLastPathComponent();
    IconNode selection = (IconNode)path.getLastPathComponent();
    if (path == null)
    return(null);
    else
    TransferableDataItem node = new TransferableDataItem(selection);
    return(node);
    * Handles the drop of the component after the drag is complete
    * @param transferable Object being dropped
    * @param event drop event information
    public void handleDrop(Transferable transferable, DropTargetDropEvent event) throws Exception
    Point location = event.getLocation();
    //Get path of node where object being dropped
    TreePath path = getClosestPathForLocation(location.x, location.y);
    //No drop target
    if(path == null)
    System.err.println ("Rejected");
    event.rejectDrop();
    else
    Transferable tr = event.getTransferable();
    if(tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
    System.out.println("Got transfered data");
    Object userObject = tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    //DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent();
    IconNode node = (IconNode)path.getLastPathComponent();
    IconNode newNode = new IconNode(userObject);
    DefaultTreeModel model = (DefaultTreeModel)getModel();
    model.insertNodeInto(newNode, node, 0);
    else
    System.err.println ("Rejected");
    event.rejectDrop();
    public abstract class DnDHandler implements DropTargetListener,DragSourceListener, DragGestureListener
    protected DropTarget dropTarget;
    protected DragSource dragSource;
    public DnDHandler(Component dndComponent)
    dropTarget = new DropTarget (dndComponent, this);
    dragSource = new DragSource();
    dragSource.createDefaultDragGestureRecognizer( dndComponent, DnDConstants.ACTION_COPY_OR_MOVE, this);
    //creates transferable based on what's selected or returns null if nothings selected
    protected abstract Transferable getTransferable();
    protected abstract void handleDrop(Transferable transferable, DropTargetDropEvent event) throws Exception;
    protected abstract DataFlavor[] getSupportedDataFlavors();
    public void dropFailed (DragSourceDropEvent event)
    System.out.println("Drop Failed");
    public void dropSuccess (DragSourceDropEvent event)
    System.out.println("Drop was successful");
    private boolean isTransferableSupported(Transferable t)
    DataFlavor[] flavors = getSupportedDataFlavors();
    for (int i=0; i<flavors.length; i++)
    if (t.isDataFlavorSupported(flavors) )
    return true;
    return false;
    public void dragGestureRecognized( DragGestureEvent event)
    Transferable trans = getTransferable();
    Cursor dragIcon = getDragCursor(event);
    if (trans != null)
    // Starts the dragging
    dragSource.startDrag (event, dragIcon, trans, this);
    else
    System.out.println( "nothing was selected");
    * a drop has occurred
    public void drop (DropTargetDropEvent event)
    try
    Transferable transferable = event.getTransferable();
    // we accept only Strings
    if (isTransferableSupported (transferable))
    event.acceptDrop(event.getDropAction());
    handleDrop(transferable, event);
    event.getDropTargetContext().dropComplete(true);
    else
    event.rejectDrop();
    catch (Exception e)
    e.printStackTrace();
    System.err.println( "Drop Exception" + e.getMessage());
    event.rejectDrop();
    //DragSourceListener interfaces
    * is invoked when you are dragging over the DropSite
    public void dragEnter (DropTargetDragEvent event)
    // debug messages for diagnostics
    //System.out.println( "dragEnter");
    int action = event.getDropAction();
    event.acceptDrag (action);
    * is invoked when you are exit the DropSite without dropping
    public void dragExit (DropTargetEvent event)
    //System.out.println( "dragExit");
    * is invoked when a drag operation is going on
    public void dragOver (DropTargetDragEvent event)
    //System.out.println( "dragOver");
    * is invoked if the use modifies the current drop gesture
    public void dropActionChanged ( DropTargetDragEvent event )
    //gets the cursor to start drag
    protected Cursor getDragCursor( DragGestureEvent event)
    if (event.getDragAction() == DnDConstants.ACTION_MOVE)
    return DragSource.DefaultMoveDrop;
    if (event.getDragAction() == DnDConstants.ACTION_COPY_OR_MOVE)
    return DragSource.DefaultCopyDrop;
    else
    return Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
    * this message goes to DragSourceListener, informing it that the dragging
    * has ended
    public void dragDropEnd (DragSourceDropEvent event) {
    if ( event.getDropSuccess())
    dropSuccess(event);
    else
    dropFailed(event);
    * this message goes to DragSourceListener, informing it that the dragging
    * has entered the DropSite
    public void dragEnter (DragSourceDragEvent event)
    //System.out.println( " dragEnter");
    * this message goes to DragSourceListener, informing it that the dragging
    * has exited the DropSite
    public void dragExit (DragSourceEvent event)
    //System.out.println( "dragExit");
    * this message goes to DragSourceListener, informing it that the dragging is currently
    * ocurring over the DropSite
    public void dragOver (DragSourceDragEvent event)
    //System.out.println( "dragExit");
    * is invoked when the user changes the dropAction
    public void dropActionChanged ( DragSourceDragEvent event)
    //System.out.println( "dropActionChanged");
    public class TransferableDataItem extends DefaultMutableTreeNode implements Transferable
    final static int DATA_ITEM = 0;
    final static int STRING = 1;
    final static int PLAIN_TEXT = 2;
    //final public static DataFlavor DEFAULT_MUTABLE_DATAITEM_FLAVOR =
    // new DataFlavor(DefaultMutableTreeNode.class, "Default Mutable Data Item");
    final public static DataFlavor DEFAULT_MUTABLE_DATAITEM_FLAVOR =
    new DataFlavor(IconNode.class, "Default Mutable Data Item");
    static DataFlavor flavors[] = {DEFAULT_MUTABLE_DATAITEM_FLAVOR, DataFlavor.stringFlavor, DataFlavor.plainTextFlavor};
    private Object data;
    public TransferableDataItem()
    public TransferableDataItem(Object data)
    this.data = data;
    public DataFlavor[] getTransferDataFlavors()
    return flavors;
    public Object getTransferData(DataFlavor flavor)
    throws UnsupportedFlavorException, IOException
    Object returnObject;
    if (flavor.equals(flavors[DATA_ITEM]))
    returnObject = data;
    else if (flavor.equals(flavors[STRING]))
    returnObject = data.toString();
    else if (flavor.equals(flavors[PLAIN_TEXT]))
    returnObject = new ByteArrayInputStream(data.toString().getBytes());
    else
    throw new UnsupportedFlavorException(flavor);
    return returnObject;
    public boolean isDataFlavorSupported(DataFlavor flavor)
    boolean returnValue = false;
    for (int i=0, n=flavors.length; i<n; i++) {
    if (flavor.equals(flavors[i]))
    returnValue = true;
    break;
    return returnValue;
    public class DNDList extends JList
    DropTarget dropTarget;
    public DNDList()
    DNDListHandler dndHandler = new DNDListHandler(this);
    setModel(new DefaultListModel());
    //private void addElement(Point location, Object element)
    private void addElement(Point location, IconNode element)
    int index = locationToIndex(location);
    // If index not found, add at end, otherwise add one beyond position
    if (index == -1) {
    index = getModel().getSize();
    else
    index++;
    ((DefaultListModel)getModel()).add(index, element);
    public class DNDListHandler extends DnDHandler
    TransferableDataItem transDataItem = new TransferableDataItem();
    public DNDListHandler(Component dndComponent)
    super(dndComponent);
    public DataFlavor[] getSupportedDataFlavors()
    return transDataItem.getTransferDataFlavors();
    public DataFlavor[] getTransferDataFlavors()
    return transDataItem.getTransferDataFlavors();
    * Gets the data from the selected object being dragged
    * @return node Node being dragged
    public Transferable getTransferable()
    Object selectedItem = getSelectedValue();
    System.out.println("Selected Value is " + selectedItem);
    TransferableDataItem item = new TransferableDataItem(selectedItem);
    return(item);
    * Handles the drop of the component after the drag is complete
    * @param transferable Object being dropped
    * @param event drop event information
    public void handleDrop(Transferable transferable, DropTargetDropEvent event) throws Exception
    Transferable tr = event.getTransferable();
    Point location = event.getLocation();
    if (tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
    //event.acceptDrop (DnDConstants.ACTION_COPY_OR_MOVE);
    // Object userObject = tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    IconNode userObject = (IconNode)tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    addElement(location, userObject);
    //dropTargetDropEvent.getDropTargetContext().dropComplete(true);
    else
    System.err.println ("Rejected");
    event.rejectDrop();

    I think your problem come from this method :
    if (tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
       System.out.println("Got transfered data");
       Object userObject = tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    //DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent();
       IconNode node = (IconNode)path.getLastPathComponent();
       IconNode newNode = new IconNode(userObject);
       DefaultTreeModel model = (DefaultTreeModel)getModel();
       model.insertNodeInto(newNode, node, 0);
    ...You should write :
    if (tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
       IconNode node = (IconNode)tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
       IconNode node = (IconNode)path.getLastPathComponent();
       IconNode newNode = new IconNode(node);
       DefaultTreeModel model = (DefaultTreeModel)getModel();
       model.insertNodeInto(newNode, node, 0);
    ...and create a construcor for IconNode :
    public IconNode(IconNode node) {
       super(node.getUserObject, node.getAllowsChildren());
       icon = node.icon;
    }When you use IconNode newNode = new IconNode(userObject), the icon is null (see your constructor).
    If I can say something, you should simplify your code : you can do the same thing dividing the size of your code by five (at less).
    Denis

  • Database Connectivity takes long time if one of the Node is down .. ??

    Hello All,
    Env: 10.2.0.4 on Solaris 10
    I have 2 nodes.
    When Node1 server is down, it takes long time to connec to the database.
    tnsping would give "OK(2050ms)". Below is the tnsalias.
    RAC_test  =
      (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST=20.268.169.123)(PORT= 1521))
         (ADDRESS = (PROTOCOL = TCP)(HOST=20.268.169.127)(PORT= 1521))
         (LOAD_BALANCE = yes)
              (CONNECT_DATA =
            (SERVICE_NAME = DK.com)
          (FAILOVER_MODE =
            (TYPE = SELECT)
            (METHOD = BASIC)
            (RETRIES = 180)
            (DELAY = 5)
    )I put the trace on sqlnet.ora and found that first it pings to the "20.268.169.123",
    since the Server is down there will not be any reply and this consumes the delay and
    later it would ping "20.268.169.127" and connect to it.
    If i keep "20.268.169.127" above "20.268.169.123" in tnsalias, and keep "LOAD_BALANCE=no",
    it gets connected very fast, as its directly connecting to Node2. In tnsping i get Ok(40ms).
    How do i reduce the connect timing if i use the first step. Why does it take long time for
    Oracle Client to understand that the Node1 Server is down ?
    TIA,
    J J

    I hope the IP's you are using in the TNS are Virtual IP's.
    You must use Virtual IP's / hostnames for the failover to be quick. If Node 1 is not available then then it's (Node 1's) virtual IP would also get assigned to Node 2 hence all client connections are still able to get a response from the Node Virtual IP address without needing to wait for TCP/IP timeouts. This helps clients to get notified immediately that node 1 is unavailable and the connection tries the 2nd ip/host in the connect descriptor.
    Hope this helps.
    - Siba

  • How to create input text of the node in AVL tree

    Hi experts,
    I create a simple AVL tree to display the sales order items, just two classes for one relationship. Like the left part on the screen in this program "DEMO_ABAP_OBJECTS_CONTROLS".
    I want to let the node of the second class be maintained serial no., somthing like input field behind the node or double click the node, then show up the input field on another space on the same screen.
    And there is a button on screen, I can do some check for the text of input field when pressing the button. If the input data is wrong , then show up the error message.
    I have searched BCALV* in SE38, but i don't see anything helpful.
    Plz give me some advice, thanks a lot!!
    Regards,
    Claire

    To Kunjal and Uwe,
    My AVL tree is declared like this:
    Data: tree TYPE REF TO cl_gui_simple_tree.
    The class is not  "cl_gui_alv_tree" , so I can not use the code.
    The code I create the node is the follwing:
    CALL METHOD tree->add_nodes
             EXPORTING table_structure_name = 'ABDEMONODE'
                       node_table = node_table.
    And I looked the program that Uwe wrote, the tree is declared in class cl_gui_alv_tree, too.
    I want to double click the node and appear a field that can be inputed text.
    Is there any other way to do this with the class cl_gui_simple_tree?
    Thanks for the advence help.
    Claire

  • How do i expand all the nodes in a jtree

    Hi,
    I am working on a project where i need to expand all the nodes of a jtree i have tried a few different ways but it never seems to expand all the nodes..
    I would be very greatful if someone could point me in the right direction
    cheers
    Mary

    you could use the following method that expands nodes recursively
    expandNode( myTree, myRootNode, new TreePath( myRootNode ) );
    public static void expandNode( JTree tree, TreeNode node, TreePath path ) {
        tree.expandPath( path );
        int i = node.getChildCount( );
        for ( int j = 0; j< i; j++ ) {
            TreeNode child = node.getChildAt( j );
            expandNode( tree, child , path.pathByAddingChild( child ) );
    }

  • How to edit the node value of a tree in webdynpro java

    Hi ALL
    I have Tree UI element where i got displayed all the nodes by calling the BAPI
    Now my requirement is when i put the cursor at any node in the Tree struture then on click of insert button i need to insert the new node with the text  , the user has to be option to give new text for the new node dynamically  , so while adding the new node in a tree the tree has to choose the text for new node , like how to edit the node of a tree to add new text.
    If any one can send the sample code on the same then it would be great help to me.
    Similar requirement like in table UI Like however we are adding the new row in a table when we click on the insert button then cursor will go to that new row in a table where user can enter his details in the table.. now i am looking for the same requirement in a Tree UI element.
    is it possible the same requirement in tree UI element in webdynpro for Java??
    Thanks
    kallki reddy

    Hi kallki reddy
    In general I think this is not possible in the form you'd like. It seems the Tree control is read-only thing always. It cannot provide editing capabilities.
    Table is different thing. You can select within many different cell editors including Input Fields.
    I guess that you scenario could be implemented not with Tree control, but with Table with Master Column. The master column allows to bring up a hierarchy into a plain table. So it's just a tree inside a table.
    Here you can find further details: [TreeByNestingTableColumn API|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/92/12a74046033913e10000000a155106/content.htm]
    BR, Siarhei

  • Calling the super class method from the subclass

    Hi all,
    I have a question about inheritence and redefinition of methods. Is it possible to call the superclass implementation of a method which is redefined in the subclass in another method of the subclass?There are possbilities like creation of an explicit super class instance or delegating the super class method implementation to another method which is also protected etc. What i mean is, is there a direct way of calling it?We have ,me,   as the reference for the instance we have(which is the subclass instance in this case), is there also a way of pointing the superclass implementation(with super we can reference in the subclass redefinition, my question is if we have such a parameter in other methods of the subclass too)
    Thanks in advance
    Sukru

    Hi,
    The super reference can only be used in redefined methods to call superclass implementation . So probably what you can do is use upcasting and access the required superclass implementation. I can think of only this way...;-)
    Ex data lr_super type ref to cl_superclass
    lr_super = lr_subclass.
    lr_super->method().
    ~Piyush Patil

  • How to Restrict the node level in account hierarchy

    Hi experts,
    I want to restrict the node level in account hierarchy. I attached one example. in that if i click 6000 node again it want to show error message. for one parent node i want to create only two child node. Further if i create means it want to show error msgs and not allow to create the node..
    Regards,
    gopi

    Hi ,
    The component is bp_hier, and method is onnew_node.
    IF lv_tree->is_locked( ) = abap_false.
         lv_tree->lock( ).
       ENDIF.
       CHECK lv_tree->is_locked( ) = abap_true.
       lv_index = typed_context->accounthierarchy->selected_index.
       lv_tree_node = typed_context->accounthierarchy->get_node_by_index( lv_index ).
    *key = lv_tree_node->node_key.
      CALL METHOD lv_api->get_node_parent
         EXPORTING
           iv_node_key        = key
         IMPORTING
           ev_parent_node_key = lv_paent_key
    *      ev_tree_guid       =
    *   lv_parent = lv_tree_node->parent_entity.
    *    typed_context->accounthierarchy->parent_entity.
    CALL METHOD lv_tree_node->get_children
       receiving
         rt_children = rt_child.
       CHECK lv_tree_node IS BOUND.
       lv_tree_node->is_leaf = abap_false.
       TRY.
           lv_proxy_node ?= lv_tree_node.
           TRY.
               lv_object ?= lv_proxy_node->bo.
             CATCH cx_sy_move_cast_error.
               lv_mixed_node ?= lv_proxy_node->bo.
               lv_object ?= lv_mixed_node->if_bsp_wd_ext_property_access~get_model_node( ).
           ENDTRY.
           lv_object_name = lv_object->get_name( ).
           IF lv_object_name = 'BuilHierarchyNode'.
             lv_relation_name = 'BuilHNodeRel'.
           ELSEIF lv_object_name = 'BuilHierarchyHeader'.
             lv_relation_name = 'BuilHeaderNodeRel'.
           ELSE.
             RETURN.
           ENDIF.
           lv_tree_node->get_children( ).
           lv_object = lv_object->create_related_entity( lv_relation_name ).
           lv_child_node = lv_proxy_node->node_factory->get_proxy(
               iv_bo = lv_object
               iv_proxy_type = 'CL_BP_HIER_HIERARCHYTREEV_CN05'
               iv_parent_proxy = lv_tree_node ).
           lv_tree_node->expand_node( ).
           typed_context->accounthierarchy->refresh( ).
           typed_context->accounthierarchy->deselect_all( ).
           lv_child_node->selected = abap_true.
           lv_child_node->is_leaf  = abap_true.
    *accounthierarchy
    *      selectedhierarchynode
           lv_col_wrap = typed_context->selectedhierarchynode->get_collection_wrapper( ).
           lv_col_wrap->clear( ).
    This is the code.
    i wrote . but its not getting.

  • Not able to display the Node context attributes to table

    Hi Friends,
    Issue: Currently i am reading the Node parameters and assigning the parameters to the Context of the mainView.
    Then displaying the attributes into table here i am using a iterator to fetch the attributes.
    But its reading only one record to the table not all the attributes.
    Here i am attaching the code:
    Node is EvaluationDimensions and attributes are Dimension and Selected_values.
    Line: -
    public void wdDoInit()
       //@@begin wdDoInit()
    try
    IBONodeElement test = null;
    test = (IBONodeElement)wdThis.wdGetDefinedimensiongafController().wdGetContext().nodeEvaluationDimensions().currentEvaluationDimensionsElement().model();
    IBONode testNode = test.getBONode();
    Iterator it = testNode.iterator();
    IBONodeElement itElement = null;
    while(it.hasNext())
    itElement = (IBONodeElement)it.next();
    //wdContext.nodeEvaluationDimensions().createAndAddEvaluationDimensionsElement();
    wdContext.createAndAddEvaluationDimensionsElement();
    wdContext.currentEvaluationDimensionsElement().setDimension(itElement.getAttributeValue("KPIParameterDefinitionName").toString());
    wdContext.currentEvaluationDimensionsElement().setSelected_Values(itElement.getAttributeValue("ParameterSelectedValuesText").toString());
    } catch (RuntimeException e) {
    e.printStackTrace();
    wdThis.wdGetDefinedimensiongafController().wdGetAPI().getComponent().getMessageManager().reportSuccess(e.toString());
        //@@end
    Line: -
    Could you suggest me some alternatives to show all records into table??
    Thanks & Best Regards, Prabhu(9886855725)
    Edited by: Armin Reichert on Apr 24, 2008 12:57 PM

    Hi Prabhu
    IBONodeElement test = null;
    test = (IBONodeElement)wdThis.wdGetDefinedimensiongafController().wdGetContext().nodeEvaluationDimensions().currentEvaluationDimensionsElement().model();
    What is this model() .
    You remove the try catch method once and test it to trace the error.Why cant you use typed AccessAPI to fetch the values from the node element.Is your node have more elements test it.By getting the size of the node.
    That too you are setting values to only current context element .Not for other elements.Everytime you are setting the values to current context element,thats why you are getting only one element values at a time.Iterate properly and try to set the values for each element
    wdContext.currentEvaluationDimensionsElement().setDimension(itElement.getAttributeValue("KPIParameterDefinitionName").toString());
    See the above code every time you are setting to currentNode lement notforother elements.
    Regards
    kalyan

Maybe you are looking for

  • Unable to access values from database in login page..

    Hey all, Friends I have a login.jsp page and I want if i enter username and password then it will be accessed from database and after verifying the details it will open main.jsp.I made a database as "abc" and created DSN as 1st_login having table 1st

  • Step by step bapi for purchase order

    hi friends, i am very new to bapi i have requiremet to upload purchase order using bapi can any one tell me how to use bapi_po_create which parameter i hvae to pass .plz do the need ful. regards sonu

  • Can I change HREF of an image onMouseOver?

    Hi, Is there a way to mouseOver an image (A) and have DW change the HREF attribute of a different image (B)? I am trying to accomplish the following: 1. (This works now). mouseOver one of the dots in the top left and change the main image as well as

  • Where are the bookmark records located?

    I am buying a new PC. I wish to use the same profile in my new download of Thunderbird. I plan to copy my existing Thunderbird profile and to import it into the new PC, so I can begin using Thunderbird quickly and effortlessly. Where are the bookmark

  • Error install IAS Infra 10.1.2.0.2

    On a Red Hat Enterprise Linux AS release 4 (Nahant Update 7) When installing oracle ias infra 10.1.2.0.2 i got this error : - Linking hsodbc agent /oracle/ora10ias2/OraHome_Infra/lib/libnnz10.so: undefined reference to `ssl_DisableClientAuthenticatio