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 UITextFieldprivate UITextAreaprivate Stringprivate UIProgressBarprivate Stringprivate UITextFieldprivate UIManagerImplFields inherited from interface BasicPluginViewModel
PR_EXTERNAL_LOG_PAUSEFields inherited from interface DataSourceResolver.ExportableDataSource
OPT_CAN_MINIMIZE, OPT_ON_TOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachLoggerChannel(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.voiddestroy()getName()getProperty(int property) All UI Components are initially enabled - disable if not requiredvoidvoidsetProperty(int property, Object value) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataSourceResolver.ExportableDataSource
getBooleanOption
-
Field Details
-
ui_manager
-
name
-
status
-
activity
-
log
-
progress
-
sConfigSectionID
-
buttons
-
properties
-
-
Constructor Details
-
BasicPluginViewModelImpl
-
-
Method Details
-
exportDataSource
- Specified by:
exportDataSourcein interfaceDataSourceResolver.ExportableDataSource
-
getName
- Specified by:
getNamein interfacePluginViewModel
-
getStatus
Description copied from interface:BasicPluginViewModelAll UI Components are initially enabled - disable if not required- Specified by:
getStatusin interfaceBasicPluginViewModel- Returns:
-
getActivity
- Specified by:
getActivityin interfaceBasicPluginViewModel
-
addButton
- Specified by:
addButtonin interfaceBasicPluginViewModel
-
getButtons
- Specified by:
getButtonsin interfaceBasicPluginViewModel
-
getPluginInterface
- Specified by:
getPluginInterfacein interfacePluginViewModel
-
getLogArea
- Specified by:
getLogAreain interfaceBasicPluginViewModel
-
getProgress
- Specified by:
getProgressin interfaceBasicPluginViewModel
-
setConfigSectionID
- Specified by:
setConfigSectionIDin interfaceBasicPluginViewModel- Parameters:
id-
-
getConfigSectionID
- Specified by:
getConfigSectionIDin interfaceBasicPluginViewModel- Returns:
-
setProperty
- Specified by:
setPropertyin interfaceBasicPluginViewModel
-
getProperty
- Specified by:
getPropertyin interfaceBasicPluginViewModel
-
destroy
public void destroy()- Specified by:
destroyin interfacePluginViewModel
-
attachLoggerChannel
Description copied from interface:BasicPluginViewModelConvenience 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
LoggerChannelListenerinstance and making it append to the log area on this object.- Specified by:
attachLoggerChannelin interfaceBasicPluginViewModel- Parameters:
channel- The log channel to listen to.
-