Adding listeners to handles in JTree

Hi,
I wanted to know can listeners be added to the handles in the topmost level in a JTree. If yes how can this be done?
Thanks,
Sheetul

And there's a TreeSelectionListener that tells you when the user clicked on a node to select it. But clicking on the node handles is not the normal way to select them.

Similar Messages

  • Inconsistent prob when adding listeners to serial ports for sending AT cmds

    I have an app that sends and receives SMSs from two different cell phone carriers (lets say verizon and sprint by example).
    For that matter i have two cell phones, exactly the same model, one from each carrier, connected to the PC serial ports, COM, COM6 and COM7 being aware that they are available.
    -The application communicats with the phones through the a serial communication API and sending AT commands.
    -The application can send messages correctly from both phones within the same transaction, this is, i click in send message and the message is sent from both phones.
    The problem is when receiving, getting the SMS received by the phones:
    -When i have ONE phone connected to the PC it work properly for both phones.
    -When i have BOTH phones connected, only Carrier1 phone receives properly.
    When checking, i just find out that the problem rises when i try to add the listeners (see code comments below).
    When both phones connected there seems to be a problem that i cant figure out, and may be its a conceptual misunderstanding from me.
    I attach the code if you can help me,
    thank you,
    fernando
    // class fields
    private static String PORT_CARRIER1;
    private static String PORT_CARRIER2;
    private static CommPortIdentifier portId;
    private static Enumeration portsList;
    private static SerialPort carrier1SP;
    private static SerialPort carrier2SP;
    private static InputStream carrier1_input;
    private static InputStream carrier2_input;
    private static OutputStream carrier1_output;
    private static OutputStream carrier2_output;
    // ... all the code below is from the app method where everything is initializated     
    portsList = CommPortIdentifier.getPortIdentifiers();
    while(portsList.hasMoreElements()){
         portId = (CommPortIdentifier) portsList.nextElement();
         if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL){          
              // try to open ports
              try{
                   if(portId.getName().equals(PORT_CARRIER1))
                        carrier1SP = (SerialPort) portId.open("SMS", 5000);
                   else if(portId.getName().equals(PORT_CARRIER2))
                        carrier2SP = (SerialPort) portId.open("SMS", 5000);
                   else System.out.println("Error " + portId.getName());
              }catch(PortInUseException piue){
                   System.out.println("Exception while opening serial ports: "+piue.getMessage());
                   continue;
              // try to open input streams
              try{
                   if(portId.getName().equals(PORT_CARRIER1))
                        carrier1_input = carrier1SP.getInputStream();
                   else if(portId.getName().equals(PORT_CARRIER2))
                        carrier2_input = carrier2SP.getInputStream();
              }catch(IOException ioe){
                   System.out.println("Exception while opening input streams: "+ioe.getMessage());
                   continue;
              // try to open output streams
              try{
                   if(portId.getName().equals(PORT_CARRIER1))
                        carrier1_output = carrier1SP.getOutputStream();
                   else if(portId.getName().equals(PORT_CARRIER2))
                        carrier2_output = carrier2SP.getOutputStream();
              }catch(IOException ioe){
                   System.out.println("Exception while opening output streams: "+ioe.getMessage());
                   continue;
              // adding listeners
              try{
                   if(portId.getName().equals(PORT_CARRIER1))
                        carrier1SP.addEventListener(new ListenerPuerto(this, carrier1_input, "CARRIER1"));
                   else if(portId.getName().equals(PORT_CARRIER2))
                        carrier2SP.addEventListener(new ListenerPuerto(this, carrier2_input, "CARRIER2"));
              }catch(TooManyListenersException tmle){
                   System.out.println("Error while adding listeners: " + tmle.getMessage());
                   continue;
              // Adding specific event to listeners
              if(portId.getName().equals(PORT_CARRIER1))
                   carrier1SP.notifyOnDataAvailable(true);
              else if(portId.getName().equals(PORT_CARRIER2))
                   carrier2SP.notifyOnDataAvailable(true);
              // Setting params to serial communication
              try{
                   if(portId.getName().equals(PORT_CARRIER1)){
                        carrier1SP.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
                        carrier1 = true;
                   }else if(portId.getName().equals(PORT_CARRIER2)){
                        carrier2SP.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
                        carrier2 = true;
              }catch(UnsupportedCommOperationException uscoe){
                   System.out.println("Error while setting params for serial communication: " + uscoe.getMessage());
                   continue;
              // ... nothing else important ...thanks in advance

    Thinking of a java application as its what I am most
    comfortable with, but also thinking of having an
    apache server, and using jsp pages or servlets...
    because I hate formatting things in a java frame..
    have never quite mastered that! Any thoughts on what
    I should use?I'd prefer a Swing GUI for a maximum of controls. If you have any problems regarding layout, you can post concrete questions here (or even better: the Swing forum).
    And my main stumbling block would be how do I send
    signals to the green light from the computer? How do
    I get signals from the light beams to the computer?
    How do I use a serial port (for eg) from a java app.There's an additional library for serial I/O, it's named javax.comm ... should be downloadable somewhere on the java.sun.com site.

  • Inconsistent results for adding child node in a JTree

    I have a JTree where I add child nodes when a user clicks on the node or handle. When the user clicks on the node, through implementing TreeSelectionListener interface, I add a node, the tree expands, and I see the newly added node. However, when the user clicks on the handle, through implementing the TreeExpansionListener, the tree does not expand and I do not see the newly added node. The problem is repeatable by compiling the code below.
    Why is there this difference? Aren't all the methods implemented through the TreeSelectionListener and TreeExpansionListener in the SWT thread?
    public class TestFrame extends JFrame implements TreeSelectionListener, TreeExpansionListener {
         public TestFrame() {
              String[] alphabets = {
                        "a", "b", "c", "d", "e", "f", "g",
                        "h", "i", "j", "k", "l", "m", "n",
                        "o", "p", "q", "r", "s", "t", "u",
                        "v", "w", "x", "y", "z"
              DefaultMutableTreeNode top = new DefaultMutableTreeNode("CEDICT");
              for(int i=0; i < alphabets.length; i++) {
                   DefaultMutableTreeNode node =
                        new DefaultMutableTreeNode(alphabets) {
                        public boolean isLeaf() { return false; }
                   top.add(node);
              JTree tree = new JTree(top);
              tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
              tree.addTreeSelectionListener(this);
              tree.addTreeExpansionListener(this);
              tree.setShowsRootHandles(true);
              JScrollPane treePane = new JScrollPane(tree);
              treePane.setHorizontalScrollBarPolicy(
                        JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
              treePane.setVerticalScrollBarPolicy(
                        JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
              treePane.setSize(new Dimension(200,400));
              treePane.setPreferredSize(new Dimension(200,400));
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(treePane, BorderLayout.CENTER);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int inset = 50;
    setBounds(inset, inset,
    screenSize.width - inset*2,
    screenSize.height - inset*2);
              setLocationRelativeTo(null);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              pack();
              show();
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        JFrame.setDefaultLookAndFeelDecorated(true);
                        TestFrame frame = new TestFrame();
         public void valueChanged(TreeSelectionEvent e) {
              JTree tree = (JTree)e.getSource();
              DefaultMutableTreeNode node =
                   (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
              System.out.println(node);
              Date date = new Date();
              node.add(new DefaultMutableTreeNode(date.toString()));
         public void treeCollapsed(TreeExpansionEvent event) {
              JTree tree = (JTree)event.getSource();
              TreePath path = event.getPath();
              DefaultMutableTreeNode node =
                   (DefaultMutableTreeNode) path.getLastPathComponent();
              System.out.println(node);
              Date date = new Date();
              node.add(new DefaultMutableTreeNode(date.toString()));
              tree.invalidate(); //does not help to show newly added child
         public void treeExpanded(TreeExpansionEvent event) {
              JTree tree = (JTree)event.getSource();
              TreePath path = event.getPath();
              DefaultMutableTreeNode node =
                   (DefaultMutableTreeNode) path.getLastPathComponent();
              System.out.println(node);
              Date date = new Date();
              node.add(new DefaultMutableTreeNode(date.toString()));
              tree.invalidate(); //does not help to show newly added child

    I couldn't figure out why inserting a node in the valueChanged(...) method works. In all three methods no listeners are notified about the change, so you would think all three would fail.
    For a JTree using the DefaultTreeModel the nodesWereInserted(...) method needs to be called. For example, if I change your last three methods to this
    public void valueChanged(TreeSelectionEvent e) {
       insertNode((JTree) e.getSource(),
                  (MutableTreeNode) e.getPath().getLastPathComponent());
    public void treeCollapsed(TreeExpansionEvent event) {
       insertNode((JTree) event.getSource(),
                  (MutableTreeNode) event.getPath().getLastPathComponent());
    public void treeExpanded(final TreeExpansionEvent event) {
       insertNode((JTree) event.getSource(),
                  (MutableTreeNode) event.getPath().getLastPathComponent());
    public void insertNode(JTree tree, MutableTreeNode parent) {
        Date date = new Date();
        MutableTreeNode child = new DefaultMutableTreeNode(date.toString());
        int index = parent.getChildCount();
        parent.insert(child,index);
        ((DefaultTreeModel) tree.getModel())
                .nodesWereInserted(parent,new int[]{index});
    }then it works as you desire. You can (and should) of course use the DefaultTreeModel's own insert method.
    DefaultTreeModel#insertNodeInto(MutableTreeNode,MutableTreeNode, int)

  • Show + image instead of handle in jtree

    I have created jtree. I have implemented my own TreeCellRendererComponent. I set the node images as per node type. My problem is, I need to get '+' sign to nodes not expanded and '-' for those expanded instead of default handles. How do I implement it?
    public Component getTreeCellRendererComponent(
                        JTree tree, Object value, boolean isSelected,
                        boolean isExpanded, boolean isLeaf, int row,
                        boolean hasFocus) {
              super.getTreeCellRendererComponent( tree, value, isSelected,
                                  isExpanded, isLeaf, row, hasFocus);
              Component compObject = this;
              if ( value instanceof EuamDefaultMutableTreeNode ) {
                   EuamDefaultMutableTreeNode node = (EuamDefaultMutableTreeNode)value;
                   setText( node.getText() );
                   setIcon(isExpanded ? node.getOpenIcon() : node.getClosedIcon() );
                   if( bIsRightImage_ && lblRightSideIcon_ != null ) {
                        lblRightSideIcon_.setIcon(node.getRightIcon());
              else {
                   setText(value.toString());
              return compObject;
    }

    Tree node handles vary depending on which L&F u r using, java defaults to "javax.swing.plaf.metal.MetalLookAndFeel" which uses the "0-" type handles. To get the '+', '-' handles you need to be using windows L&F. Try adding this code to your apps main method:
    try{
       UIManager.setLookAndFeel(
            "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    }catch (Exception e) {}Hope this helps

  • Adding listeners for instances on other frames

    I'm trying to create a very standard menu, the type where there are links on each page that links to each other. So far I've put each menu page on a separate frame (total around 35 frames), and each link as its own instance/class. Originally I planned to create an array containing all the links like this:
    var menuLinks:Array =
                                //Main menu - frame 1
                                menuRightSide.newStoryLink,
                                menuRightSide.continueStoryLink,
                                menuRightSide.selectChapterLink,
                                menuRightSide.optionsLink,
                                menuRightSide.charactersLink,
                                menuRightSide.aboutLink,
                                //chapters menu - frame 2
                                menuRightSide.chapter1,
                                menuRightSide.chapter2,
                                menuRightSide.chapter3,
                                menuRightSide.chapter4,
                                menuRightSide.chapter5,
                                //characters - frame 3
                                menuRightSide.char1,
                                menuRightSide.char2,
                                menuRightSide.char3,
                                menuRightSide.char4,
                                menuRightSide.char5,
                                menuRightSide.char6,
                                //options - frame 4
                                menuRightSide.languageLink,
                                menuRightSide.costumeLink,
                                //function links - these exist on MULTIPLE frames/pages, eg options, characters, chapters all have backToMainLink
                                menuRightSide.backToMainLink,
                                menuRightSide.backToCharLink,
                                menuRightSide.backToOptionsLink,
                                menuRightSide.backToCostumeLink,
                                ]; //create array of links for menus
                currentPage = "main_menu";
                for each (var links:MovieClip in menuLinks)
                    links.buttonMode = true; //set links to behave like button
                    links.mouseChildren = false; //mouse over does not affect this instance's children
                    links.addEventListener(MouseEvent.ROLL_OVER, onOver);
                    links.addEventListener(MouseEvent.ROLL_OUT, onOut);
                    links.addEventListener(MouseEvent.CLICK, onClick);
                function onOver(e:MouseEvent):void //apply glow to every link
                    TweenMax.to(e.target, 1, {glowFilter:{color:0xFFFFFF, alpha:1, blurX:10, blurY:10}}); //glow effect
                function onOut(e:MouseEvent):void //remove glow on link on mouse out
                    TweenMax.to(e.target, 1, {glowFilter:{color:0xFFFFFF, alpha:0, blurX:0, blurY:0, remove:true}}); //remove glow
                function onClick(e:MouseEvent):void
                    currentPage = e.target.name;
                    if (e.target.name == "newStoryLink") { //if click newStoryLink
                        delegate.beginStory();
                    } else if (e.target.name == "optionsLink") { //if click optionsLink
                        TweenLite.to(menuRightSide, 0.2, {alpha:0, onComplete:menuRightSide.gotoAndStop, onCompleteParams:[45]}); //go to frame 45, options screen
                        TweenLite.to(menuRightSide, 0.2, {alpha:1, delay:0.2});
                    } else if (e.target.name == "charactersLink") { //if click charactersLink
                        TweenLite.to(menuRightSide, 0.2, {alpha:0, onComplete:menuRightSide.gotoAndStop, onCompleteParams:[10]}); //go to frame 10, char screen
                        TweenLite.to(menuRightSide, 0.2, {alpha:1, delay:0.2});
                    } else if (e.target.name == "aboutLink") { //if click aboutLink
                        TweenLite.to(menuRightSide, 0.2, {alpha:0, onComplete:menuRightSide.gotoAndStop, onCompleteParams:[180]}); //go to frame 180, about screen
                        TweenLite.to(menuRightSide, 0.2, {alpha:1, delay:0.2});
    Basically adding listener for every link, then simply telling AS what to do when I click the link regardless of what page I'm currently on.
    However the problem is I realized listeners can't be added for links that exist on other frames other than frame 1, because they're null I think until AS flips to that frame.
    So does anyone have an idea on how I should code this? Another challenge is some links (the ones at the bottom of the array) exist on MULTIPLE frames, but perform the exact same thing regardless of which page it was clicked on.
    Thanks.

    I arranged them on separate frames because that way I know exactly what's on each page. If I simply list out all the links on one frame, then it gets extremely messy visually.
    So if I want to add listeners on other frames, how would I do that? I know the pseudo-code:
    on frame 1:
    for (each link on frame 1) {
    link.addEventListener()
    on frame 2:
    for (each link on frame 2) {
    link.addEventListener()
    ... etc
    function onClick(e:MouseEvent):void
                    currentPage = e.target.name;
                    if (e.target.name == "newStoryLink") {
                        delegate.beginStory();
                    } else if (e.target.name == "continueStoryLink") {
                        //do something else

  • Handles in JTree

    I've made an application connecting JTree nodes with JTable.
    When I first click on any cell in JTable and then on an JTree's node handle icon, I get an Exception: "java.lang.NullPointerException".
    But, when I first click on any cell in JTable and then on an JTree's node icon, everything is OK.
    What is goin' on?

    It happens that when I click on the handle icon of the ancestor node, an Exception occurs:
    java.lang.NullPointerException
    What is goin' on?
    Here is code snippet:
    void jTree1_valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node = (DefaultMutableTreeNode)jTree1.getLastSelectedPathComponent();
    Object birac = node.getUserObject();
    TreePath niz = (TreePath)jTree1.getLeadSelectionPath();
    jTextArea1.setText("");
    if (jTree1.isVisible(niz)) {
    if (node.isLeaf()) {
    My_Class bt = (My_Class)birac;
    String tabela1 = bt.getImeTabele();
    if (qds1.isOpen()) {
    try {
    qds1.close();
    } catch (Exception ex){} } //if

  • Dynamically adding listeners

    Hi,
    I have a problem with defining some dynamic buttons in my Swing application. I could have posted it on the Swing forum, but it's actually an 'inner class' scoping problem, so I figured I'd best post it here:
    I want to do something like this:
    String[] buttons = getButtonNames(); // array of buttons
    for (int i=0; i<buttons.length; i++)
    JButton jButton = new JButton();
    // give each dynamically added button its own actionlistener
    jButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    performAction(buttons);
    jButton.setText(buttons[i]);
    buttonPanel.add(jButton, null);
    This won't work. ('must be declared final blabla'..)
    But I can't declare both buttons and i final, since i will be modified in the loop. So I guess using buttons[i] like this is not possible.
    How can I accomplish this?
    (If you think this should've been posted in the Swing forum, regardless of my reason for posting it here, please say so, and I'll repost it there.)
    Greetings,
    Ivo

    Well,
    it's actually a multitier application, and the client does not know anything about the buttons other than the name. It needs to call some function on the middle tier and pass what button was clicked. I'd rather not to it statically by predefining the listeners, since that would require a change and a rebuild of my client when I add a new buttontype to the middle tier.
    Anyone know how to do it dynamically?
    Greetings,
    Ivo

  • Adding JCheckbox as icon to JTree Nodes

    Hi,
    I need to provide a GUI for something like instllation shield. The application shows a list of modules and sub modules in a tree format. Users can select any sub modules for installation, using a checkbox ( located at icon space of a JTree, if possible ).
    The checkbox at each module indicates (i) All sub modules are selected, (ii) All sub modules are deselected, (iii) Partial selection.
    Is it possible? How to do that?
    Please help me out!
    Prashant

    Oh thank you.
    I found the stuff on the link you gave. It is helpful eventhough code is not availabale. I am planning to write the code by implementing necessary interfaces.
    Thanks again,
    Prashant

  • Adding listeners  (Web Server 6.0)

    I use the admin consol to add a second listner and it hangs each time without adding the listner. The message is cryptic that one of the parameters is not acceptable.
    I am using the following:
    id - ls2
    ip - the IP address of the machine
    Port - 443
    Servername - ?????? I thought this was the internal machine name

    Hi
    Have done any changes in java parameters. Please check it start-jvm file in https-admserv directory. And tell me got message you are getting after executing "start" script.
    regard
    franktamil

  • Jtree node refuses to collapse upon clicking handle; makeVisible() was used

    Hello,
    While creating a new node and inserting as a leaf in the JTree, I use tree.makeVisible(newTreePath) to expand the new node and make visible. (Using expandPath() will not expand if a leaf was added).
    However now the jtree node refuses to collapse upon clicking the node handle.
    How do I get it to not insist on staying open - be able to collapse manually?
    thanks,
    Anil

    This is the JNI forum. I don't believe your post fits.
    then
    can I correctly assume that any class that
    "implements Cloneable" will handle making either a
    "shallow" or "deep" ... or even "semi-shallow" clone,
    respective to the class context .. right?
    It probably does something. The implementor might not have implemented anything though. And you have no idea what they implemented.
    No idea about your other question.
    You might want to think carefully about why you are cloning though.

  • URGENT----- JTree Event

    I have a JTree with parent node---- PARENT1.
    To it are added CHILDNODE1 and CHILDNODE2.
    Another parentnode PARENT2 with CHILDNODE3 CHILDNODE4.
    PARENT1 and PARENT2 added to ROOTNODE
    JTree is added to LHS of JSplitPane
    Similar to Explorer in Windows.
    Added listeners to JTree like this
    mTree.addTreeSelectionListener(new TreeHandler(this));
    mTree.addMouseListener(new TreeHandler(this));
    where TreeHandler is a class extending MouseAdapter and implementing TreeSelectionListener.
    Overidden public void valueChanged(TreeSelectionEvent aTreeEvent)
    by calling aTreeEvent.getPath() and from the obtained path, I determine PathCount and PathComponent.
    Based on this I display Panel on RHS of JSplitPane.
    I have a situation say CHILDNODE1 is selected and corresponding Panel is displayed. If I select CHILDNODE2 with mouse, I prompt for saving changes made to CHILDNODE1 panel...So I should reselect CHILDNODE1 in JTree programmatically and not CHILDNODE2
    I have used mTree.setSelectionPath(path_of_CHILDNODE1) .
    But the problem is it is triggering an event on selection of CHILDNODE1, which I donot want to. How do I stop this????
    and also will call to mTree.setSelectionPath(aPath) trigger a TreeSelectionEvent or my event handling is wrong ?
    Thanks in advance

    If I have understood clearly ur problem, When the other cell in the tree is selected the corresponding rHS componet will be updated is that right. And wht U wanna do is to holp updationg rhs before saving previous content.
    If that is right, then y dont U ask for the save option in the treeevent itself?i mean in the overridden value chnaged function

  • Multiple JTrees

    Hi everybody!
    I've got to create something very similar to a file commander - something like dos NC or linux MC. The difference is there are my objects - called "resources" - instead of files. I've created a JFrame with two separate JPanels, each of them handling separate JTree.
    The problem is when I create o DefaultMutableTreeNode with the same user object for both JTrees, the node is shown only on the first of them. When I switch the order of adding folders, the node is visible only on the latter one.
    Can anybody help me? Thanx!

    Hi Pipzeno! I've just solved problem on my own. I've found a stupid mistake in my code. The method addFolders(Vector folders) in the class representing a JTree was removing all objects from the given Vector. So, the second JTree was given an empty Vector as the parameter.
    Anyway, Merry X-mas! :))))

  • Need Suggestion on handling events

    I have 2 caches . The 1st cache is populated with more than million records .The 2nd cache has a real time feed populating the cache and updating it quite frequently . I have a requirement of doing some calculation on 1st cache based on updates happening in 2nd cache.
    What is best way to handle the events happening on 2nd cache? Should i use backing map listeners or handle the event from client side and run a entry processor to do the calculations on Cache1 ?

    Use an EntryProcessor on Cache1 (positions) to perform the updates to Position objects. Position calculations are usually pretty simple, so the use of an EP is probably fine. You'll want to gather the list of target position keys before doing the invokeAll() call, so all the affected Positions are updated in parallel.
    As to how you trigger the EP, a listener on cache1 would be one approach. Make sure the caches are running on separate services to avoid re-entrancy issues.
    We use the EP approach for our Position updates and find we can process many tens of thousands / second using EPs.
    You'll probably also want to re-use the above ideas in order to maintain an audit trail, as this would normally be in a separate cache (i.e. not in the Positions cache) and written-behind to a db.
    If your price-change notifications are so frequent that they exceed your ability to process them (even using invokeAll on EPs), then you might want to look at some form of async processing. The CommandPattern in the Incubator is one such example; of course you could also roll your own.
    Cheers,
    Steve

  • How to identify listeners types for forms, items and events in addon wizard

    Dear users,
    I have developed a sample addon through B1DE wizards and successfully installed and connected the addon and can view menu and form of my addon. Since i am new to this, i didn't add any listeners to my form, items and events because i don't know what type of listeners to add and what coding to add after adding listeners.
    If anyone describe me how to work with listeners, i would be glad. My form has basic fields like BPcode, BPname, Docnum, Itemcode, Item name, quanity, price, total etc. Uptil now my addon form has no function of getting list of BP and Items and calculating the totals based on price and quantity but it has some basic functions like add, update,del, add print view, next record previous, record next etc. which are due to object registration and auto-code generation wizards i think.
    Please help me in adding listeners and their relevant coding.
    Thanks in advance.

    Thanks for reply, Actually I am asking about listeners in the wizard of B1DE, code generator wizard. I think you are telling me about adding listeners directly in the vb.net. Kindly, tell me first, what event type I should add for item, form etc while adding listeners during  the wizard. Or If you know some link where event types of listeners are decribed, you are more than welcome.
    Thanks,
    Farhan

  • Post Event Handler

    Hi,
    I have created a post event handler and registered it. Then i checked in the PLUGINS table, my event handler exist there. But this event handler never called after create user.
    I have added like:
    <action-handler class="xxxxx"
    entity-type="User" operation="CREATE" name="DBPostProcessEventHandler" stage="postprocess"
    Do I missing any?
    thanks
    Robb

    I've got the same problem, I follwed instruction as in 1262803.1. its ok for pre-process, but for post-process it dosn't work. Did you success?
    I also tried to unregister the pre-process EvenHandler (with command ant -f pluginregistration.xml unregister) I got info "Unregistred succesful" but handler still works.. Do I omit something?
    Regards
    Magda

Maybe you are looking for

  • How can I go back to a previous iTunes?

    I hate the new iTunes, it's version 11, I think. So many features which made manipulation of my music easy (based on size or time) are gone. I have no idea how many megs my playlist is.  That's not user friendly and makes it harder to use iTunes to b

  • [Solved] Kdenlive & Openshot crash after importing video files

    I'm not sure if the culprit is today's update, but I am having problems importing video files in Kdenlive and OpenShot. When I try to import .MTS / .MKV / .MP4 video files, both programs immediately cease to work. For example - Mediainfo: .mts file V

  • QI stock batch assignment in Process order component

    I have stock of raw material in MMBE against different batch and stock type. Suppose I have 3 batches - B1, B2, B3 for raw material R1. Now in MMBE R1 RM has stock in unrestricted stock batch B1, B2 and QI stock B3. If I am creating a process order f

  • How can I improve large deletes?

    Hi, In order to keep our database size to an acceptable level, we delete all records older than 4 hours, every 15 minutes with a delete statement like this: DELETE FROM mytable WHERE add_time < (1174391100000 - 14400000); add_time is a BIGINT contain

  • How to make table column with formula

    Hi all.. This is my class public class MyNumber{      private int num;      public int getNum(){           return num;      public void setNum( int num){           this.num = num; }Consider I design a table with FXML editor ( Scene Builder in this ca