Class BasicPluginViewModelImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.ui.model.BasicPluginViewModelImpl
-
- All Implemented Interfaces:
BasicPluginViewModel
,PluginViewModel
public class BasicPluginViewModelImpl extends java.lang.Object implements BasicPluginViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private UITextField
activity
private java.util.List<UIButton>
buttons
private UITextArea
log
private java.lang.String
name
private UIProgressBar
progress
private java.util.Map<java.lang.Integer,java.lang.Object>
properties
private java.lang.String
sConfigSectionID
private UITextField
status
private UIManagerImpl
ui_manager
-
Fields inherited from interface com.biglybt.pif.ui.model.BasicPluginViewModel
PR_EXTERNAL_LOG_PAUSE
-
-
Constructor Summary
Constructors Constructor Description BasicPluginViewModelImpl(UIManagerImpl _ui_manager, java.lang.String _name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UIButton
addButton()
void
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()
UITextField
getActivity()
java.util.List<UIButton>
getButtons()
java.lang.String
getConfigSectionID()
UITextArea
getLogArea()
java.lang.String
getName()
PluginInterface
getPluginInterface()
UIProgressBar
getProgress()
java.lang.Object
getProperty(int property)
UITextField
getStatus()
All UI Components are initially enabled - disable if not requiredvoid
setConfigSectionID(java.lang.String id)
void
setProperty(int property, java.lang.Object value)
-
-
-
Field Detail
-
ui_manager
private UIManagerImpl ui_manager
-
name
private java.lang.String name
-
status
private UITextField status
-
activity
private UITextField activity
-
log
private UITextArea log
-
progress
private UIProgressBar progress
-
sConfigSectionID
private java.lang.String sConfigSectionID
-
buttons
private java.util.List<UIButton> buttons
-
properties
private java.util.Map<java.lang.Integer,java.lang.Object> properties
-
-
Constructor Detail
-
BasicPluginViewModelImpl
public BasicPluginViewModelImpl(UIManagerImpl _ui_manager, java.lang.String _name)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacePluginViewModel
-
getStatus
public UITextField getStatus()
Description copied from interface:BasicPluginViewModel
All UI Components are initially enabled - disable if not required- Specified by:
getStatus
in interfaceBasicPluginViewModel
- Returns:
-
getActivity
public UITextField getActivity()
- Specified by:
getActivity
in interfaceBasicPluginViewModel
-
addButton
public UIButton addButton()
- Specified by:
addButton
in interfaceBasicPluginViewModel
-
getButtons
public java.util.List<UIButton> getButtons()
- Specified by:
getButtons
in interfaceBasicPluginViewModel
-
getPluginInterface
public PluginInterface getPluginInterface()
- Specified by:
getPluginInterface
in interfacePluginViewModel
-
getLogArea
public UITextArea getLogArea()
- Specified by:
getLogArea
in interfaceBasicPluginViewModel
-
getProgress
public UIProgressBar getProgress()
- Specified by:
getProgress
in interfaceBasicPluginViewModel
-
setConfigSectionID
public void setConfigSectionID(java.lang.String id)
- Specified by:
setConfigSectionID
in interfaceBasicPluginViewModel
-
getConfigSectionID
public java.lang.String getConfigSectionID()
- Specified by:
getConfigSectionID
in interfaceBasicPluginViewModel
- Returns:
-
setProperty
public void setProperty(int property, java.lang.Object value)
- Specified by:
setProperty
in interfaceBasicPluginViewModel
-
getProperty
public java.lang.Object getProperty(int property)
- Specified by:
getProperty
in interfaceBasicPluginViewModel
-
destroy
public void destroy()
- Specified by:
destroy
in interfacePluginViewModel
-
attachLoggerChannel
public void attachLoggerChannel(LoggerChannel channel)
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.
-
-