Examples of MyProperties


Examples of de.FBEditor.struct.MyProperties

    }
    return false;
  }

  public static void saveProperties(String PROPERTIES_FILE, FBEdit fbedit) {
    MyProperties properties = new MyProperties();
    properties.setProperty("position.left",
        Integer.toString(fbedit.getLocation().x));
    properties.setProperty("position.top",
        Integer.toString(fbedit.getLocation().y));
    properties.setProperty("position.width",
        Integer.toString(fbedit.getSize().width));
    properties.setProperty("position.height",
        Integer.toString(fbedit.getSize().height));
    properties.setProperty("box.password",
        Encryption.encrypt(fbedit.getbox_password()));
    properties.setProperty("box.username", fbedit.getbox_username());
    properties.setProperty("box.address", fbedit.getbox_address());
    properties.setProperty("readOnStartup", fbedit.getRASstate());
    properties.setProperty("NoChecks", fbedit.getNoChecksState());
    properties.setProperty("language", fbedit.getLanguage());
    try {
      FileOutputStream fos = new FileOutputStream(PROPERTIES_FILE);
      properties.storeToXML(fos, "Properties for FBEditor");
      fos.close();
    } catch (FileNotFoundException filenotfoundexception) {
    } catch (IOException ioexception) {
    }
  }
View Full Code Here

Examples of de.FBEditor.struct.MyProperties

  public FBEdit() {
   
    String jvm_version = System.getProperty("java.version");
   
    // Try to load and set properties
    properties = new MyProperties();
    Utils.createDefaultProperties(properties); // Set Properties Default Values // 22.02.2014
    boolean loadProp = Utils.loadProperties(properties, PROPERTIES_FILE);

    if (loadProp) {
View Full Code Here

Examples of org.apache.wink.providers.jackson.internal.jaxb.polymorphic.MyProperties

    public static class MyJAXBObjectResource {

        @GET
        public MyJAXBObject getMyJAXBObject() throws IOException {
            MyJAXBObject p = new MyJAXBObject();
            MyProperties myProps = new MyProperties();
            myProps.addProperty("I rock?", "Yes, yes I do.");
            p.setConfiguration(myProps);
            return p;
        }
View Full Code Here

Examples of org.apache.wink.providers.jackson.internal.jaxb.polymorphic.MyProperties

    public static class MyJAXBObjectResource {

        @GET
        public MyJAXBObject getMyJAXBObject() throws IOException {
            MyJAXBObject p = new MyJAXBObject();
            MyProperties myProps = new MyProperties();
            myProps.addProperty("I rock?", "Yes, yes I do.");
            p.setConfiguration(myProps);
            return p;
        }
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.