net.ponec.jworksheet.bo
Class Parameters

Package class diagram package Parameters
java.lang.Object
  extended by org.ujoframework.extensions.AbstractUjo
      extended by org.ujoframework.implementation.array.ArrayUjo
          extended by net.ponec.jworksheet.bo.Parameters
All Implemented Interfaces:
UjoCloneable, UjoTextable, Ujo

public class Parameters
extends ArrayUjo

Parameters of the application.


Field Summary
static java.lang.String CONFIG_DIR
          A configuration subdirectory of a user home directory.
static UjoProperty<Parameters,java.lang.Boolean> P_AUTOMATIC_SORTING_BY_TIME
          Automatic sorting of the events by time.
static UjoProperty<Parameters,java.awt.Color> P_COLOR_EDITABLE
          A Color of an editable area.
static UjoProperty<Parameters,java.awt.Color> P_COLOR_FINISHED_PROJ
          A Color of finished project.
static UjoProperty<Parameters,java.awt.Color> P_COLOR_PRIVATE
          A Color of a private project.
static UjoProperty<Parameters,java.io.File> P_DATA_FILE_PATH
          A full path to a DataFile.
static UjoProperty<Parameters,java.lang.String> P_DATE_GOTO_FORMAT
          The Goto Date format.
static UjoProperty<Parameters,java.lang.String> P_DATE_MAIN_FORMAT
          The Main selecton format.
static UjoProperty<Parameters,java.lang.String> P_DATE_REPORT_FORMAT
          The Export Date Selection.
static UjoProperty<Parameters,java.lang.String> P_DATE_REPORT_FORMAT2
          The Export Date Selection.
static UjoProperty<Parameters,java.lang.Boolean> P_DECIMAL_TIME_FORMAT
          Decimal time format.
static UjoProperty<Parameters,java.lang.Boolean> P_EXIT_EVENT_CREATE
          Create a new Event on an EXIT action.
static UjoProperty<Parameters,java.lang.String> P_EXIT_EVENT_DESCR
          Description of an EXIT action.
static UjoProperty<Parameters,java.lang.Integer> P_FIRST_DAY_OF_WEEK
          The First Day of the Week Day.
static UjoProperty<Parameters,java.lang.Boolean> P_HIDE_ICONS
          Hide Buoon Icon.
static UjoProperty<Parameters,java.util.Locale> P_LANG
          LocaleText lcalization
static UjoProperty<Parameters,java.lang.Boolean> P_MODIFY_FINESHED_PROJ
          Modify value of finished project or task.
static UjoProperty<Parameters,java.lang.Boolean> P_NIMBUS_LAF
          Nimbus Look & Feel support
static UjoProperty<Parameters,java.lang.String> P_REPORT_CSS
          The complementary report CSS style.
static UjoProperty<Parameters,java.lang.String> P_SORT_PROJ_COLUMN
          Project table sorted column
static UjoProperty<Parameters,java.lang.String> P_SYSTEM_BROWSER_PATH
          A full path to a system browser.
static UjoProperty<Parameters,java.lang.Boolean> P_SYSTRAY_ENABLED
          Is a System Tray Enabled?
static UjoProperty<Parameters,SysTray.Action> P_SYSTRAY_SECOND_CLICK
          Action on a second click
static UjoProperty<Parameters,java.awt.Rectangle> P_WINDOW_SIZE
          Last window size and position.
static UjoProperty<Parameters,java.lang.Boolean> P_WINDOW_SIZE_RESTORATION
          Restore the last application window size and position.
static UjoProperty<Parameters,java.lang.Float> P_WORKING_HOURS
          Working Hours
protected static int propertyCount
          An Incrementator.
 
Fields inherited from class org.ujoframework.implementation.array.ArrayUjo
data
 
Constructor Summary
Parameters()
          Parameters constructor
 
Method Summary
 java.lang.String formatTime(int minutes)
          Returns a format time.
 java.lang.String getDateFormat(UjoProperty<Parameters,java.lang.String> property, ApplContext context)
          Returns a localized date format
 boolean readAuthorization(UjoAction action, UjoProperty property, java.lang.Object value)
          An authorization settings.
 int readPropertyCount()
          Returns a propertyCount value
 void writeValue(UjoProperty property, java.lang.Object value)
          Overrided for additional features
 void writeValueString(UjoProperty property, java.lang.String value, java.lang.Class type, UjoAction action)
          WriteValueString
 
Methods inherited from class org.ujoframework.implementation.array.ArrayUjo
initData, newListProperty, newProperty, newProperty, newPropertyList_, readValue
 
Methods inherited from class org.ujoframework.extensions.AbstractUjo
clone, equals, init, init, readProperties, readUjoManager, readValueString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_DIR

public static final java.lang.String CONFIG_DIR
A configuration subdirectory of a user home directory.

See Also:
Constant Field Values

propertyCount

protected static int propertyCount
An Incrementator. Use a new counter for each subclass.


P_LANG

public static final UjoProperty<Parameters,java.util.Locale> P_LANG
LocaleText lcalization


P_WORKING_HOURS

public static final UjoProperty<Parameters,java.lang.Float> P_WORKING_HOURS
Working Hours


