net.sourceforge.geeboss.model.settings
Class GlobalSettings

java.lang.Object
  extended by net.sourceforge.geeboss.model.settings.GlobalSettings

public class GlobalSettings
extends java.lang.Object

This class holds some settings the user has made in Geeboss. Members are temporarily static but should not !.... This class's attributes will be migrated to Settings class.


Field Summary
static java.lang.String charEncoding
          Set the character encoding - Default: UTF-8
static boolean displaySingleTab
          true: Display only one tab
false: Display multiple tabs
static boolean focusNewTabs
          true: Focus on new opened tabs
false: Do not focus on new opened tabs
static java.lang.String GEEBOSS_SETTINGS_FILE
          The path to the file that is used to cache settings for Geeboss.
static java.util.HashMap<java.lang.String,java.lang.String[]> hotKeys
          Hotkeys for common tasks
static boolean isDoubleClickOpen
          true: Open bank / patch in Tree with a Double click
false: Open bank / patch in Tree with a Single click
static boolean isPatchTreeShown
          true: Show Patch Tree
false: Do not show Patch tree
static boolean isQuickviewShown
          true: Show Quickview window in top of Geeboss
false: Do not show Quickview window
static boolean isThreeColumnGUI
          true: GUI has three columns to display URL Tree, Newsheader and Newstext
false: GUI has two columns, second column is divided into two rows.
static java.lang.String LOGS_DIR
          Dir to write the logs.
static int NULL_ACCELERATOR
          Setting the null accelerator to a MenuItem will remove the accelerator from the item.
static boolean openNewBrowserWindow
          true: Open each internal browser in a new tab
false: Open each internal browser in the same tab
static java.lang.String selectedTreeItem
          Save the last selected tree item
static boolean showErrors
          true: Show errors in tabs
false: Do not show errors in tabs
static boolean showSystrayIcon
          true: Place application in tray after minimize
false: Do not place application in tray after minimize
static boolean showTrayPopup
          true: Show the tray popup when unread news are downloaded
false: Do not show the tray popup when unread news are downloaded
static boolean simpleTabs
          true: Use simple styled tabs
false: Use curved styled tabs
static boolean tabPositionIsTop
          true: Tabs in TabFolder are displayed on TOP of the Control
false: Tabs in TabFolder are displayed on BOTTOM of the Control
static boolean trayOnExit
          true: Minimize Geeboss to tray on exit
false: Do not minimize Geeboss to tray on exit
static boolean trayOnStartup
          true: Minimize Geeboss to tray on startup
false: Do not minimize Geeboss to tray on startup
static java.lang.String WORKING_DIR
          Working directory.
 
Method Summary
static void initDefaultAccelerators()
          Assign default hotkeys
static void initDefaultAccelerators(java.util.HashMap<java.lang.String,java.lang.String[]> hotKeys)
          Assign default hotkeys to the Hashtable
static boolean isLinux()
          Return true if the platform is Linux
static boolean isMac()
          Return true if the platform is Mac
static boolean isSolaris()
          Return true if the platform is Solaris
static boolean isWindows()
          Return true if the platform is Windows
static boolean shouldShowMnemonics()
          Check wether mnemonics should be displayed in the current selected language.
static boolean useDragAndDrop()
          Get wether drag and drop is supported Currently: win32 / gtk / motif and Mac supported
static boolean useInternalBrowser()
          Get wether the Internal Browser should be used Currently: win32, gtk and mac supported
static boolean useIText()
          Get wether iText should be used.
static boolean usePrinting()
          Get wether Printing should be used Currently: win32 / carbon / motif supported
static boolean useSystemTray()
          Get wether system tray is supported Currently: win32 / gtk supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charEncoding

public static java.lang.String charEncoding
Set the character encoding - Default: UTF-8


displaySingleTab

public static boolean displaySingleTab
true: Display only one tab
false: Display multiple tabs


focusNewTabs

public static boolean focusNewTabs
true: Focus on new opened tabs
false: Do not focus on new opened tabs


hotKeys

public static java.util.HashMap<java.lang.String,java.lang.String[]> hotKeys
Hotkeys for common tasks


isDoubleClickOpen

public static boolean isDoubleClickOpen
true: Open bank / patch in Tree with a Double click
false: Open bank / patch in Tree with a Single click


