Examples of ConfigBean


Examples of club.beans.ConfigBean

        float duration = Float.parseFloat(tfTime.getText());
        String venue = tfVenue.getText();
        int type = ((EventTypeBean)cbbEventType.getSelectedItem()).getEventType();
        double fee = Double.parseDouble(tfFee.getText());
        DataConfig dataConfig = new DataConfig();
        ConfigBean config = dataConfig.readConfigFile();
        int adminID = config.getAdminID();
       
        int status = ((EventStatusBean)cbbStatus.getSelectedItem()).getID();
        double cost = 1;
        String name = tfName.getText();
        if (status == -1 && dataEvent.isRemovable(currentID)==false){
View Full Code Here

Examples of club.beans.ConfigBean

    //Check if the config file is exist or not and work with it
    private boolean initConfig() {
        DataConfig dataConfig = new DataConfig();
        if (dataConfig.isConfigFileExist()) {
            //System.out.println("Exist, now should try to read the config File");
            ConfigBean configBean;
            //read object from config file
            configBean = dataConfig.readConfigFile();
            if (configBean != null) {
                //start checking object
                // System.out.println("not null");
                if (DataConfig.IsValidDBInfo(configBean)) {
                    //db info is ok, now check the admin
                    if (dataConfig.IsValidAdminInfo(configBean)) {
                        //admin info ok, now we should clear ther admin info then open the main form
                        //configBean.setAdminID(-1);
                        configBean.setAdminAccount("");
                        dataConfig.writeConfigFile(configBean);
                        return true;
                    } else {
                        //admin info is not ok, open login dialog
                        (new Login()).setVisible(true);
View Full Code Here

Examples of club.beans.ConfigBean

    private void CheckfeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CheckfeeActionPerformed
        // TODO add your handling code here:
        DataMember dt=new DataMember();
        DataConfig dataConfig = new DataConfig();
        ConfigBean config = dataConfig.readConfigFile();
        int adminID = config.getAdminID();
        dt.checkfee(adminID);
    }//GEN-LAST:event_CheckfeeActionPerformed
View Full Code Here

Examples of com.avast.syringe.config.ConfigBean

                    typeName = typeCls.getName();
                } else {
                    name = typeName = cls.getName();
                }

                ConfigBean cfgBeanAnnot = cls.getAnnotation(ConfigBean.class);
                if (cfgBeanAnnot != null && !"".equals(cfgBeanAnnot.value())) {
                    simpleName = cfgBeanAnnot.value();
                } else {
                    simpleName = cls.getSimpleName();
                }

                builderMethodName = "new" + simpleName;
View Full Code Here

Examples of com.liusoft.dlog4j.beans.ConfigBean

      return null;
    return (ConfigBean)namedUniqueResult("GET_CONFIG", new Object[]{key, new Integer(site_id)});
  }

  public static Date dateValue(int site_id, String key) {
    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?null:cb.dateValue();
  }
View Full Code Here

Examples of com.liusoft.dlog4j.beans.ConfigBean

  protected static int intValue(int site_id, String key) {
    return intValue(site_id, key, -1);
  }

  public static int intValue(int site_id, String key, int defaultValue) {
    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?defaultValue:cb.intValue();
  }
View Full Code Here

Examples of com.liusoft.dlog4j.beans.ConfigBean

    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?defaultValue:cb.intValue();
  }

  public static String stringValue(int site_id, String key) {
    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?null:cb.stringValue();
  }
View Full Code Here

Examples of com.liusoft.dlog4j.beans.ConfigBean

    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?null:cb.stringValue();
  }

  public static Timestamp timestampValue(int site_id, String key) {
    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?null:cb.timestampValue();
  }
View Full Code Here

Examples of com.liusoft.dlog4j.beans.ConfigBean

    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?null:cb.timestampValue();
  }

  public static Time timeValue(int site_id, String key) {
    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?null:cb.timeValue();
  }
View Full Code Here

Examples of com.openkm.openoffice.bean.ConfigBean

    private ConfigFile configFile;

    /** Creates new form Configuration */
    public ConfigForm(ConfigFile configFile) throws OKMException {
        this.configFile = configFile;
        ConfigBean configBean = configFile.read();
        initComponents();
        setLocationByPlatform(true);
        setLocationRelativeTo(getParent());
        hostInput.setText(configBean.getHost());
        userInput.setText(configBean.getUser());
        passwordInput.setText(configBean.getPassword());

        // I18N Translations
        setTitle(OpenKMAddOn.get().getLang().getString("config.title"));
        userLabel.setText(OpenKMAddOn.get().getLang().getString("config.user"));
        passwordLabel.setText(OpenKMAddOn.get().getLang().getString("config.password"));
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.