|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aelitis.azureus.ui.swt.shells.main.UIFunctionsImpl
public class UIFunctionsImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.aelitis.azureus.ui.UIFunctions |
|---|
UIFunctions.actionListener, UIFunctions.TagReturner |
| Field Summary | |
|---|---|
protected boolean |
isTorrentMenuVisible
|
| Fields inherited from interface com.aelitis.azureus.ui.UIFunctions |
|---|
ACTION_FULL_UPDATE, ACTION_UPDATE_RESTART_REQUEST, MAIN_WINDOW_NAME, MAIN_WINDOW_NAME_PLUS, OTO_DEFAULT_TO_STOPPED, OTO_DEFAULT_TO_STOPPED_DEFAULT, OTO_FORCE_OPEN, OTO_FORCE_OPEN_DEFAULT, OTO_HIDE_ERRORS, OTO_HIDE_ERRORS_DEFAULT, OTO_SILENT, OTO_SILENT_DEFAULT, STATUSICON_ERROR, STATUSICON_NONE, STATUSICON_WARNING, VIEW_CONFIG, VIEW_DM_DETAILS, VIEW_MYTORRENTS, VS_ACTIVE, VS_MINIMIZED, VS_MINIMIZED_TO_TRAY, VS_TRAY_ONLY |
| Constructor Summary | |
|---|---|
UIFunctionsImpl(MainWindow window)
|
|
| Method Summary | |
|---|---|
void |
addPluginView(String viewID,
UISWTViewEventListener l)
|
boolean |
addTorrentWithOptions(boolean force,
TorrentOpenOptions torrentOptions)
Opens the Torrent Add Options Window, if configured to |
boolean |
addTorrentWithOptions(TorrentOpenOptions torrentOptions,
Map<String,Object> addOptions)
|
int |
adjustPXForDPI(int px)
|
void |
bringToFront()
Bring main window to the front |
void |
bringToFront(boolean tryTricks)
Bring main window to the front |
void |
closeAllDetails()
|
void |
closeDownloadBars()
|
void |
closeGlobalTransferBar()
|
void |
closePluginView(UISWTViewCore view)
|
void |
closePluginViews(String sViewID)
|
IMainMenu |
createMainMenu(org.eclipse.swt.widgets.Shell shell)
Creates the main application menu and attach it to the given Shell;
this is only used for OSX so that we can attach the global menu to popup dialogs which
is the expected behavior on OSX. |
TabbedMdiInterface |
createTabbedMDI(org.eclipse.swt.widgets.Composite parent,
String id)
|
boolean |
dispose(boolean for_restart,
boolean close_already_in_progress)
Request the UI be shut down. |
void |
doSearch(String sSearchText)
|
void |
doSearch(String sSearchText,
boolean toSubscribe)
|
void |
forceNotify(int iconID,
String title,
String text,
String details,
Object[] relatedObjects,
int timeoutSecs)
Might launch the old-school Mr Slidey |
org.eclipse.swt.widgets.Shell |
getMainShell()
|
IMainStatusBar |
getMainStatusBar()
|
IMainWindow |
getMainWindow()
|
MultipleDocumentInterface |
getMDI()
Retrieve the MDI (Sidebar, TabbedMDI) |
MultipleDocumentInterfaceSWT |
getMDISWT()
|
UISWTView[] |
getPluginViews()
|
SWTSkin |
getSkin()
|
UISWTInstanceImpl |
getSWTPluginInstanceImpl()
|
UIToolBarManager |
getToolBarManager()
|
UISWTInstance |
getUISWTInstance()
|
int |
getUIType()
|
UIUpdater |
getUIUpdater()
Retrieves the class that handles periodically updating the UI |
UIFunctionsUserPrompter |
getUserPrompter(String title,
String text,
String[] buttons,
int defaultOption)
|
int |
getVisibilityState()
|
boolean |
hasDetailViews()
|
void |
installPlugin(String plugin_id,
String resource_prefix,
UIFunctions.actionListener listener)
|
boolean |
isGlobalTransferBarShown()
|
boolean |
isProgramInstalled(String extension,
String name)
|
void |
openPluginView(String sParentID,
String sViewID,
UISWTViewEventListener l,
Object dataSource,
boolean bSetFocus)
|
void |
openRemotePairingWindow()
|
void |
openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell,
String sPathOfFilesToOpen,
String[] sFilesToOpen,
boolean defaultToStopped,
boolean forceOpen)
|
void |
openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell,
String sPathOfFilesToOpen,
String[] sFilesToOpen,
Map<String,Object> options)
|
void |
openTorrentWindow()
|
void |
openView(int viewID,
Object data)
Deprecated. |
void |
performAction(int action_id,
Object args,
UIFunctions.actionListener listener)
|
void |
playOrStreamDataSource(Object ds,
String referal,
boolean launch_already_checked,
boolean complete_only)
|
void |
promptForSearch()
|
void |
promptUser(String title,
String text,
String[] buttons,
int defaultOption,
String rememberID,
String rememberText,
boolean rememberByDefault,
int autoCloseInMS,
UserPrompterResultListener l)
|
void |
refreshIconBar()
|
void |
refreshLanguage()
Change/Refresh the language of the UI |
void |
refreshTorrentMenu()
|
void |
removePluginView(String viewID)
|
void |
runOnUIThread(int ui_type,
Runnable runnable)
|
void |
setHideAll(boolean hidden)
|
void |
setSkin(SWTSkin skin)
|
void |
setStatusText(int statustype,
String string,
UIStatusTextClickListener l)
|
void |
setStatusText(String string)
|
org.eclipse.swt.widgets.Shell |
showCoreWaitDlg()
|
void |
showCreateTagDialog(UIFunctions.TagReturner tagReturner)
|
void |
showErrorMessage(String keyPrefix,
String details,
String[] textParams)
|
void |
showGlobalTransferBar()
|
boolean |
viewURL(String url,
String target,
double w,
double h,
boolean allowResize,
boolean isModal)
|
boolean |
viewURL(String url,
String target,
int w,
int h,
boolean allowResize,
boolean isModal)
|
void |
viewURL(String url,
String target,
String sourceRef)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isTorrentMenuVisible
| Constructor Detail |
|---|
public UIFunctionsImpl(MainWindow window)
window - | Method Detail |
|---|
public int getUIType()
getUIType in interface UIFunctions
public void addPluginView(String viewID,
UISWTViewEventListener l)
addPluginView in interface UIFunctionsSWTpublic void bringToFront()
UIFunctions
bringToFront in interface UIFunctionspublic void bringToFront(boolean tryTricks)
UIFunctions
bringToFront in interface UIFunctionspublic int getVisibilityState()
getVisibilityState in interface UIFunctionspublic void closeDownloadBars()
closeDownloadBars in interface UIFunctionsSWTpublic void closePluginView(UISWTViewCore view)
closePluginView in interface UIFunctionsSWTpublic void closePluginViews(String sViewID)
closePluginViews in interface UIFunctionsSWT
public boolean dispose(boolean for_restart,
boolean close_already_in_progress)
UIFunctions
dispose in interface UIFunctionspublic org.eclipse.swt.widgets.Shell getMainShell()
getMainShell in interface UIFunctionsSWTpublic UISWTView[] getPluginViews()
getPluginViews in interface UIFunctionsSWTpublic UISWTInstanceImpl getSWTPluginInstanceImpl()
public void openPluginView(String sParentID,
String sViewID,
UISWTViewEventListener l,
Object dataSource,
boolean bSetFocus)
openPluginView in interface UIFunctionsSWTpublic void refreshIconBar()
refreshIconBar in interface UIFunctionspublic void refreshLanguage()
UIFunctions
refreshLanguage in interface UIFunctionspublic void removePluginView(String viewID)
removePluginView in interface UIFunctionsSWTpublic void setStatusText(String string)
setStatusText in interface UIFunctions
public void setStatusText(int statustype,
String string,
UIStatusTextClickListener l)
setStatusText in interface UIFunctionspublic IMainStatusBar getMainStatusBar()
getMainStatusBar in interface UIFunctionsSWT
@Deprecated
public void openView(int viewID,
Object data)
openView in interface UIFunctionspublic UISWTInstance getUISWTInstance()
getUISWTInstance in interface UIFunctionsSWT
public void viewURL(String url,
String target,
String sourceRef)
viewURL in interface UIFunctions
public boolean viewURL(String url,
String target,
int w,
int h,
boolean allowResize,
boolean isModal)
viewURL in interface UIFunctions
public boolean viewURL(String url,
String target,
double w,
double h,
boolean allowResize,
boolean isModal)
viewURL in interface UIFunctions
public void promptUser(String title,
String text,
String[] buttons,
int defaultOption,
String rememberID,
String rememberText,
boolean rememberByDefault,
int autoCloseInMS,
UserPrompterResultListener l)
promptUser in interface UIFunctions
public UIFunctionsUserPrompter getUserPrompter(String title,
String text,
String[] buttons,
int defaultOption)
getUserPrompter in interface UIFunctionspublic boolean isGlobalTransferBarShown()
isGlobalTransferBarShown in interface UIFunctionsSWTpublic void showGlobalTransferBar()
showGlobalTransferBar in interface UIFunctionsSWTpublic void closeGlobalTransferBar()
closeGlobalTransferBar in interface UIFunctionsSWTpublic void refreshTorrentMenu()
refreshTorrentMenu in interface UIFunctionsSWTpublic IMainMenu createMainMenu(org.eclipse.swt.widgets.Shell shell)
UIFunctionsSWTShell;
this is only used for OSX so that we can attach the global menu to popup dialogs which
is the expected behavior on OSX. Windows and Linux do not require this since they do not have
a global menu and because their main menu is already attached to the main application window.
createMainMenu in interface UIFunctionsSWTpublic SWTSkin getSkin()
public void setSkin(SWTSkin skin)
public IMainWindow getMainWindow()
getMainWindow in interface UIFunctionsSWTpublic UIUpdater getUIUpdater()
UIFunctions
getUIUpdater in interface UIFunctionspublic void closeAllDetails()
closeAllDetails in interface UIFunctionsSWTpublic boolean hasDetailViews()
hasDetailViews in interface UIFunctionsSWT
public void performAction(int action_id,
Object args,
UIFunctions.actionListener listener)
performAction in interface UIFunctionspublic org.eclipse.swt.widgets.Shell showCoreWaitDlg()
showCoreWaitDlg in interface UIFunctionsSWTpublic void doSearch(String sSearchText)
doSearch in interface UIFunctionssearchText -
public void doSearch(String sSearchText,
boolean toSubscribe)
doSearch in interface UIFunctionspublic void promptForSearch()
promptForSearch in interface UIFunctionsSWTpublic MultipleDocumentInterface getMDI()
UIFunctions
getMDI in interface UIFunctionspublic MultipleDocumentInterfaceSWT getMDISWT()
getMDISWT in interface UIFunctionsSWT
public void showErrorMessage(String keyPrefix,
String details,
String[] textParams)
showErrorMessage in interface UIFunctionskeyPrefix - details - may not get displayedtextParams -
public void forceNotify(int iconID,
String title,
String text,
String details,
Object[] relatedObjects,
int timeoutSecs)
UIFunctions
forceNotify in interface UIFunctions
public void installPlugin(String plugin_id,
String resource_prefix,
UIFunctions.actionListener listener)
installPlugin in interface UIFunctionspublic UIToolBarManager getToolBarManager()
getToolBarManager in interface UIFunctionsSWT
public void runOnUIThread(int ui_type,
Runnable runnable)
runOnUIThread in interface UIFunctions
public boolean isProgramInstalled(String extension,
String name)
isProgramInstalled in interface UIFunctionspublic void openRemotePairingWindow()
openRemotePairingWindow in interface UIFunctions
public void playOrStreamDataSource(Object ds,
String referal,
boolean launch_already_checked,
boolean complete_only)
playOrStreamDataSource in interface UIFunctionspublic void setHideAll(boolean hidden)
setHideAll in interface UIFunctionsSWT
public boolean addTorrentWithOptions(boolean force,
TorrentOpenOptions torrentOptions)
UIFunctions
addTorrentWithOptions in interface UIFunctionsforce - Override configuration, show it!
public boolean addTorrentWithOptions(TorrentOpenOptions torrentOptions,
Map<String,Object> addOptions)
addTorrentWithOptions in interface UIFunctions
public void openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell,
String sPathOfFilesToOpen,
String[] sFilesToOpen,
boolean defaultToStopped,
boolean forceOpen)
openTorrentOpenOptions in interface UIFunctionsSWT
public void openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell,
String sPathOfFilesToOpen,
String[] sFilesToOpen,
Map<String,Object> options)
openTorrentOpenOptions in interface UIFunctionsSWToptions - See UIFunctions constantspublic void openTorrentWindow()
openTorrentWindow in interface UIFunctionsSWTpublic void showCreateTagDialog(UIFunctions.TagReturner tagReturner)
showCreateTagDialog in interface UIFunctions
public TabbedMdiInterface createTabbedMDI(org.eclipse.swt.widgets.Composite parent,
String id)
createTabbedMDI in interface UIFunctionsSWTid - TODOpublic int adjustPXForDPI(int px)
adjustPXForDPI in interface UIFunctions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||