Logo Search packages:      
Sourcecode: pcalendar version File versions  Download package

void net::sf::linuxorg::pcal::engine::Engine::setEnginePreferences ( EnginePreferences  enginePreferences ) [inline]

Set preferences, save them and recalculate the internal data

Parameters:
enginePreferencesthe enginePreferences to set

Definition at line 1521 of file Engine.java.

References recalculate().

Referenced by net::sf::linuxorg::pcal::engine::EngineTest::setUp().

                                                                            {

            this.enginePreferences = new EnginePreferences(enginePreferences);

            Preferences enginePrefsNode = PCalendar.settings.node("Engine"); //$NON-NLS-1$            
            enginePrefsNode.putInt("Buffer Days", enginePreferences.bufferDays); //$NON-NLS-1$
            enginePrefsNode.putInt("Bad Feels Before", enginePreferences.badFeelDaysBefore); //$NON-NLS-1$
            enginePrefsNode.putInt("Bad Feels After", enginePreferences.badFeelDaysAfter); //$NON-NLS-1$
            enginePrefsNode.putInt("Reg. Min Length", enginePreferences.regularMinLength); //$NON-NLS-1$
            enginePrefsNode.putInt("Reg. Max Length", enginePreferences.regularMaxLength); //$NON-NLS-1$
            recalculate();
      }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index