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 UIComponent
UIComponent.RefreshListener -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) int(package private) LinkedList<String> (package private) FrequencyLimitedDispatcherprivate final boolean(package private) AEMonitorprivate intprivate int(package private) File(package private) UITextAreaImpl.PoopWriter(package private) booleanFields inherited from interface UIComponent
PT_ENABLED, PT_HEIGHT_HINT, PT_SELECTED, PT_VALUE, PT_VISIBLE, PT_WIDTH_HINTFields inherited from interface UITextArea
DEFAULT_MAX_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidappendText(String text) Appends the supplied text to the existing text valueprotected voidprivate StringgetText()voidsetMaximumSize(int _max_size) Limits the maximum size of text held by the area.voidSetting values results in a PT_VALUE property change with a String valueMethods inherited from class UIComponentImpl
addRefreshListener, getEnabled, getProperty, getVisible, refresh, removePropertyChangeListener, removeRefreshListener, setEnabled, setProperty, setVisibleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:UITextAreaSetting values results in a PT_VALUE property change with a String value- Specified by:
setTextin interfaceUITextArea
-
appendText
Description copied from interface:UITextAreaAppends the supplied text to the existing text value- Specified by:
appendTextin interfaceUITextArea- Parameters:
text-
-
delayAppend
protected void delayAppend() -
getText
- Specified by:
getTextin interfaceUITextArea
-
setMaximumSize
public void setMaximumSize(int _max_size) Description copied from interface:UITextAreaLimits 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:
setMaximumSizein interfaceUITextArea
-
getFileText
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceUIComponent- Overrides:
addPropertyChangeListenerin classUIComponentImpl
-