Examples of Settings


Examples of com.commafeed.frontend.model.Settings

  @Path("/settings")
  @GET
  @UnitOfWork
  @ApiOperation(value = "Retrieve user settings", notes = "Retrieve user settings", response = Settings.class)
  public Response getSettings(@SecurityCheck User user) {
    Settings s = new Settings();
    UserSettings settings = userSettingsDAO.findByUser(user);
    if (settings != null) {
      s.setReadingMode(settings.getReadingMode().name());
      s.setReadingOrder(settings.getReadingOrder().name());
      s.setViewMode(settings.getViewMode().name());
      s.setShowRead(settings.isShowRead());

      s.setEmail(settings.isEmail());
      s.setGmail(settings.isGmail());
      s.setFacebook(settings.isFacebook());
      s.setTwitter(settings.isTwitter());
      s.setGoogleplus(settings.isGoogleplus());
      s.setTumblr(settings.isTumblr());
      s.setPocket(settings.isPocket());
      s.setInstapaper(settings.isInstapaper());
      s.setBuffer(settings.isBuffer());
      s.setReadability(settings.isReadability());

      s.setScrollMarks(settings.isScrollMarks());
      s.setTheme(settings.getTheme());
      s.setCustomCss(settings.getCustomCss());
      s.setLanguage(settings.getLanguage());
      s.setScrollSpeed(settings.getScrollSpeed());
    } else {
      s.setReadingMode(ReadingMode.unread.name());
      s.setReadingOrder(ReadingOrder.desc.name());
      s.setViewMode(ViewMode.title.name());
      s.setShowRead(true);
      s.setTheme("default");

      s.setEmail(true);
      s.setGmail(true);
      s.setFacebook(true);
      s.setTwitter(true);
      s.setGoogleplus(true);
      s.setTumblr(true);
      s.setPocket(true);
      s.setInstapaper(true);
      s.setBuffer(true);
      s.setReadability(true);

      s.setScrollMarks(true);
      s.setLanguage("en");
      s.setScrollSpeed(400);
    }
    return Response.ok(s).build();
  }
View Full Code Here

Examples of com.data2semantics.yasgui.client.settings.Settings

   * Set history checkpoint, normally called -after- executing a change / operation (e.g. after adding a new tab)
   * @throws IOException
   */
  public void setHistoryCheckpoint() {
    if (historyEnabled) {
      Settings currentSettings = view.getSettings().clone();
     
      //we don't want this stuff in our history: this might explode our memory when using query for lots of times during 1 session
      currentSettings.clearQueryResults();
      String currentSettingsString = currentSettings.toString();
      if (currentSettingsString.equals(previousCheckpointSettings) == false) {
        //only add new checkpoint when the settings are different than the last one
        previousCheckpointSettings = currentSettingsString;
        JsMethods.pushHistoryState(currentSettingsString, view.getSettings().getBrowserTitle(), "");
      }
View Full Code Here

Examples of com.epsilon5.client.settings.Settings

    public void configure(Binder binder) {
        try {
            final JAXBContext context = JAXBContext.newInstance(Settings.class, World.class);
            final Unmarshaller um = context.createUnmarshaller();

            final Settings settings = (Settings) um.unmarshal(new File("description/settings.xml"));
            binder.bind(WindowSettings.class).toInstance(settings.getWindow());
            binder.bind(NetworkSettings.class).toInstance(settings.getNetwork());
            binder.bind(PlayerSettings.class).toInstance(settings.getPlayer());

            final World world = (World) um.unmarshal(new File("description/world.xml"));
            binder.bind(Sprites.class).toInstance(world.getSprites());

        } catch (JAXBException e) {
View Full Code Here

Examples of com.eviware.soapui.model.settings.Settings

      {
        e.printStackTrace();
      }
    }

    Settings result = super.initSettings( fileName );

    if( !fileName.equals( fn ) )
      setSettingsFile( fn );

    return result;
View Full Code Here

Examples of com.google.gwt.query.client.plugins.ajax.Ajax.Settings

      }});
  }

  public void testAjaxJsonPost() {
    delayTestFinish(5000);
    Settings s = Ajax.createSettings()
      .setUrl(echoUrl)
      .setData(json)
      .setDataType("json")
      .setUsername("testuser")
      .setPassword("testpassword");
View Full Code Here

Examples of com.griddynamics.genesis.tools.settings.Settings

                                        @Named("description") String description){
     
      Assert.assertTrue(request.checkStatusCode200(), "Status code is " + request.getResponse().getStatusCode() + ", but must be 200");

      List<Settings> settingsList = Arrays.asList(request.getResponseObject(Settings[].class));
      Settings expectedSettings = new Settings(name, defValue, readOnly, description);
       Assert.assertTrue(settingsList.contains(expectedSettings));
    }
View Full Code Here

Examples of com.groovesquid.gui.Settings

        } catch (InstantiationException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
        settings = new Settings();
        about = new About();

        // Update Checker
        new UpdateCheckThread().start();
       
View Full Code Here

Examples of com.ribomation.droidAtScreen.Settings

    this.app = app;
    this.device = device;
    this.log = Logger.getLogger(DeviceFrame.class.getName() + ":" + device.getName());
    log.debug(String.format("DeviceFrame(device=%s)", device));

    Settings cfg = app.getSettings();
    setScale(cfg.getPreferredScale());
    setLandscapeMode(cfg.isLandscape());

    setTitle(device.getName());
    setIconImage(GuiUtil.loadIcon("device").getImage());
    setResizable(true);
View Full Code Here

Examples of com.sijobe.spc.util.Settings

    */
   public void setWaypoint(String name, Player player) {
      if (name == null || player == null) {
         return;
      }
      Settings config = super.loadSettings(player);
      Coordinate position = player.getPosition();
      String value = position.getX() + "," +
                     position.getY() + "," +
                     position.getZ() + "," +
                     player.getYaw() + "," +
                     player.getPitch();
      config.set((PREFIX + name).toLowerCase(), value);
   }
View Full Code Here

Examples of com.smoker.imagesearch.model.Settings

  }

  private void createAndShowMainGUI()
  {
    imageDisplay = new ImageDisplay(this);
    settings = new Settings();
    if (indexCreator.isIndexFiled())
    {
      load();
    }
    else
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.