sears.tools
Class SearsProperties

java.lang.Object
  extended by sears.tools.SearsProperties

public class SearsProperties
extends java.lang.Object

Class SearsProperties.
Summary:
This class contains the Sears Properties.


Field Summary
static java.lang.String COUNTRY
          The country property
static java.lang.String DEFAULT_ICON_SET
          The DEFAULT_ICON_SET: The default icon set.
static java.lang.String DOS_LINE_SEPARATOR
          The DOS line separator property.
static java.lang.String ICON_SET
          The ICON_SET_FILE: The file that contains the icons.
static int KEY_OTHER
          The key to the other player choice.
static int KEY_VLC
          The key to the VLC player choice.
static java.lang.String LANGUAGE
          The language property
static java.lang.String LAST_FOLDER
          The last folder property
static java.lang.String LOOK_AND_FEEL
          The look and feel property.
static java.lang.String PLAYER_FULL_PATH
          The player property
static java.lang.String PLAYER_SELECTED
          The player selected.
static java.lang.String RECENT_FILES
          (String) RECENT_FILES: The RECENT_FILES
static java.lang.String SUFFIX_HEIGTH
          The heigth suffix property.
static java.lang.String SUFFIX_POSX
          The posX suffix property.
static java.lang.String SUFFIX_POSY
          The posY suffix property.
static java.lang.String SUFFIX_WIDTH
          The width suffix property.
static java.lang.String TOOLBAR_DIVIDER_LOCATION
          (String) SEARCH_WIDTH: the search area width
static java.lang.String UPDATE_ADDRESS
          The update address.
static java.lang.String VLC_PORT
          The VLC_PORT: the port to connect vlc.
static java.lang.String VLC_RESTART
          The VLC_RESTART: to indicate wether vlc should restart after a subtitle change.
 
Constructor Summary
SearsProperties()
          Constructor SearsProperties.
 
Method Summary
static java.lang.String getProperty(java.lang.String key)
          Method getProperty.
static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Method getProperty.
static void resetProperty()
           
static void saveProperties()
          Method saveProperties.
static void setProperty(java.lang.String key, java.lang.String value)
          Method setProperty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUFFIX_WIDTH

public static final java.lang.String SUFFIX_WIDTH
The width suffix property.

See Also:
Constant Field Values

SUFFIX_HEIGTH

public static final java.lang.String SUFFIX_HEIGTH
The heigth suffix property.

See Also:
Constant Field Values

SUFFIX_POSX

public static final java.lang.String SUFFIX_POSX
The posX suffix property.

See Also:
Constant Field Values

SUFFIX_POSY

public static final java.lang.String SUFFIX_POSY
The posY suffix property.

See Also:
Constant Field Values

LAST_FOLDER

public static final java.lang.String LAST_FOLDER
The last folder property

See Also:
Constant Field Values

LANGUAGE

public static final java.lang.String LANGUAGE
The language property

See Also:
Constant Field Values

COUNTRY

public static final java.lang.String COUNTRY
The country property

See Also:
Constant Field Values

PLAYER_FULL_PATH

public static final java.lang.String PLAYER_FULL_PATH
The player property

See Also:
Constant Field Values

LOOK_AND_FEEL

public static final java.lang.String LOOK_AND_FEEL
The look and feel property.

See Also:
Constant Field Values

DOS_LINE_SEPARATOR

public static final java.lang.String DOS_LINE_SEPARATOR
The DOS line separator property.

See Also:
Constant Field Values

PLAYER_SELECTED

public static final java.lang.String PLAYER_SELECTED
The player selected.

See Also:
Constant Field Values

UPDATE_ADDRESS

public static java.lang.String UPDATE_ADDRESS
The update address.


KEY_OTHER

public static final int KEY_OTHER
The key to the other player choice.

See Also:
Constant Field Values

KEY_VLC

public static final int KEY_VLC
The key to the VLC player choice.

See Also:
Constant Field Values

ICON_SET

public static final java.lang.String ICON_SET
The ICON_SET_FILE: The file that contains the icons.

See Also:
Constant Field Values

DEFAULT_ICON_SET

public static final java.lang.String DEFAULT_ICON_SET
The DEFAULT_ICON_SET: The default icon set.

See Also:
Constant Field Values

RECENT_FILES

public static final java.lang.String RECENT_FILES
(String) RECENT_FILES: The RECENT_FILES

See Also:
Constant Field Values

TOOLBAR_DIVIDER_LOCATION

public static final java.lang.String TOOLBAR_DIVIDER_LOCATION
(String) SEARCH_WIDTH: the search area width

See Also:
Constant Field Values

VLC_RESTART

public static java.lang.String VLC_RESTART
The VLC_RESTART: to indicate wether vlc should restart after a subtitle change.


VLC_PORT

public static java.lang.String VLC_PORT
The VLC_PORT: the port to connect vlc.

Constructor Detail

SearsProperties

public SearsProperties()
Constructor SearsProperties.
Summary:
Constructor of the class.

Method Detail

saveProperties

public static void saveProperties()
Method saveProperties.
Summary:
This method saves the properties of Sears in the property file.


getProperty

public static java.lang.String getProperty(java.lang.String key)
Method getProperty.
Summary:
Return the sears property that correspond to the key. or "" value if not found.

Parameters:
key - The key to search.
Returns:
String The sears property that correspond to the key. or "" value if not found.

getProperty

public static java.lang.String getProperty(java.lang.String key,
                                           java.lang.String defaultValue)
Method getProperty.
Summary:
Return the sears property that correspond to the key. or default value if not found.

Parameters:
key - The key to search.
defaultValue - The default value to return if not found.
Returns:
String The sears property that correspond to the key. or default value if not found.

setProperty

public static void setProperty(java.lang.String key,
                               java.lang.String value)
Method setProperty.
Summary:
Set the Sears property.

Parameters:
key - The key to set.
value - The value to associate.

resetProperty

public static void resetProperty()
                          throws java.io.IOException
Throws:
java.io.IOException