Class UITextAreaImpl
java.lang.Object
com.biglybt.pifimpl.local.ui.components.UIComponentImpl
com.biglybt.pifimpl.local.ui.components.UITextAreaImpl
- All Implemented Interfaces:
UIComponent
,UITextArea
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.biglybt.pif.ui.components.UIComponent
UIComponent.RefreshListener
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) int
(package private) LinkedList<String>
(package private) FrequencyLimitedDispatcher
private final boolean
(package private) AEMonitor
private int
private int
(package private) File
(package private) UITextAreaImpl.PoopWriter
(package private) boolean
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
appendText
(String text) Appends the supplied text to the existing text valueprotected void
private String
getText()
void
setMaximumSize
(int _max_size) Limits the maximum size of text held by the area.void
Setting values results in a PT_VALUE property change with a String valueMethods inherited from class com.biglybt.pifimpl.local.ui.components.UIComponentImpl
addRefreshListener, getEnabled, getProperty, getVisible, refresh, removePropertyChangeListener, removeRefreshListener, setEnabled, setProperty, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.pif.ui.components.UIComponent
addRefreshListener, getEnabled, getProperty, getVisible, refresh, removePropertyChangeListener, removeRefreshListener, setEnabled, setProperty, setVisible
-
Field Details
-
enable_history
private final boolean enable_history -
max_size
private int max_size -
max_file_size
private int max_file_size -
pw
-
current_file_size
int current_file_size -
poop_file
File poop_file -
useFile
boolean useFile -
file_mon
AEMonitor file_mon -
delay_text
LinkedList<String> delay_text -
delay_size
int delay_size -
dispatcher
FrequencyLimitedDispatcher dispatcher
-
-
Constructor Details
-
UITextAreaImpl
public UITextAreaImpl()
-
-
Method Details
-
setText
Description copied from interface:UITextArea
Setting values results in a PT_VALUE property change with a String value- Specified by:
setText
in interfaceUITextArea
-
appendText
Description copied from interface:UITextArea
Appends the supplied text to the existing text value- Specified by:
appendText
in interfaceUITextArea
-
delayAppend
protected void delayAppend() -
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
-
getFileText
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceUIComponent
- Overrides:
addPropertyChangeListener
in classUIComponentImpl
-