Examples of PropertyManager


Examples of aohara.utilities.PropertyManager

//////////////////////////////////Constructor///////////////////////////////////
    public OptionsWindow(TrustGrapher trustGrapher) {
        this.trustGrapher = trustGrapher;
        initComponents();

        PropertyManager config = trustGrapher.getPropertyManager();

        if (config.containsKey(DELAY)) { //Load current delay from properties
            if (config.getProperty(DELAY).equals("" + EventPlayer.DEFAULT_DELAY)) { //If the current delay is the default delay
                defaultDelayButton.doClick();
                delayField.setText("");
            } else { //Otherwise, the delay is custom
                customDelayButton.doClick();
                delayField.setText(config.getProperty(DELAY));
            }
        }
        if (config.containsKey(SCRUB_MODE)) { //Load current playbackSlider mode from properties
            if (Boolean.parseBoolean(config.getProperty(SCRUB_MODE))) { //If the mode is set to scrub
                scrubButton.doClick();
            } else { //Othwerise, it must be set to drag & drop
                dragDropButton.doClick();
            }
        }
View Full Code Here

Examples of com.arjuna.common.util.propertyservice.PropertyManager

    private boolean isRecoveryManagerRunning() throws Exception
    {
        boolean active = false;
        int port = 0;
        PropertyManager pm = PropertyManagerFactory.getPropertyManager("com.arjuna.ats.propertymanager", "recoverymanager");

        if ( pm != null )
        {
            String portStr = pm.getProperty(com.arjuna.ats.arjuna.common.Environment.RECOVERY_MANAGER_PORT);

            if (portStr != null)
            {
                try
                {
View Full Code Here

Examples of com.exedosoft.plat.gene.jquery.PropertyManager

      return NO_FORWARD;
    }
   
    DOBO linkBO = DOBO.getDOBOByID(dobouid);
   
    PropertyManager pm = new PropertyManager();
    pm.buildRelation(colName, linkBO);

    return DEFAULT_FORWARD;
  }
View Full Code Here

Examples of com.sun.faces.generate.PropertyManager

    // ---------------------------------------------------------- Public Methods


    public void execute() throws BuildException {

        PropertyManager manager = PropertyManager.newInstance(generatorConfig);
        String jspVersion =
              manager.getProperty(PropertyManager.JSP_VERSION_PROPERTY);

        if ("2.1".equals(jspVersion)) {
            setGeneratorClass(GENERATOR_21_CLASS);
        } else if ("1.2".equals(jspVersion)) {
            setGeneratorClass(GENERATOR_12_CLASS);
View Full Code Here

Examples of com.sun.org.apache.xerces.internal.impl.PropertyManager

    }
  }
 
  public static void staxCoursorParse() throws ParserConfigurationException, SAXException, IOException, XMLStreamException
  {
    XMLStreamReader staxCoursorImpl = new XMLStreamReaderImpl(new FileInputStream(xmlFile), new PropertyManager(1));
   
    int element = staxCoursorImpl.next();
    getEventTypeString(element);
    System.out.println(getEventTypeString(element));
    System.out.println(staxCoursorImpl.getLocalName());
View Full Code Here

Examples of com.tacitknowledge.flip.properties.PropertyManager

     *      for {@link ContextManager} and {@link PropertyManager} creation.
     */
    public FeatureServiceImpl(final Environment environment)
    {
        contextManager = new ContextManager(environment);
        propertyManager = new PropertyManager(environment);
    }
View Full Code Here

Examples of mae.util.PropertyManager

    }

    void loadProps() {
        Dimension t = getToolkit().getScreenSize();
        int W = 560, H = 430, x = t.width-W, y = t.height-H-25;
        pm = new PropertyManager("mae", "Fide", getClass());
        frm.setBounds(pm.getBounds("frame", x, y, W, H));
        Font f = new Font("Monospaced", 0, 12);
        src.setFont(pm.getFont("font", f));
        setTAB(pm.getInteger("tab.size", 4));
        juniorCoderCodeCompletation = Boolean.parseBoolean(pm.getProperty("JuniorCoder.CodeCompletation",true+""));
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.PropertyManager

    this.value = value;
  }

  public Object execute(CommandContext commandContext) {

    final PropertyManager propertyManager = commandContext.getPropertyManager();

    PropertyEntity property = propertyManager
      .findPropertyById(name);
    if(property != null) {
      // update
      property.setValue(value);

    } else {
      // create
      property = new PropertyEntity(name, value);
      propertyManager.insert(property);

    }

    return null;
  }
View Full Code Here

Examples of org.joshy.sketch.property.PropertyManager

        modeHelpers.add(new PresoModeHelper(this));
        modeHelpers.add(new PixelModeHelper(this));
        modeHelpers.add(new TiledPixelModeHelper(this));
        defaultModeHelper = modeHelpers.get(0);

        propMan = new PropertyManager();
        if(!SCRIPTS_DIR.exists()) {
            SCRIPTS_DIR.mkdirs();
            try {
                u.streamToFile(ScriptTools.class.getResourceAsStream("demo_script.js"),new File(SCRIPTS_DIR,"demo_script.js"));
            } catch (Exception ex) {
View Full Code Here

Examples of org.olat.properties.PropertyManager

  /**
   * @see org.olat.user.UserManager#setUserCharset(org.olat.core.id.Identity, java.lang.String)
   */
  public void setUserCharset(Identity identity, String charset){
      PropertyManager pm = PropertyManager.getInstance();
      Property p = pm.findProperty(identity, null, null, null, CHARSET);
     
      if(p != null){
          p.setStringValue(charset);
          pm.updateProperty(p);
    } else {
          Property newP = pm.createUserPropertyInstance(identity, null, CHARSET, null, null, charset, null);
          pm.saveProperty(newP);
      }
  }
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.