|
|||||||||
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(java.lang.String viewID,
UISWTViewEventListener l)
|
boolean |
addTorrentWithOptions(boolean force,
TorrentOpenOptions torrentOptions)
Opens the Torrent Add Options Window, if configured to |
boolean |
addTorrentWithOptions(TorrentOpenOptions torrentOptions,
java.util.Map<java.lang.String,java.lang.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(java.lang.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,
java.lang.String id)
|
boolean |
dispose(boolean for_restart,
boolean close_already_in_progress)
Request the UI be shut down. |
void |
doSearch(java.lang.String sSearchText)
|
void |
doSearch(java.lang.String sSearchText,
boolean toSubscribe)
|
void |
forceNotify(int iconID,
java.lang.String title,
java.lang.String text,
java.lang.String details,
java.lang.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(java.lang.String title,
java.lang.String text,
java.lang.String[] buttons,
int defaultOption)
|
int |
getVisibilityState()
|
boolean |
hasDetailViews()
|
void |
installPlugin(java.lang.String plugin_id,
java.lang.String resource_prefix,
UIFunctions.actionListener listener)
|
boolean |
isGlobalTransferBarShown()
|
boolean |
isProgramInstalled(java.lang.String extension,
java.lang.String name)
|
void |
openPluginView(java.lang.String sParentID,
java.lang.String sViewID,
UISWTViewEventListener l,
java.lang.Object dataSource,
boolean bSetFocus)
|
void |
openRemotePairingWindow()
|
void |
openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell,
java.lang.String sPathOfFilesToOpen,
java.lang.String[] sFilesToOpen,
boolean defaultToStopped,
boolean forceOpen)
|
void |
openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell,
java.lang.String sPathOfFilesToOpen,
java.lang.String[] sFilesToOpen,
java.util.Map<java.lang.String,java.lang.Object> options)
|
void |
openTorrentWindow()
|
void |
openView(int viewID,
java.lang.Object data)
Deprecated. |
void |
performAction(int action_id,
java.lang.Object args,
UIFunctions.actionListener listener)
|
void |
playOrStreamDataSource(java.lang.Object ds,
java.lang.String referal,
boolean launch_already_checked,
boolean complete_only)
|
void |
promptForSearch()
|
void |
promptUser(java.lang.String title,
java.lang.String text,
java.lang.String[] buttons,
int defaultOption,
java.lang.String rememberID,
java.lang.String rememberText,
boolean rememberByDefault,
int autoCloseInMS,
UserPrompterResultListener l)
|
void |
refreshIconBar()
|
void |
refreshLanguage()
Change/Refresh the language of the UI |
void |
refreshTorrentMenu()
|
void |
removePluginView(java.lang.String viewID)
|
void |
runOnUIThread(int ui_type,
java.lang.Runnable runnable)
|
void |
setHideAll(boolean hidden)
|
void |
setSkin(SWTSkin skin)
|
void |
setStatusText(int statustype,
java.lang.String string,
UIStatusTextClickListener l)
|
void |
setStatusText(java.lang.String string)
|
org.eclipse.swt.widgets.Shell |
showCoreWaitDlg()
|
void |
showCreateTagDialog(UIFunctions.TagReturner tagReturner)
|
void |
showErrorMessage(java.lang.String keyPrefix,
java.lang.String details,
java.lang.String[] textParams)
|
void |
showGlobalTransferBar()
|
boolean |
viewURL(java.lang.String url,
java.lang.String target,
double w,
double h,
boolean allowResize,
boolean isModal)
|
boolean |
viewURL(java.lang.String url,
java.lang.String target,
int w,
int h,
boolean allowResize,
boolean isModal)
|
void |
viewURL(java.lang.String url,
java.lang.String target,
java.lang.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(java.lang.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(java.lang.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(java.lang.String sParentID, java.lang.String sViewID, UISWTViewEventListener l, java.lang.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(java.lang.String viewID)
removePluginView
in interface UIFunctionsSWT
public void setStatusText(java.lang.String string)
setStatusText
in interface UIFunctions
public void setStatusText(int statustype, java.lang.String string, UIStatusTextClickListener l)
setStatusText
in interface UIFunctions
public IMainStatusBar getMainStatusBar()
getMainStatusBar
in interface UIFunctionsSWT
@Deprecated public void openView(int viewID, java.lang.Object data)
openView
in interface UIFunctions
public UISWTInstance getUISWTInstance()
getUISWTInstance
in interface UIFunctionsSWT
public void viewURL(java.lang.String url, java.lang.String target, java.lang.String sourceRef)
viewURL
in interface UIFunctions
public boolean viewURL(java.lang.String url, java.lang.String target, int w, int h, boolean allowResize, boolean isModal)
viewURL
in interface UIFunctions
public boolean viewURL(java.lang.String url, java.lang.String target, double w, double h, boolean allowResize, boolean isModal)
viewURL
in interface UIFunctions
public void promptUser(java.lang.String title, java.lang.String text, java.lang.String[] buttons, int defaultOption, java.lang.String rememberID, java.lang.String rememberText, boolean rememberByDefault, int autoCloseInMS, UserPrompterResultListener l)
promptUser
in interface UIFunctions
public UIFunctionsUserPrompter getUserPrompter(java.lang.String title, java.lang.String text, java.lang.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, java.lang.Object args, UIFunctions.actionListener listener)
performAction
in interface UIFunctions
public org.eclipse.swt.widgets.Shell showCoreWaitDlg()
showCoreWaitDlg
in interface UIFunctionsSWT
public void doSearch(java.lang.String sSearchText)
doSearch
in interface UIFunctions
searchText
- public void doSearch(java.lang.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(java.lang.String keyPrefix, java.lang.String details, java.lang.String[] textParams)
showErrorMessage
in interface UIFunctions
keyPrefix
- details
- may not get displayedtextParams
- public void forceNotify(int iconID, java.lang.String title, java.lang.String text, java.lang.String details, java.lang.Object[] relatedObjects, int timeoutSecs)
UIFunctions
forceNotify
in interface UIFunctions
public void installPlugin(java.lang.String plugin_id, java.lang.String resource_prefix, UIFunctions.actionListener listener)
installPlugin
in interface UIFunctions
public UIToolBarManager getToolBarManager()
getToolBarManager
in interface UIFunctionsSWT
public void runOnUIThread(int ui_type, java.lang.Runnable runnable)
runOnUIThread
in interface UIFunctions
public boolean isProgramInstalled(java.lang.String extension, java.lang.String name)
isProgramInstalled
in interface UIFunctions
public void openRemotePairingWindow()
openRemotePairingWindow
in interface UIFunctions
public void playOrStreamDataSource(java.lang.Object ds, java.lang.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, java.util.Map<java.lang.String,java.lang.Object> addOptions)
addTorrentWithOptions
in interface UIFunctions
public void openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell, java.lang.String sPathOfFilesToOpen, java.lang.String[] sFilesToOpen, boolean defaultToStopped, boolean forceOpen)
openTorrentOpenOptions
in interface UIFunctionsSWT
public void openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell, java.lang.String sPathOfFilesToOpen, java.lang.String[] sFilesToOpen, java.util.Map<java.lang.String,java.lang.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, java.lang.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 |