P_FIRST_DAY_OF_WEEK

public static final UjoProperty<Parameters,java.lang.Integer> P_FIRST_DAY_OF_WEEK
The First Day of the Week Day.


P_DECIMAL_TIME_FORMAT

public static final UjoProperty<Parameters,java.lang.Boolean> P_DECIMAL_TIME_FORMAT
Decimal time format.


P_DATE_MAIN_FORMAT

public static final UjoProperty<Parameters,java.lang.String> P_DATE_MAIN_FORMAT
The Main selecton format.


P_DATE_REPORT_FORMAT

public static final UjoProperty<Parameters,java.lang.String> P_DATE_REPORT_FORMAT
The Export Date Selection.


P_DATE_REPORT_FORMAT2

public static final UjoProperty<Parameters,java.lang.String> P_DATE_REPORT_FORMAT2
The Export Date Selection.


P_REPORT_CSS

public static final UjoProperty<Parameters,java.lang.String> P_REPORT_CSS
The complementary report CSS style.


P_DATE_GOTO_FORMAT

public static final UjoProperty<Parameters,java.lang.String> P_DATE_GOTO_FORMAT
The Goto Date format.


P_NIMBUS_LAF

public static final UjoProperty<Parameters,java.lang.Boolean> P_NIMBUS_LAF
Nimbus Look & Feel support


P_COLOR_PRIVATE

public static final UjoProperty<Parameters,java.awt.Color> P_COLOR_PRIVATE
A Color of a private project.


P_COLOR_FINISHED_PROJ

public static final UjoProperty<Parameters,java.awt.Color> P_COLOR_FINISHED_PROJ
A Color of finished project.


P_COLOR_EDITABLE

public static final UjoProperty<Parameters,java.awt.Color> P_COLOR_EDITABLE
A Color of an editable area.


P_SYSTRAY_ENABLED

public static final UjoProperty<Parameters,java.lang.Boolean> P_SYSTRAY_ENABLED
Is a System Tray Enabled?


P_SYSTRAY_SECOND_CLICK

public static final UjoProperty<Parameters,SysTray.Action> P_SYSTRAY_SECOND_CLICK
Action on a second click


P_MODIFY_FINESHED_PROJ

public static final UjoProperty<Parameters,java.lang.Boolean> P_MODIFY_FINESHED_PROJ
Modify value of finished project or task.


P_EXIT_EVENT_CREATE

public static final UjoProperty<Parameters,java.lang.Boolean> P_EXIT_EVENT_CREATE
Create a new Event on an EXIT action.


P_EXIT_EVENT_DESCR

public static final UjoProperty<Parameters,java.lang.String> P_EXIT_EVENT_DESCR
Description of an EXIT action.


P_HIDE_ICONS

public static final UjoProperty<Parameters,java.lang.Boolean> P_HIDE_ICONS
Hide Buoon Icon.


P_WINDOW_SIZE

public static final UjoProperty<Parameters,java.awt.Rectangle> P_WINDOW_SIZE
Last window size and position.


P_WINDOW_SIZE_RESTORATION

public static final UjoProperty<Parameters,java.lang.Boolean> P_WINDOW_SIZE_RESTORATION
Restore the last application window size and position.


P_AUTOMATIC_SORTING_BY_TIME

public static final UjoProperty<Parameters,java.lang.Boolean> P_AUTOMATIC_SORTING_BY_TIME
Automatic sorting of the events by time.


P_SYSTEM_BROWSER_PATH

public static final UjoProperty<Parameters,java.lang.String> P_SYSTEM_BROWSER_PATH
A full path to a system browser.


P_DATA_FILE_PATH

public static final UjoProperty<Parameters,java.io.File> P_DATA_FILE_PATH
A full path to a DataFile.


P_SORT_PROJ_COLUMN

public static final UjoProperty<Parameters,java.lang.String> P_SORT_PROJ_COLUMN
Project table sorted column

Constructor Detail

Parameters

public Parameters()
Parameters constructor

Method Detail

readPropertyCount

public int readPropertyCount()
Returns a propertyCount value

Specified by:
readPropertyCount in class ArrayUjo

writeValue

public void writeValue(UjoProperty property,
                       java.lang.Object value)
Overrided for additional features

Specified by:
writeValue in interface Ujo
Overrides:
writeValue in class ArrayUjo

readAuthorization

public boolean readAuthorization(UjoAction action,
                                 UjoProperty property,
                                 java.lang.Object value)
An authorization settings.

Specified by:
readAuthorization in interface Ujo
Overrides:
readAuthorization in class AbstractUjo

getDateFormat

public java.lang.String getDateFormat(UjoProperty<Parameters,java.lang.String> property,
                                      ApplContext context)
Returns a localized date format


writeValueString

public void writeValueString(UjoProperty property,
                             java.lang.String value,
                             java.lang.Class type,
                             UjoAction action)
WriteValueString

Specified by:
writeValueString in interface UjoTextable
Overrides:
writeValueString in class AbstractUjo

formatTime

public java.lang.String formatTime(int minutes)
Returns a format time.



Copyright © 2007-2009 PPonec