Examples of addListener()


Examples of com.jme3.animation.AnimControl.addListener()

        this.model = model;
        if (model != null) {
            AnimControl control = model.getControl(AnimControl.class);
            this.animControl = control;
            GameNameGoesHere app = GameNameGoesHere.getApp();
            control.addListener(app.getAnimManager());
            createChannels();

            animControl.getChannel(AnimConf.UPPER_BODY).setAnim("Walk");

            // animControl.getChannel(AnimConf.UPPER_BODY).setAnim("Idle"); //need init animation
View Full Code Here

Examples of com.jme3.input.InputManager.addListener()

    @Override
    public void initialize(AppStateManager stateManager, Application app) {
        if (!super.isInitialized()){
            InputManager inputManager = app.getInputManager();
            inputManager.addMapping("ScreenShot", new KeyTrigger(KeyInput.KEY_SYSRQ));
            inputManager.addListener(this, "ScreenShot");

            List<ViewPort> vps = app.getRenderManager().getPostViews();
            ViewPort last = vps.get(vps.size()-1);
            last.addProcessor(this);
View Full Code Here

Examples of com.log4jviewer.logfile.LogFileLoader.addListener()

                IPreferenceStore store = Activator.getInstance().getPreferenceStore();
                String logFilePattern = store.getString(DefaultPreferences.LogFilePreferences.getId());
                logger.debug("Log file pattern: {} was loaded.", logFilePattern);

                LogFileLoader logFileLoader = new LogFileLoader();
                logFileLoader.addListener(logView.getLogList());
                logFileLoader.load(selectedFile, logFilePattern);
                logFileLoader.removeListener(logView.getLogList());
            }
        } catch (FileNotFoundException e) {
            String errorMessage = "Log file wasn't found!";
View Full Code Here

Examples of com.lowagie.text.rtf.parser.RtfParser.addListener()

            throw new DocumentException("The document must be open to import RTF documents.");
        }
      RtfParser rtfImport = new RtfParser(this.document);
      if(events != null) {
        for(int idx=0;idx<events.length;idx++) {
            rtfImport.addListener(events[idx]);
        }
      }
      rtfImport.importRtfDocument(documentSource, this.rtfDoc);
    }
   
View Full Code Here

Examples of com.mxgraph.model.mxIGraphModel.addListener()

    view.addListener(mxEvent.SCALE, resetHandler);
    view.addListener(mxEvent.TRANSLATE, resetHandler);
    view.addListener(mxEvent.SCALE_AND_TRANSLATE, resetHandler);

    mxIGraphModel model = graphComponent.getGraph().getModel();
    model.addListener(mxEvent.CHANGE, resetHandler);

    marker = new mxCellMarker(graphComponent)
    {
      /**
       *
 
View Full Code Here

Examples of com.mxgraph.swing.util.mxMorphing.addListener()

          finally
          {
            mxMorphing morph = new mxMorphing(graphComponent, 20,
                1.2, 20);

            morph.addListener(mxEvent.DONE, new mxIEventListener()
            {

              public void invoke(Object sender, mxEventObject evt)
              {
                graph.getModel().endUpdate();
View Full Code Here

Examples of com.mxgraph.view.mxGraphView.addListener()

    // Repaint after the following events is handled via
    // mxGraph.repaint-events
    // The respective handlers are installed in mxGraph.setView
    mxGraphView view = graph.getView();

    view.addListener(mxEvent.SCALE, updateHandler);
    view.addListener(mxEvent.TRANSLATE, updateHandler);
    view.addListener(mxEvent.SCALE_AND_TRANSLATE, updateHandler);
    view.addListener(mxEvent.UP, updateHandler);
    view.addListener(mxEvent.DOWN, updateHandler);
View Full Code Here

Examples of com.mysema.query.sql.SQLQuery.addListener()

    public void test() throws IOException, SecurityException,
            IllegalArgumentException, NoSuchMethodException,
            IllegalAccessException, InvocationTargetException {
        SQLQuery query = new SQLQuery(connection, new DerbyTemplates());
        query.from(survey);
        query.addListener(new TestLoggingListener());
        new QueryMutability(query).test(survey.id, survey.name);
    }

    @Test
    public void Clone() {
View Full Code Here

Examples of com.mysema.query.sql.dml.SQLDeleteClause.addListener()

        return sqlInsertClause;
    }

    protected SQLDeleteClause delete(RelationalPath<?> e) {
        SQLDeleteClause sqlDeleteClause = new SQLDeleteClause(connection, configuration, e);
        sqlDeleteClause.addListener(new TestLoggingListener());
        return sqlDeleteClause;
    }

    protected SQLMergeClause merge(RelationalPath<?> e) {
        SQLMergeClause sqlMergeClause = new SQLMergeClause(connection, configuration, e);
View Full Code Here

Examples of com.mysema.query.sql.dml.SQLInsertClause.addListener()

        return sqlUpdateClause;
    }

    protected SQLInsertClause insert(RelationalPath<?> e) {
        SQLInsertClause sqlInsertClause = new SQLInsertClause(connection, configuration, e);
        sqlInsertClause.addListener(new TestLoggingListener());
        return sqlInsertClause;
    }

    protected SQLInsertClause insert(RelationalPath<?> e, AbstractSQLSubQuery<?> sq) {
        SQLInsertClause sqlInsertClause = new SQLInsertClause(connection, configuration, e, sq);
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.