java.lang.Object
java.io.Writer
java.io.StringWriter
com.adventure.utils.StringPropertyWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Writer used for handling a StringProperty.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionStringPropertyWriter
(javafx.beans.property.StringProperty prop) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) append
(CharSequence csq) append
(CharSequence csq, int start, int end) void
flush()
Resets the stream.protected void
out()
Prints the content of the string property to the text property.void
write
(char[] buf, int off, int len) void
write
(int c) void
void
Methods inherited from class java.io.StringWriter
close, getBuffer, toString
Methods inherited from class java.io.Writer
nullWriter, write
-
Constructor Details
-
StringPropertyWriter
public StringPropertyWriter(javafx.beans.property.StringProperty prop) Constructor.- Parameters:
prop
- Target object.
-
-
Method Details
-
write
public void write(int c) - Overrides:
write
in classStringWriter
-
write
public void write(char[] buf, int off, int len) - Overrides:
write
in classStringWriter
-
write
- Overrides:
write
in classStringWriter
-
write
- Overrides:
write
in classStringWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classStringWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classStringWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classStringWriter
-
out
protected void out()Prints the content of the string property to the text property. -
flush
public void flush()Resets the stream.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classStringWriter
-