Package net.sf.jpluck.util

Examples of net.sf.jpluck.util.Period


    public Period getAutoUpdatePeriod() {
        Preferences autoUpdate = prefs.node("autoupdate");
        Period.Time from = new Period.Time(autoUpdate.getInt("from.hour", 0), autoUpdate.getInt("from.minute", 0));
        Period.Time to = new Period.Time(autoUpdate.getInt("to.hour", 23), autoUpdate.getInt("to.minute", 59));
        return new Period(from, to);
    }
View Full Code Here


            conf.setAutoUpdateJXLs(autoUpdatePanel.getFiles());
            conf.setAutoUpdatePeriodEnabled(autoUpdatePeriodCheck.isSelected());
            Period.Time from = Period.Time.fromDate((Date) autoUpdateFromSpinner.getValue());
            Period.Time to = Period.Time.fromDate((Date) autoUpdateToSpinner.getValue());
            conf.setAutoUpdatePeriod(new Period(from, to));
            conf.setAutoUpdateInterval(((Integer) autoUpdateIntervalSpinner.getValue()).intValue());

            activeTab = tabbedPane.getSelectedIndex();
            return true;
        } catch (ValidationException e) {
View Full Code Here

        cookiesTxtText.setText(conf.getCookiesTxt());
        pluckthisJXLText.setText(conf.getPluckThisJXL());

        autoUpdatePanel.setFiles(conf.getAutoUpdateJXLs());
        autoUpdatePeriodCheck.setSelected(conf.isAutoUpdatePeriodEnabled());
        Period period = conf.getAutoUpdatePeriod();
        autoUpdateFromSpinner.setValue(period.getFrom().toDate());
        autoUpdateToSpinner.setValue(period.getTo().toDate());
        autoUpdateIntervalSpinner.setValue(new Integer(conf.getAutoUpdateInterval()));

        lafBox.selectCurrent();
    lafListener = new LAFListener();
    lafBox.addItemListener(lafListener);
View Full Code Here

TOP

Related Classes of net.sf.jpluck.util.Period

Copyright © 2018 www.massapicom. 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.