Package mate00.parafia.net

Examples of mate00.parafia.net.MinistrantWorker


       
        mDelay = parseNumberInput(inputDelay, 5);
        loadCredentials();
       
        mWorkerStarter = new Thread(new Runnable() {
            Expedition expedition = new Expedition();
           
            public void run() {
                mShouldWorkerWork = true;
                expedition.setTripPeriod(mDetails.getHours(), mDetails.getDays());
               
                while(mShouldWorkerWork) {
                    MinistrantWorker worker = new MinistrantWorker(ParafiaView.this);
                    worker.setConfiguration(mWorkerConfig);
                    worker.setExpeditionDetails(mDetails);
View Full Code Here


        initComponents();
        loadUnitTypeCheckbox();
        initConfigPanels();
        btnStop.setEnabled(false);
        mWorkerConfig = new Configuration();
        mDetails = new ExpeditionDetails();
        initTray();
    }
View Full Code Here

    private SliderUpdateListener sliderMock;
   
   
    @Before
    public void setUp() {
        details = new ExpeditionDetails();
        sliderMock = mock(SliderUpdateListener.class);
        listener = new ExpeditionTimeSliderListener(daysSlider, hourSlider, sliderMock);
        event = mock(ChangeEvent.class);
    }
View Full Code Here

        when(event.getSource()).thenReturn(daysSlider);
        when(daysSlider.getValue()).thenReturn(4);
       
        listener.stateChanged(event);
       
        ExpeditionDetails expected = new ExpeditionDetails();
        expected.setDays(4);
        verify(sliderMock).updateWithDetails(Mockito.eq(expected));
    }
View Full Code Here

    }
   
    public DatePicker(Frame parent, ExpeditionDetails details) {
        this(parent, true);
        if(details == null) {
            mDetails = new ExpeditionDetails();
        }
       
        mDetails = details;
        lblReturn.setText("");
        slidersListener = new ExpeditionTimeSliderListener(sliderDays, sliderHours, this);
View Full Code Here

        /* Create and display the dialog */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                DatePicker dialog = new DatePicker(new javax.swing.JFrame(), new ExpeditionDetails());
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
View Full Code Here

            public void run() {
                mShouldWorkerWork = true;
                expedition.setTripPeriod(mDetails.getHours(), mDetails.getDays());
               
                while(mShouldWorkerWork) {
                    MinistrantWorker worker = new MinistrantWorker(ParafiaView.this);
                    worker.setConfiguration(mWorkerConfig);
                    worker.setExpeditionDetails(mDetails);
                    worker.setExpedition(expedition);
                    worker.execute();
                   
                    sleepInMins(mDelay);
                }
            }
        });
View Full Code Here

    mWorkerConfig.setCashToWithdraw(num);
}//GEN-LAST:event_inputIfLessThanFocusLost

private void unitsDropListFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_unitsDropListFocusLost
    String typeName = (String)this.unitsDropList.getSelectedItem();
    UnitType uType = getUnitByName(typeName);
    mWorkerConfig.setUnitType(uType);
}//GEN-LAST:event_unitsDropListFocusLost
View Full Code Here

TOP

Related Classes of mate00.parafia.net.MinistrantWorker

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.