Class UITextAreaImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.ui.config.ParameterImpl
-
- com.biglybt.pifimpl.local.ui.config.UITextAreaImpl
-
- All Implemented Interfaces:
ParameterListener
,ConfigParameter
,UIComponent
,UITextArea
,EnablerParameter
,Parameter
public class UITextAreaImpl extends ParameterImpl implements UITextArea
-
-
Field Summary
Fields Modifier and Type Field Description private UITextAreaImpl
text_area
-
Fields inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
configKey
-
Fields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
Fields inherited from interface com.biglybt.pif.ui.components.UIComponent
PT_ENABLED, PT_HEIGHT_HINT, PT_SELECTED, PT_VALUE, PT_VISIBLE, PT_WIDTH_HINT
-
Fields inherited from interface com.biglybt.pif.ui.components.UITextArea
DEFAULT_MAX_SIZE
-
-
Constructor Summary
Constructors Constructor Description UITextAreaImpl(java.lang.String resource_name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(UIPropertyChangeListener l)
void
appendText(java.lang.String text)
Appends the supplied text to the existing text valueboolean
getEnabled()
java.lang.Object
getProperty(java.lang.String property_type)
java.lang.String
getText()
java.lang.Object
getValueObject()
Retrieve the parameter's value as an Object.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 valuevoid
setVisible(boolean visible)
Sets whether the UI object for this parameter is visible to the user-
Methods inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
addConfigParameterListener, addDisabledOnSelection, addDisabledOnSelection, addEnabledOnSelection, addEnabledOnSelection, addImplListener, addListener, addValidator, destroy, fireParameterChanged, getConfigKeyName, getDisabledOnSelectionParameters, getEnabledOnSelectionParameters, getGenerateIntermediateEvents, getGroup, getIndent, getKey, getLabelKey, getLabelText, getMinimumRequiredUserMode, getReferenceID, hasBeenSet, isEnabled, isForUIType, isIndentFancy, isVisible, parameterChanged, refreshControl, removeConfigParameterListener, removeImplListener, removeListener, resetToDefault, search, setAllowedUiTypes, setGenerateIntermediateEvents, setGroup, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setReferenceID, validate
-
-
-
-
Field Detail
-
text_area
private UITextAreaImpl text_area
-
-
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 interfaceUITextArea
-
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 interfaceUITextArea
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceUITextArea
-
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 interfaceUITextArea
-
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 interfaceParameter
- Specified by:
setEnabled
in interfaceUIComponent
- Overrides:
setEnabled
in classParameterImpl
- Parameters:
enabled
- The new enabled state
-
getEnabled
public boolean getEnabled()
- Specified by:
getEnabled
in interfaceUIComponent
-
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 interfaceParameter
- Specified by:
setVisible
in interfaceUIComponent
- Overrides:
setVisible
in classParameterImpl
- Parameters:
visible
- The new visibility state
-
getVisible
public boolean getVisible()
- Specified by:
getVisible
in interfaceUIComponent
-
setProperty
public void setProperty(java.lang.String property_type, java.lang.Object property_value)
- Specified by:
setProperty
in interfaceUIComponent
-
getProperty
public java.lang.Object getProperty(java.lang.String property_type)
- Specified by:
getProperty
in interfaceUIComponent
-
addPropertyChangeListener
public void addPropertyChangeListener(UIPropertyChangeListener l)
- Specified by:
addPropertyChangeListener
in interfaceUIComponent
-
removePropertyChangeListener
public void removePropertyChangeListener(UIPropertyChangeListener l)
- Specified by:
removePropertyChangeListener
in interfaceUIComponent
-
getValueObject
public java.lang.Object getValueObject()
Description copied from interface:Parameter
Retrieve the parameter's value as an Object. Subclasses will usually have a getValue() that will return a specific type.- Specified by:
getValueObject
in interfaceParameter
- Overrides:
getValueObject
in classParameterImpl
-
-