org.chorem.jtimer
Class JTimerConfig

java.lang.Object
  extended by org.chorem.jtimer.JTimerConfig

public class JTimerConfig
extends Object

JTimer configuration.

Version:
$Revision: 2867 $ Last update : $Date: 2012-05-18 19:01:18 +0200 (Fri, 18 May 2012) $ By : $Author: echatellier $
Author:
chatellier

Nested Class Summary
protected static class JTimerConfig.JTimerAction
           
protected static class JTimerConfig.JTimerOption
           
 
Field Summary
protected  org.nuiton.util.ApplicationConfig appConfig
           
protected static int STEP_AFTER_UI
          To tag action to be run after ui start.
protected static int STEP_BEFORE_UI
          To tag action to be run before ui start.
 
Constructor Summary
JTimerConfig()
           
 
Method Summary
 void doAction(int step)
          Run command line actions for step.
 long getIdleTime()
          Return user idle time threshold in seconds.
 long getIOSaverAutoSaveDelay()
          Return auto save delay in seconds.
 Class getIOSaverClass()
           
 String getIOSaverDirectory()
           
 int getReportFirstDayOfWeek()
          Return first day of week.
 Class getServiceClass()
           
 String getServiceEndpoint()
           
 String getServiceResource()
           
 boolean isCloseToSystray()
          Get close to systray option.
 boolean isShowClosed()
          Show closed project on main ui tree.
 void parse(String... args)
           
 void putObject(Object o)
          Put new custom object into app config context.
 void setCloseToSystray(boolean closeToSystray)
          Set close to systray option
 void setReportFirstDayOfWeek(int firstDayOfWeek)
          Report first day of week.
 void setShowClosed(boolean showClosed)
          Set show closed option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STEP_BEFORE_UI

protected static final int STEP_BEFORE_UI
To tag action to be run before ui start.

See Also:
Constant Field Values

STEP_AFTER_UI

protected static final int STEP_AFTER_UI
To tag action to be run after ui start.

See Also:
Constant Field Values

appConfig

protected org.nuiton.util.ApplicationConfig appConfig
Constructor Detail

JTimerConfig

public JTimerConfig()
Method Detail

parse

public void parse(String... args)

putObject

public void putObject(Object o)
Put new custom object into app config context.

Parameters:
o - object value

doAction

public void doAction(int step)
Run command line actions for step.

Parameters:
step - action step

getServiceClass

public Class getServiceClass()

getServiceEndpoint

public String getServiceEndpoint()

getServiceResource

public String getServiceResource()

getIOSaverClass

public Class getIOSaverClass()

getIOSaverDirectory

public String getIOSaverDirectory()

getIOSaverAutoSaveDelay

public long getIOSaverAutoSaveDelay()
Return auto save delay in seconds.

Returns:
auto save delay

getIdleTime

public long getIdleTime()
Return user idle time threshold in seconds.

Returns:
idle time threshold

isShowClosed

public boolean isShowClosed()
Show closed project on main ui tree.

Returns:
show closed project

setShowClosed

public void setShowClosed(boolean showClosed)
Set show closed option.

Parameters:
showClosed - show closed

isCloseToSystray

public boolean isCloseToSystray()
Get close to systray option.

Returns:
close to systray

setCloseToSystray

public void setCloseToSystray(boolean closeToSystray)
Set close to systray option

Parameters:
closeToSystray - close to systray

getReportFirstDayOfWeek

public int getReportFirstDayOfWeek()
Return first day of week. Default to -1 (no preference).

Returns:
first day of week in report

setReportFirstDayOfWeek

public void setReportFirstDayOfWeek(int firstDayOfWeek)
Report first day of week.

Parameters:
firstDayOfWeek - first day of week


Copyright © 2007-2012 CodeLutin. All Rights Reserved.