|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.controller.GUI
public class GUI
This is RSSOwl's Main controller. All GUI Elements are registered in here and getter Methods are provided so that other Classes are able to access and use them. All settings are loaded in here.
| Field Summary | |
|---|---|
(package private) ArchiveManager |
archiveManager
|
private Composite |
boxContainer
|
static Display |
display
A lot of other obj have to access display |
(package private) EventManager |
eventManager
|
static java.lang.String |
FOCUSLESS_SCROLL_HOOK
Key for Data-Slot in Controls that support this Hook |
private SashForm |
holdContentSash
|
private SashForm |
holdNewsSash
|
static RSSOwlI18n |
i18n
Internationalization for RSSOwl |
static boolean |
isClosing
Flag is set to TRUE when RSSOwl is exiting |
static LoggerImpl |
logger
Log all catched Exceptions |
private static java.lang.String |
NATIVE_SCROLL_PROPERTY
DWord to disable the use of the focusless Scrolling on Windows |
private AmphetaRateThread |
rssOwlAmphetaRate
|
private CryptoManager |
rssOwlCryptoManager
|
(package private) FavoritesTree |
rssOwlFavoritesTree
|
private FeedAutoUpdater |
rssOwlFeedAutoUpdater
|
(package private) FeedCacheManager |
rssOwlFeedCacheManager
|
private FeedQueueLoader |
rssOwlFeedQueueLoader
|
static GUI |
rssOwlGui
For classes who needs to access the MainController |
private RSSOwlMenu |
rssOwlMenu
|
(package private) NewsTabFolder |
rssOwlNewsTabFolder
|
private NewsText |
rssOwlNewsText
|
private Quickview |
rssOwlQuickView
|
(package private) StatusLine |
rssOwlStatusLine
|
private SystemTray |
rssOwlSystray
|
private SettingsManager |
settingsManager
|
static Shell |
shell
A lot of other obj have to access shell |
private static java.lang.String |
SWT_BROWSER_WIN
WebSite class being used for the Browser on Windows only |
| Constructor Summary | |
|---|---|
GUI(Display display,
Shell splashShell)
Instantiate a new GUI |
|
| Method Summary | |
|---|---|
void |
abnormalShutDown()
This method is called from the Shutdown Hook Thread in case RSSOwl was shut down not the normal way (e.g. the OS is shutting down). |
void |
changeWindowLayout()
Change the window layout between 2 and 3 column window layout |
void |
displayNewsfeed(Channel rssChannel,
java.lang.String url,
SearchDefinition searchDefinition,
boolean reselectNews,
int displayMode)
Display the selected newsfeed in the TabFolder |
void |
enableSystrayIcon(boolean enabled)
Enable / Disable Systray Icon for RSSOwl |
ArchiveManager |
getArchiveManager()
Get the archive manager for RSSOwl |
SashForm |
getContentSash()
Get the SashForm containing the Content. |
EventManager |
getEventManager()
Get the event manager for RSSOwl. |
FeedCacheManager |
getFeedCacheManager()
Get the feed cache manager |
SashForm |
getNewsSash()
Get the SashForm containing the News. |
AmphetaRateThread |
getRSSOwlAmphetaRate()
Let other objects access this thread |
FavoritesTree |
getRSSOwlFavoritesTree()
Method to let other obj access this object |
FeedQueueLoader |
getRSSOwlFeedQueueLoader()
Let other objects access this thread |
RSSOwlMenu |
getRSSOwlMenu()
Method to let other obj access this object |
NewsTabFolder |
getRSSOwlNewsTabFolder()
Get the NewsTabFolder displaying newsfeeds |
NewsText |
getRSSOwlNewsText()
Get the NewsText composite |
Quickview |
getRSSOwlQuickview()
Get the RSSOwl quickview control |
StatusLine |
getRSSOwlStatusLine()
Get the StatusLine control |
SystemTray |
getRSSOwlSystray()
Get the SystemTray object |
private void |
initComponents()
Init all components |
static boolean |
isAlive()
This method is called to check if RSSOwl is still alive or was just closed by the user. |
boolean |
isBusyLoading()
Check if RSSOwl is currently busy loading a newsfeed or aggregation. |
void |
loadNewsFeed(java.lang.String url,
SearchDefinition searchDefinition,
boolean displayNewsfeed,
boolean reselectNews,
int displayMode)
Load a News feed. |
(package private) void |
onClose(Event event)
Called when the Shell is closed |
(package private) void |
onClose(Event event,
boolean forceExit)
Called when the Shell is closed. |
(package private) void |
onDispose()
Called when the Shell is disposed |
(package private) void |
onIconify()
Called when the Shell is Iconified |
void |
reloadNewsFeed(java.lang.String url)
Re-Load a news feed |
void |
restoreWindow()
Restore the application window either from taskbar or the tray. |
private void |
runEventLoop()
Runs the event loop for RSSOwl |
void |
setFavoritesMinimized(boolean minimize,
boolean save)
Set the state of the favorites Tree with setting the maximized control of the holdContentSash. |
(package private) void |
showGui()
Open RSSOwl shell |
(package private) void |
shutDown()
Shut down RSSOwl and perform some actions before closing |
private void |
startUp()
Startup process of RSSOwl (called once at start) |
(package private) void |
updateCoreSettings(SettingsLoader settingsLoader,
boolean isHotLoad)
Update core settings of RSSOwl that need to be loaded first |
void |
updateI18N()
Update all controlls text with i18n |
(package private) void |
updateUserSettings(SettingsLoader settingsLoader,
boolean isHotLoad)
Update some user settings from the "user.xml" |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Display display
public static RSSOwlI18n i18n
public static boolean isClosing
public static LoggerImpl logger
public static GUI rssOwlGui
public static Shell shell
private static final java.lang.String SWT_BROWSER_WIN
public static final java.lang.String FOCUSLESS_SCROLL_HOOK
private static final java.lang.String NATIVE_SCROLL_PROPERTY
private Composite boxContainer
private SashForm holdContentSash
private SashForm holdNewsSash
private AmphetaRateThread rssOwlAmphetaRate
private CryptoManager rssOwlCryptoManager
private FeedAutoUpdater rssOwlFeedAutoUpdater
private FeedQueueLoader rssOwlFeedQueueLoader
private RSSOwlMenu rssOwlMenu
private NewsText rssOwlNewsText
private Quickview rssOwlQuickView
private SystemTray rssOwlSystray
private SettingsManager settingsManager
ArchiveManager archiveManager
EventManager eventManager
FavoritesTree rssOwlFavoritesTree
FeedCacheManager rssOwlFeedCacheManager
NewsTabFolder rssOwlNewsTabFolder
StatusLine rssOwlStatusLine
| Constructor Detail |
|---|
public GUI(Display display,
Shell splashShell)
display - The displaysplashShell - The shell holding the splash| Method Detail |
|---|
public static boolean isAlive()
public void abnormalShutDown()
public void changeWindowLayout()
public void displayNewsfeed(Channel rssChannel,
java.lang.String url,
SearchDefinition searchDefinition,
boolean reselectNews,
int displayMode)
rssChannel - The newsfeed to displayurl - URL / Path to the RSS XMLsearchDefinition - Pattern and Scope of the Search.reselectNews - Wether to reselect an already selected newsdisplayMode - One of the supported display modespublic void enableSystrayIcon(boolean enabled)
enabled - TRUE if enabledpublic ArchiveManager getArchiveManager()
public SashForm getContentSash()
public EventManager getEventManager()
public FeedCacheManager getFeedCacheManager()
public SashForm getNewsSash()
public AmphetaRateThread getRSSOwlAmphetaRate()
public FavoritesTree getRSSOwlFavoritesTree()
public FeedQueueLoader getRSSOwlFeedQueueLoader()
public RSSOwlMenu getRSSOwlMenu()
public NewsTabFolder getRSSOwlNewsTabFolder()
public NewsText getRSSOwlNewsText()
public Quickview getRSSOwlQuickview()
public StatusLine getRSSOwlStatusLine()
public SystemTray getRSSOwlSystray()
public boolean isBusyLoading()
public void loadNewsFeed(java.lang.String url,
SearchDefinition searchDefinition,
boolean displayNewsfeed,
boolean reselectNews,
int displayMode)
url - URL / Path to the feedsearchDefinition - Pattern and Scope of the Search.displayNewsfeed - TRUE if newsfeed should be displayedreselectNews - Wether to reselect a selected newsdisplayMode - One of the supported displaymodespublic void reloadNewsFeed(java.lang.String url)
url - URL to the newsfeedpublic void restoreWindow()
public void setFavoritesMinimized(boolean minimize,
boolean save)
minimize - If TRUE minimize the favorites treesave - If TRUE save the state to GlobalSettingspublic void updateI18N()
updateI18N in interface ITranslatableprivate void initComponents()
private void runEventLoop()
private void startUp()
void onClose(Event event)
event - The occuring Event
void onClose(Event event,
boolean forceExit)
event - The occuring EventforceExit - If TRUE, force RSSOwl to exitvoid onDispose()
void onIconify()
void showGui()
void shutDown()
void updateCoreSettings(SettingsLoader settingsLoader,
boolean isHotLoad)
settingsLoader - The settings parser to useisHotLoad - TRUE if the settings are imported by the user from the
running program
void updateUserSettings(SettingsLoader settingsLoader,
boolean isHotLoad)
settingsLoader - The settings parser to useisHotLoad - TRUE if the settings are imported by the user from the
running program
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||