Examples of BasicController


Examples of diva.canvas.toolbox.BasicController

     */
    public void createFigures() {
        FigureLayer layer = graphicsPane.getForegroundLayer();

        // Create a controller to do the work.
        BasicController controller = new BasicController(graphicsPane);
        SelectionInteractor defaultInteractor = controller
                .getSelectionInteractor();
        BoundsManipulator manip = new BoundsManipulator();
        defaultInteractor.setPrototypeDecorator(manip);

        // Create a custom rectangle and make it draggable
View Full Code Here

Examples of javazoom.jlgui.basicplayer.BasicController

        removeAll();
        bundle = ResourceBundle.getBundle("plugins/audioPlayer/javazoom/jlgui/player/amp/util/ui/device");
        setBorder(new TitledBorder(getResource("title")));
        BoxLayout layout = new BoxLayout(this, BoxLayout.Y_AXIS);
        setLayout(layout);
        BasicController controller = null;
        if (player != null) controller = player.getController();
        if ((controller != null) && (controller instanceof BasicPlayer))
        {
            bplayer = (BasicPlayer) controller;
            List devices = bplayer.getMixers();
View Full Code Here

Examples of javazoom.jlgui.basicplayer.BasicController

    public void play(String filename) {
// Instantiate BasicPlayer.
        BasicPlayer player = new BasicPlayer();
// BasicPlayer is a BasicController.
        BasicController control = (BasicController) player;
// Register BasicPlayerTest to BasicPlayerListener events.
// It means that this object will be notified on BasicPlayer
// events such as : opened(...), progress(...), stateUpdated(...)
        player.addBasicPlayerListener(this);

        try { // Open file, or URL or Stream (shoutcast, icecast) to play.
            control.open(new File(filename));

// control.open(new URL("http://yourshoutcastserver.com:8000"));
// Start playback in a thread. control.play();
// If you want to pause/resume/pause the played file then
// write a Swing player and just call control.pause(),
// control.resume() or control.stop().
// Use control.seek(bytesToSkip) to seek file
// (i.e. fast forward and rewind). seek feature will
// work only if underlying JavaSound SPI implements
// skip(...). True for MP3SPI and SUN SPI's
// (WAVE, AU, AIFF). // Set Volume (0 to 1.0). control.setGain(0.85);
// Set Pan (-1.0 to 1.0).
            control.setPan(0.0);
            control.play();
        } catch (BasicPlayerException e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.olat.core.gui.control.controller.BasicController

    ContextEntry ce = BusinessControlFactory.getInstance().createContextEntry(ores);
   
    WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ce, getWindowControl());   
   
    //Simple way to "register" the new ContextEntry although only a VelocityPage was flipped.
    Controller dummy = new BasicController(ureq, bwControl) {
   
      @Override
      protected void event(UserRequest ureq, Component source, Event event) {
      // TODO Auto-generated method stub
   
      }
   
      @Override
      protected void doDispose() {
      // TODO Auto-generated method stub
   
      }
   
    };
    dummy.dispose();
    dummy = null;
  }
View Full Code Here

Examples of org.olat.core.gui.control.controller.BasicController

    super(name);
    self = this;
    // Create inner link dispatch controller as a hack to catch event that
    // should bypass the form infrastructure. This inner controller is
    // disposed by this form item.
    dispatchLinkController = new BasicController(ureq, wControl) {
      @Override
      protected void doDispose() {
        // nothing to dispose
      }
View Full Code Here

Examples of org.strecks.action.basic.BasicController

    expect(request.getAttribute(Globals.ERROR_KEY)).andReturn(null);

    replay(request);

    BasicController controller = new BasicController();
    assert false == controller.hasErrors(new TestContextImpl(request));

    verify(request);

  }
View Full Code Here

Examples of org.strecks.action.basic.BasicController

    expect(request.getAttribute(Globals.ERROR_KEY)).andReturn(new ActionErrors());

    replay(request);

    BasicController controller = new BasicController();
    assert false == controller.hasErrors(new TestContextImpl(request));

    verify(request);

  }
View Full Code Here

Examples of org.strecks.action.basic.BasicController

    actionErrors.add("property", new ActionMessage("key"));
    expect(request.getAttribute(Globals.ERROR_KEY)).andReturn(actionErrors);

    replay(request);

    BasicController controller = new BasicController();
    assert true == controller.hasErrors(new TestContextImpl(request));

    verify(request);

  }
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.