Package com.biglybt.ui.swt.subscriptions
Class SubscriptionMDIEntry
- java.lang.Object
-
- com.biglybt.ui.swt.subscriptions.SubscriptionMDIEntry
-
- All Implemented Interfaces:
SubscriptionListener
,ViewTitleInfo
public class SubscriptionMDIEntry extends java.lang.Object implements SubscriptionListener, ViewTitleInfo
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ALERT_IMAGE_ID
private static java.lang.String
AUTH_IMAGE_ID
private java.lang.String
current_parent
private MdiEntry
mdiEntry
(package private) MdiEntryVitalityImage
spinnerImage
private Subscription
subs
private MdiEntryVitalityImage
warningImage
-
Fields inherited from interface com.biglybt.core.subs.SubscriptionListener
CR_METADATA, CR_RESULTS
-
Fields inherited from interface com.biglybt.ui.common.viewtitleinfo.ViewTitleInfo
TITLE_ACTIVE_STATE, TITLE_EXPORTABLE_DATASOURCE, TITLE_IMAGE_TOOLTIP, TITLE_IMAGEID, TITLE_INDICATOR_COLOR, TITLE_INDICATOR_TEXT, TITLE_INDICATOR_TEXT_TOOLTIP, TITLE_TEXT
-
-
Constructor Summary
Constructors Constructor Description SubscriptionMDIEntry(Subscription subs, MdiEntry entry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getCurrentParent()
java.lang.Object
getTitleInfoProperty(int propertyID)
protected boolean
isDisposed()
protected void
refreshView()
protected void
removeWithConfirm()
private void
setupMdiEntry()
protected static java.lang.String
setupMenus(Subscription subs, java.lang.Runnable refresher)
protected void
setWarning()
void
subscriptionChanged(Subscription subs, int reason)
void
subscriptionDownloaded(Subscription subs)
-
-
-
Field Detail
-
ALERT_IMAGE_ID
private static final java.lang.String ALERT_IMAGE_ID
- See Also:
- Constant Field Values
-
AUTH_IMAGE_ID
private static final java.lang.String AUTH_IMAGE_ID
- See Also:
- Constant Field Values
-
mdiEntry
private final MdiEntry mdiEntry
-
spinnerImage
MdiEntryVitalityImage spinnerImage
-
warningImage
private MdiEntryVitalityImage warningImage
-
subs
private final Subscription subs
-
current_parent
private java.lang.String current_parent
-
-
Constructor Detail
-
SubscriptionMDIEntry
public SubscriptionMDIEntry(Subscription subs, MdiEntry entry)
-
-
Method Detail
-
setupMdiEntry
private void setupMdiEntry()
-
setupMenus
protected static java.lang.String setupMenus(Subscription subs, java.lang.Runnable refresher)
-
getCurrentParent
protected java.lang.String getCurrentParent()
-
isDisposed
protected boolean isDisposed()
-
subscriptionDownloaded
public void subscriptionDownloaded(Subscription subs)
- Specified by:
subscriptionDownloaded
in interfaceSubscriptionListener
-
subscriptionChanged
public void subscriptionChanged(Subscription subs, int reason)
- Specified by:
subscriptionChanged
in interfaceSubscriptionListener
-
refreshView
protected void refreshView()
-
setWarning
protected void setWarning()
-
getTitleInfoProperty
public java.lang.Object getTitleInfoProperty(int propertyID)
- Specified by:
getTitleInfoProperty
in interfaceViewTitleInfo
- Parameters:
propertyID
- TITLE_*- Returns:
- value, or null if you don't want to set it
-
removeWithConfirm
protected void removeWithConfirm()
-
-