isPatchTreeShown

public static boolean isPatchTreeShown
true: Show Patch Tree
false: Do not show Patch tree


isQuickviewShown

public static boolean isQuickviewShown
true: Show Quickview window in top of Geeboss
false: Do not show Quickview window


isThreeColumnGUI

public static boolean isThreeColumnGUI
true: GUI has three columns to display URL Tree, Newsheader and Newstext
false: GUI has two columns, second column is divided into two rows.


WORKING_DIR

public static java.lang.String WORKING_DIR
Working directory. Has to be writeable


LOGS_DIR

public static java.lang.String LOGS_DIR
Dir to write the logs. Has to be writeable


NULL_ACCELERATOR

public static final int NULL_ACCELERATOR
Setting the null accelerator to a MenuItem will remove the accelerator from the item.

See Also:
Constant Field Values

openNewBrowserWindow

public static boolean openNewBrowserWindow
true: Open each internal browser in a new tab
false: Open each internal browser in the same tab


GEEBOSS_SETTINGS_FILE

public static java.lang.String GEEBOSS_SETTINGS_FILE
The path to the file that is used to cache settings for Geeboss.


selectedTreeItem

public static java.lang.String selectedTreeItem
Save the last selected tree item


showErrors

public static boolean showErrors
true: Show errors in tabs
false: Do not show errors in tabs


showSystrayIcon

public static boolean showSystrayIcon
true: Place application in tray after minimize
false: Do not place application in tray after minimize


showTrayPopup

public static boolean showTrayPopup
true: Show the tray popup when unread news are downloaded
false: Do not show the tray popup when unread news are downloaded


simpleTabs

public static boolean simpleTabs
true: Use simple styled tabs
false: Use curved styled tabs


tabPositionIsTop

public static boolean tabPositionIsTop
true: Tabs in TabFolder are displayed on TOP of the Control
false: Tabs in TabFolder are displayed on BOTTOM of the Control


trayOnExit

public static boolean trayOnExit
true: Minimize Geeboss to tray on exit
false: Do not minimize Geeboss to tray on exit


trayOnStartup

public static boolean trayOnStartup
true: Minimize Geeboss to tray on startup
false: Do not minimize Geeboss to tray on startup

Method Detail

initDefaultAccelerators

public static void initDefaultAccelerators()
Assign default hotkeys


initDefaultAccelerators

public static void initDefaultAccelerators(java.util.HashMap<java.lang.String,java.lang.String[]> hotKeys)
Assign default hotkeys to the Hashtable

Parameters:
hotKeys - Hashtable containing hotkeys

isLinux

public static boolean isLinux()
Return true if the platform is Linux

Returns:
boolean true if platform is Linux

isMac

public static boolean isMac()
Return true if the platform is Mac

Returns:
boolean true if platform is Mac

isSolaris

public static boolean isSolaris()
Return true if the platform is Solaris

Returns:
boolean true if platform is Solaris

isWindows

public static boolean isWindows()
Return true if the platform is Windows

Returns:
boolean true if platform is Windows

shouldShowMnemonics

public static boolean shouldShowMnemonics()
Check wether mnemonics should be displayed in the current selected language. Currently Korean, Japanese, Chinese Simplified and Chinese Traditional do not require display of Mnmeonics. Also on Mac, they should not be displayed, since not supported by the OS.

Returns:
boolean true if Mnemonics should be displayed

useDragAndDrop

public static boolean useDragAndDrop()
Get wether drag and drop is supported Currently: win32 / gtk / motif and Mac supported

Returns:
true if it should be used

useInternalBrowser

public static boolean useInternalBrowser()
Get wether the Internal Browser should be used Currently: win32, gtk and mac supported

Returns:
true if it should be used

useIText

public static boolean useIText()
Get wether iText should be used. That library is responsible to generate PDF, RTF or HTML from a newsfeed. Mac is not supported, since on Mac its not possible to use SWT and AWT in one application yet.

Returns:
true if it should be used

usePrinting

public static boolean usePrinting()
Get wether Printing should be used Currently: win32 / carbon / motif supported

Returns:
true if it should be used

useSystemTray

public static boolean useSystemTray()
Get wether system tray is supported Currently: win32 / gtk supported

Returns:
true if it should be used


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.