|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 UIFunctionsSWT
public void bringToFront()
UIFunctions
bringToFront
in interface UIFunctions
public void bringToFront(boolean tryTricks)
UIFunctions
bringToFront
in interface UIFunctions
public int getVisibilityState()
getVisibilityState
in interface UIFunctions
public void closeDownloadBars()
closeDownloadBars
in interface UIFunctionsSWT
public void closePluginView(UISWTViewCore view)
closePluginView
in interface UIFunctionsSWT
public void closePluginViews(String sViewID)
closePluginViews
in interface UIFunctionsSWT
public boolean dispose(boolean for_restart, boolean close_already_in_progress)
UIFunctions
dispose
in interface UIFunctions
public org.eclipse.swt.widgets.Shell getMainShell()
getMainShell
in interface UIFunctionsSWT
public UISWTView[] getPluginViews()
getPluginViews
in interface UIFunctionsSWT
public UISWTInstanceImpl getSWTPluginInstanceImpl()
public void openPluginView(String sParentID, String sViewID, UISWTViewEventListener l, Object dataSource, boolean bSetFocus)
openPluginView
in interface UIFunctionsSWT
public void refreshIconBar()
refreshIconBar
in interface UIFunctions
public void refreshLanguage()
UIFunctions
refreshLanguage
in interface UIFunctions
public void removePluginView(String viewID)
removePluginView
in interface UIFunctionsSWT
public void setStatusText(String string)
setStatusText
in interface UIFunctions
public void setStatusText(int statustype, String string, UIStatusTextClickListener l)
setStatusText
in interface UIFunctions
public IMainStatusBar getMainStatusBar()
getMainStatusBar
in interface UIFunctionsSWT
@Deprecated public void openView(int viewID, Object data)
openView
in interface UIFunctions
public 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 UIFunctions
public boolean isGlobalTransferBarShown()
isGlobalTransferBarShown
in interface UIFunctionsSWT
public void showGlobalTransferBar()
showGlobalTransferBar
in interface UIFunctionsSWT
public void closeGlobalTransferBar()
closeGlobalTransferBar
in interface UIFunctionsSWT
public void refreshTorrentMenu()
refreshTorrentMenu
in interface UIFunctionsSWT
public IMainMenu createMainMenu(org.eclipse.swt.widgets.Shell shell)
UIFunctionsSWT
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. 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 UIFunctionsSWT
public SWTSkin getSkin()
public void setSkin(SWTSkin skin)
public IMainWindow getMainWindow()
getMainWindow
in interface UIFunctionsSWT
public UIUpdater getUIUpdater()
UIFunctions
getUIUpdater
in interface UIFunctions
public void closeAllDetails()
closeAllDetails
in interface UIFunctionsSWT
public boolean hasDetailViews()
hasDetailViews
in interface UIFunctionsSWT
public void performAction(int action_id, Object args, UIFunctions.actionListener listener)
performAction
in interface UIFunctions
public org.eclipse.swt.widgets.Shell showCoreWaitDlg()
showCoreWaitDlg
in interface UIFunctionsSWT
public void doSearch(String sSearchText)
doSearch
in interface UIFunctions
searchText
- public void doSearch(String sSearchText, boolean toSubscribe)
doSearch
in interface UIFunctions
public void promptForSearch()
promptForSearch
in interface UIFunctionsSWT
public MultipleDocumentInterface getMDI()
UIFunctions
getMDI
in interface UIFunctions
public MultipleDocumentInterfaceSWT getMDISWT()
getMDISWT
in interface UIFunctionsSWT
public void showErrorMessage(String keyPrefix, String details, String[] textParams)
showErrorMessage
in interface UIFunctions
keyPrefix
- 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 UIFunctions
public 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 UIFunctions
public void openRemotePairingWindow()
openRemotePairingWindow
in interface UIFunctions
public void playOrStreamDataSource(Object ds, String referal, boolean launch_already_checked, boolean complete_only)
playOrStreamDataSource
in interface UIFunctions
public void setHideAll(boolean hidden)
setHideAll
in interface UIFunctionsSWT
public boolean addTorrentWithOptions(boolean force, TorrentOpenOptions torrentOptions)
UIFunctions
addTorrentWithOptions
in interface UIFunctions
force
- 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 UIFunctionsSWT
options
- See UIFunctions constantspublic void openTorrentWindow()
openTorrentWindow
in interface UIFunctionsSWT
public void showCreateTagDialog(UIFunctions.TagReturner tagReturner)
showCreateTagDialog
in interface UIFunctions
public TabbedMdiInterface createTabbedMDI(org.eclipse.swt.widgets.Composite parent, String id)
createTabbedMDI
in interface UIFunctionsSWT
id
- 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 |