Examples of actionPerformed()


Examples of flow.netbeans.markdown.MarkdownViewHtmlAction.actionPerformed()

        @Override
        public void actionPerformed(ActionEvent e) {
            MarkdownDataObject dataObject = context.lookup(MarkdownDataObject.class);
            MarkdownViewHtmlAction viewAction = new MarkdownViewHtmlAction(dataObject);
            viewAction.actionPerformed(null);
        }
    }
}
View Full Code Here

Examples of gov.nasa.arc.mct.gui.ContextAwareAction.actionPerformed()

        Mockito.verifyZeroInteractions(mockWindowManager);
        Mockito.verifyZeroInteractions(mockContentArea);
        Mockito.verifyZeroInteractions(mockViewInfo);
       
        // Perform action
        refresh.actionPerformed(mockEvent);
       
        // Verify that view was updated
        Mockito.verify(mockViewInfo).createView(newerComponent);
        Mockito.verify(mockContentArea).setOwnerComponentCanvasManifestation(newerView);
       
View Full Code Here

Examples of gov.nasa.arc.mct.gui.GroupAction.RadioAction.actionPerformed()

    RadioAction radioActionThat = (RadioAction) menuItem.getAction();
    Assert.assertNotNull(radioActionThat);
    Assert.assertTrue(radioActionThat.isEnabled());
    Assert.assertFalse(radioActionThat.isSelected());

    radioActionThat.actionPerformed(new ActionEvent(testMenu, 0, null));
    testMenu.fireMenuDeselected();
    resetTargetComponent(housingB);
  }
 
  @Test(enabled=true, dependsOnMethods = { "testTargetContextFirstRadioMenuSelected" })
View Full Code Here

Examples of it.uniroma1.dptu.stan.model.column.wedge.WedgeData.actionPerformed()

      ((ColumnAction)action).apply(this);
  else if(action instanceof ActionModifyWedge) {
      ActionModifyWedge amw = (ActionModifyWedge)action;
      WedgeData wedge = amw.getWedge();
      if(getWedges().contains(wedge))
    wedge.actionPerformed(observable, action);
  }
    }


    public static final String  TAG_COLUMN  = "column";
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

        updateName();
      }
      public void updateName() {
        name = tfName.getText();
        if (name.equals("")) name = null;
        actionListener.actionPerformed(new ActionEvent(pane, 1, (name==null) ? resources.getString("UnnamedMapper") : name));
      }
    });

    table.addSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent event) {
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

      }
    });

    if (listener!=null) ok.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        actionListener.actionPerformed(new ActionEvent(pane, 2,""));
      }
    });
   
    return pane;
  }
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

    }

    private void fireEvent(ActionEvent e) {
        for (int i = 0; i < listeners.size(); i++) {
            ActionListener l = (ActionListener) listeners.get(i);
            l.actionPerformed(e);
        }
    }
}

class Field {
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

                    Globals.lang("This entry has no BibTeX key. Generate key now?"),
                    Globals.lang("Download file"), JOptionPane.OK_CANCEL_OPTION,
                    JOptionPane.QUESTION_MESSAGE);
            if (answer == JOptionPane.OK_OPTION) {
                ActionListener l = entryEditor.generateKeyAction;
                l.actionPerformed(null);
                bibtexKey = entryEditor.getEntry().getCiteKey();
            }
        }
        DownloadExternalFile def = new DownloadExternalFile(frame,
                frame.basePanel().metaData(), bibtexKey);
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

                "Pattern");
        ArrayList list = (ArrayList) listeners.clone();
        ActionListener listener;
        for (int i = 0; i < list.size(); i++) {
            listener = (ActionListener) list.get(i);
            listener.actionPerformed(event);
        }
    }
}
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

    }
   
    private void fireActionEvent(ActionEvent evt) {
        for (Enumeration en = listeners.elements(); en.hasMoreElements();) {
            ActionListener l = (ActionListener)en.nextElement();
            l.actionPerformed(evt);
        }
    }
   
    private void createChooser() {
        if(chooser == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.