|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.rssowl.controller.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 org.eclipse.swt.widgets.Composite |
boxContainer
|
static org.eclipse.swt.widgets.Display |
display
A lot of other obj have to access display |
(package private) EventManager |
eventManager
|
private org.eclipse.swt.custom.SashForm |
holdContentSash
|
private org.eclipse.swt.custom.SashForm |
holdNewsSash
|
static RSSOwlI18n |
i18n
Internationalization for RSSOwl |
static boolean |
isClosing
Flag is set to TRUE when RSSOwl is exiting |
(package private) static String |
loadURLOnStartup
If the user has passed an argument to the application, it is stored here |
static LoggerImpl |
logger
Log all catched Exceptions |
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 Hashtable |
sashWeights
|
static org.eclipse.swt.widgets.Shell |
shell
A lot of other obj have to access shell |
(package private) Hashtable |
shellBounds
|
Constructor Summary | |
GUI(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.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,
String url,
String searchPattern,
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 |
EventManager |
getEventManager()
Get the event manager for RSSOwl. |
FeedCacheManager |
getFeedCacheManager()
Get the feed cache manager |
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 |
Hashtable |
getSashWeights()
Method to let other obj access this object |
Hashtable |
getShellBounds()
Get the Shell bounds inside a Hashtable |
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(String url,
String searchPattern,
boolean displayNewsfeed,
boolean reselectNews,
int displayMode)
Load a News feed. |
(package private) void |
onClose(org.eclipse.swt.widgets.Event event)
Called when the Shell is closed |
(package private) void |
onClose(org.eclipse.swt.widgets.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(String url)
Re-Load a news feed |
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 org.eclipse.swt.widgets.Display display
public static RSSOwlI18n i18n
public static boolean isClosing
public static LoggerImpl logger
public static GUI rssOwlGui
public static org.eclipse.swt.widgets.Shell shell
static String loadURLOnStartup
private org.eclipse.swt.widgets.Composite boxContainer
private org.eclipse.swt.custom.SashForm holdContentSash
private org.eclipse.swt.custom.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 Hashtable sashWeights
ArchiveManager archiveManager
EventManager eventManager
FavoritesTree rssOwlFavoritesTree
FeedCacheManager rssOwlFeedCacheManager
NewsTabFolder rssOwlNewsTabFolder
StatusLine rssOwlStatusLine
Hashtable shellBounds
Constructor Detail |
public GUI(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Shell splashShell)
display
- The displaysplashShell
- The shell holding the splashMethod Detail |
public static boolean isAlive()
public void abnormalShutDown()
public void changeWindowLayout()
public void displayNewsfeed(Channel rssChannel, String url, String searchPattern, boolean reselectNews, int displayMode)
rssChannel
- The newsfeed to displayurl
- URL / Path to the RSS XMLsearchPattern
- Optional pattern for a searchreselectNews
- Wether to reselect an already selected newsdisplayMode
- One of the supported display modespublic void enableSystrayIcon(boolean enabled)
enabled
- TRUE if enabledpublic ArchiveManager getArchiveManager()
public EventManager getEventManager()
public FeedCacheManager getFeedCacheManager()
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 Hashtable getSashWeights()
public Hashtable getShellBounds()
public boolean isBusyLoading()
public void loadNewsFeed(String url, String searchPattern, boolean displayNewsfeed, boolean reselectNews, int displayMode)
url
- URL / Path to the feedsearchPattern
- Search Pattern if search is performeddisplayNewsfeed
- TRUE if newsfeed should be displayedreselectNews
- Wether to reselect a selected newsdisplayMode
- One of the supported displaymodespublic void reloadNewsFeed(String url)
url
- URL to the newsfeedpublic 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 ITranslatable
private void initComponents()
private void runEventLoop()
private void startUp()
void onClose(org.eclipse.swt.widgets.Event event)
event
- The occuring Eventvoid onClose(org.eclipse.swt.widgets.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 programvoid 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 |