Examples of switchTo()


Examples of ch.entwine.weblounge.common.content.file.FileResource.switchTo()

    Language language = request.getLanguage();

    // Store the result in the jsp page context
    try {
      file = (FileResource) repository.get(uri);
      file.switchTo(language);

      Language contentLanguage = null;
      contentLanguage = LanguageUtils.getPreferredContentLanguage(file, request, site);
      if (contentLanguage == null) {
        logger.warn("File {} does not have suitable content", file);
View Full Code Here

Examples of ch.entwine.weblounge.common.content.image.ImageResource.switchTo()

      for (int i = 0; i < result.getItems().length; i++) {
        uri = new ImageResourceURIImpl(site, null, result.getItems()[i].getId());
        if (repository.exists(uri)) {
          image = (ImageResource) repository.get(uri);
          language = LanguageUtils.getPreferredLanguage(image, request, site);
          image.switchTo(language);
          imageContent = image.getContent(language);

          linkToImage = UrlUtils.concat("/weblounge-images", image.getIdentifier(), imageContent.getFilename());

          // Find the image style
View Full Code Here

Examples of ch.entwine.weblounge.common.content.movie.MovieResource.switchTo()

    MovieContent videoContent = null;

    // Store the result in the jsp page context
    try {
      video = (MovieResource) repository.get(uri);
      video.switchTo(language);
      videoContent = video.getContent(language);
      if (videoContent == null)
        videoContent = video.getOriginalContent();
    } catch (ContentRepositoryException e) {
      logger.warn("Error trying to load video resource " + uri + ": " + e.getMessage(), e);
View Full Code Here

Examples of ch.entwine.weblounge.common.content.page.Page.switchTo()

    // Store the result in the jsp page context
    try {
      page = (Page) repository.get(uri);
      language = LanguageUtils.getPreferredLanguage(page, request, site);
      if (language != null)
        page.switchTo(language);
    } catch (ContentRepositoryException e) {
      logger.warn("Error trying to load page " + uri + ": " + e.getMessage(), e);
      return SKIP_BODY;
    }
View Full Code Here

Examples of ch.entwine.weblounge.common.content.page.Page.switchTo()

      Page page = pageItem.getPage();

      // TODO: Can the page be accessed?

      // Set the page's language to the feed language
      page.switchTo(language);

      // Tag the cache entry
      response.addTag(CacheTag.Resource, page.getIdentifier());

      // If this is to become the most recent entry, let's set the feed's
View Full Code Here

Examples of com.impossibl.postgres.datetime.instants.Instant.switchTo()

      Instant inst = (Instant) val;

      if (inst.getType() != Instant.Type.Time) {

        return inst.switchTo(zone).toDate();

      }
    }

    throw createCoercionException(val.getClass(), Date.class);
View Full Code Here

Examples of freemarker.core.parser.FMLexer.SwitchTo()

        SimpleCharStream scs = new SimpleCharStream(
                new StringReader("(" + s + ")"), caller.getBeginLine(),
                caller.getBeginColumn(), s.length() + 2);
        //        FMLexer token_source = new FMLexer(scs);
        FMLexer token_source = new FMLexer(scs);
        token_source.SwitchTo(FMConstants.EXPRESSION);
        FMParser parser = new FMParser(token_source);
        parser.setTemplate(caller.getTemplate());
        Expression exp = null;
        try {
            exp = parser.Exp();
View Full Code Here

Examples of org.iremake.client.ui.StartScreen.switchTo()

        FrameManager.getInstance().setClosingListener(new FrameCloseListener() {
            @Override
            public void close() {
                UIFrame frame = new StartScreen();
                frame.switchTo();
            }
        });
    }

    /**
 
View Full Code Here

Examples of org.iremake.client.ui.StartScreen.switchTo()

        JButton exitButton = Button.NormalExit.create();
        exitButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                UIFrame frame = new StartScreen();
                frame.switchTo();
            }
        });

        ButtonBar bar = new ButtonBar();
        bar.add(newButton, loadButton, saveButton, exitButton);
View Full Code Here

Examples of org.iremake.client.ui.StartScreen.switchTo()

            EventQueue.invokeLater(new Runnable() {
                @Override
                public void run() {
                    FrameManager.getInstance().initialize();
                    UIFrame screen = new StartScreen();
                    screen.switchTo();
                    // do not want the music to start before the screen
                    if (Option.Music_Mute.getBoolean() == false) {
                        MusicManager.start();
                    }
                }
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.