Class BasicPluginViewModelImpl
java.lang.Object
com.biglybt.pifimpl.local.ui.model.BasicPluginViewModelImpl
- All Implemented Interfaces:
DataSourceResolver.ExportableDataSource
,BasicPluginViewModel
,PluginViewModel
public class BasicPluginViewModelImpl
extends Object
implements BasicPluginViewModel, DataSourceResolver.ExportableDataSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UITextField
private UITextArea
private String
private UIProgressBar
private String
private UITextField
private UIManagerImpl
Fields inherited from interface com.biglybt.pif.ui.model.BasicPluginViewModel
PR_EXTERNAL_LOG_PAUSE
Fields inherited from interface com.biglybt.core.util.DataSourceResolver.ExportableDataSource
OPT_CAN_MINIMIZE, OPT_ON_TOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attachLoggerChannel
(LoggerChannel channel) Convenience method to configure this model to receive any logged messages on the associated channel and display it in the main window area.void
destroy()
getName()
getProperty
(int property) All UI Components are initially enabled - disable if not requiredvoid
void
setProperty
(int property, Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.core.util.DataSourceResolver.ExportableDataSource
getBooleanOption
-
Field Details
-
ui_manager
-
name
-
status
-
activity
-
log
-
progress
-
sConfigSectionID
-
buttons
-
properties
-
-
Constructor Details
-
BasicPluginViewModelImpl
-
-
Method Details
-
exportDataSource
- Specified by:
exportDataSource
in interfaceDataSourceResolver.ExportableDataSource
-
getName
- Specified by:
getName
in interfacePluginViewModel
-
getStatus
Description copied from interface:BasicPluginViewModel
All UI Components are initially enabled - disable if not required- Specified by:
getStatus
in interfaceBasicPluginViewModel
- Returns:
-
getActivity
- Specified by:
getActivity
in interfaceBasicPluginViewModel
-
addButton
- Specified by:
addButton
in interfaceBasicPluginViewModel
-
getButtons
- Specified by:
getButtons
in interfaceBasicPluginViewModel
-
getPluginInterface
- Specified by:
getPluginInterface
in interfacePluginViewModel
-
getLogArea
- Specified by:
getLogArea
in interfaceBasicPluginViewModel
-
getProgress
- Specified by:
getProgress
in interfaceBasicPluginViewModel
-
setConfigSectionID
- Specified by:
setConfigSectionID
in interfaceBasicPluginViewModel
-
getConfigSectionID
- Specified by:
getConfigSectionID
in interfaceBasicPluginViewModel
- Returns:
-
setProperty
- Specified by:
setProperty
in interfaceBasicPluginViewModel
-
getProperty
- Specified by:
getProperty
in interfaceBasicPluginViewModel
-
destroy
public void destroy()- Specified by:
destroy
in interfacePluginViewModel
-
attachLoggerChannel
Description copied from interface:BasicPluginViewModel
Convenience method to configure this model to receive any logged messages on the associated channel and display it in the main window area.You can handle this manually if you want to, by creating your own
LoggerChannelListener
instance and making it append to the log area on this object.- Specified by:
attachLoggerChannel
in interfaceBasicPluginViewModel
- Parameters:
channel
- The log channel to listen to.
-