org.gudy.azureus2.ui.swt.views
Class ViewUtils
java.lang.Object
org.gudy.azureus2.ui.swt.views.ViewUtils
public class ViewUtils
- extends Object
- Author:
- parg
Method Summary |
static ViewUtils.CustomDateFormat |
addCustomDateFormat(CoreTableColumn column)
|
static void |
addSpeedMenu(org.eclipse.swt.widgets.Shell shell,
org.eclipse.swt.widgets.Menu menuAdvanced,
boolean doUpMenu,
boolean doDownMenu,
boolean isTorrentContext,
boolean hasSelection,
boolean downSpeedDisabled,
boolean downSpeedUnlimited,
long totalDownSpeed,
long downSpeedSetMax,
long maxDownload,
boolean upSpeedDisabled,
boolean upSpeedUnlimited,
long totalUpSpeed,
long upSpeedSetMax,
long maxUpload,
int num_entries,
Map<String,Object> _properties,
ViewUtils.SpeedAdapter adapter)
|
static String |
formatETA(long value,
boolean absolute,
SimpleDateFormat override)
|
static int |
getManualSharedSpeedValue(org.eclipse.swt.widgets.Shell shell,
boolean for_download,
int num_entries)
|
static int |
getManualSpeedValue(org.eclipse.swt.widgets.Shell shell,
boolean for_download)
|
static void |
refreshToolBarItems(DownloadManager manager,
Map<String,Long> list)
|
static boolean |
toolBarItemActivated(DownloadManager manager,
ToolBarItem item,
long activationType,
Object datasource)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SM_PROP_PERMIT_UPLOAD_DISABLE
public static final String SM_PROP_PERMIT_UPLOAD_DISABLE
- See Also:
- Constant Field Values
SM_PROP_PERMIT_DOWNLOAD_DISABLE
public static final String SM_PROP_PERMIT_DOWNLOAD_DISABLE
- See Also:
- Constant Field Values
ViewUtils
public ViewUtils()
formatETA
public static String formatETA(long value,
boolean absolute,
SimpleDateFormat override)
addCustomDateFormat
public static ViewUtils.CustomDateFormat addCustomDateFormat(CoreTableColumn column)
addSpeedMenu
public static void addSpeedMenu(org.eclipse.swt.widgets.Shell shell,
org.eclipse.swt.widgets.Menu menuAdvanced,
boolean doUpMenu,
boolean doDownMenu,
boolean isTorrentContext,
boolean hasSelection,
boolean downSpeedDisabled,
boolean downSpeedUnlimited,
long totalDownSpeed,
long downSpeedSetMax,
long maxDownload,
boolean upSpeedDisabled,
boolean upSpeedUnlimited,
long totalUpSpeed,
long upSpeedSetMax,
long maxUpload,
int num_entries,
Map<String,Object> _properties,
ViewUtils.SpeedAdapter adapter)
getManualSpeedValue
public static int getManualSpeedValue(org.eclipse.swt.widgets.Shell shell,
boolean for_download)
getManualSharedSpeedValue
public static int getManualSharedSpeedValue(org.eclipse.swt.widgets.Shell shell,
boolean for_download,
int num_entries)
toolBarItemActivated
public static boolean toolBarItemActivated(DownloadManager manager,
ToolBarItem item,
long activationType,
Object datasource)
refreshToolBarItems
public static void refreshToolBarItems(DownloadManager manager,
Map<String,Long> list)