org.gudy.azureus2.pluginsimpl.local.ui.config
Class UITextAreaImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.ui.config.ParameterImpl
      extended by org.gudy.azureus2.pluginsimpl.local.ui.config.UITextAreaImpl
All Implemented Interfaces:
ParameterListener, ConfigParameter, UIComponent, UITextArea, EnablerParameter, Parameter

public class UITextAreaImpl
extends ParameterImpl
implements UITextArea


Field Summary
 
Fields inherited from class org.gudy.azureus2.pluginsimpl.local.ui.config.ParameterImpl
config
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.components.UITextArea
DEFAULT_MAX_SIZE
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.components.UIComponent
PT_ENABLED, PT_HEIGHT_HINT, PT_VALUE, PT_VISIBLE, PT_WIDTH_HINT
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
 
Constructor Summary
UITextAreaImpl(PluginConfigImpl config, java.lang.String resource_name)
           
 
Method Summary
 void addPropertyChangeListener(UIPropertyChangeListener l)
           
 void appendText(java.lang.String text)
          Appends the supplied text to the existing text value
 boolean getEnabled()
           
 java.lang.Object getProperty(java.lang.String property_type)
           
 java.lang.String getText()
           
 boolean getVisible()
           
 void removePropertyChangeListener(UIPropertyChangeListener l)
           
 void setEnabled(boolean enabled)
          Sets whether the UI object for this parameter is enabled (changeable) or disabled (not changeable, and usually grayed out)
 void setMaximumSize(int max_size)
          Limits the maximum size of text held by the area.
 void setProperty(java.lang.String property_type, java.lang.Object property_value)
           
 void setText(java.lang.String text)
          Setting values results in a PT_VALUE property change with a String value
 void setVisible(boolean visible)
          Sets whether the UI object for this parameter is visible to the user
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.local.ui.config.ParameterImpl
addConfigParameterListener, addDisabledOnSelection, addEnabledOnSelection, addImplListener, addListener, destroy, fireParameterChanged, getConfigKeyName, getDisabledOnSelectionParameters, getEnabledOnSelectionParameters, getGenerateIntermediateEvents, getGroup, getKey, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isVisible, parameterChanged, removeConfigParameterListener, removeImplListener, removeListener, setGenerateIntermediateEvents, setGroup, setLabelKey, setLabelText, setMinimumRequiredUserMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UITextAreaImpl

public UITextAreaImpl(PluginConfigImpl config,
                      java.lang.String resource_name)
Method Detail

setText

public void setText(java.lang.String text)
Description copied from interface: UITextArea
Setting values results in a PT_VALUE property change with a String value

Specified by:
setText in interface UITextArea

appendText

public void appendText(java.lang.String text)
Description copied from interface: UITextArea
Appends the supplied text to the existing text value

Specified by:
appendText in interface UITextArea

getText

public java.lang.String getText()
Specified by:
getText in interface UITextArea

setMaximumSize

public void setMaximumSize(int max_size)
Description copied from interface: UITextArea
Limits the maximum size of text held by the area. When then size is exceeded the text will be truncated (text at the start of the string is removed, NOT the end) All areas have a default max size as defined by the constant above

Specified by:
setMaximumSize in interface UITextArea

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: Parameter
Sets whether the UI object for this parameter is enabled (changeable) or disabled (not changeable, and usually grayed out)

Specified by:
setEnabled in interface UIComponent
Specified by:
setEnabled in interface Parameter
Overrides:
setEnabled in class ParameterImpl
Parameters:
enabled - The new enabled state

getEnabled

public boolean getEnabled()
Specified by:
getEnabled in interface UIComponent

setVisible

public void setVisible(boolean visible)
Description copied from interface: Parameter
Sets whether the UI object for this parameter is visible to the user

Specified by:
setVisible in interface UIComponent
Specified by:
setVisible in interface Parameter
Overrides:
setVisible in class ParameterImpl
Parameters:
visible - The new visibility state

getVisible

public boolean getVisible()
Specified by:
getVisible in interface UIComponent

setProperty

public void setProperty(java.lang.String property_type,
                        java.lang.Object property_value)
Specified by:
setProperty in interface UIComponent

getProperty

public java.lang.Object getProperty(java.lang.String property_type)
Specified by:
getProperty in interface UIComponent

addPropertyChangeListener

public void addPropertyChangeListener(UIPropertyChangeListener l)
Specified by:
addPropertyChangeListener in interface UIComponent

removePropertyChangeListener

public void removePropertyChangeListener(UIPropertyChangeListener l)
Specified by:
removePropertyChangeListener in interface UIComponent