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) voidflush()Resets the stream.protected voidout()Prints the content of the string property to the text property.voidwrite(char[] buf, int off, int len) voidwrite(int c) voidvoidMethods inherited from class java.io.StringWriter
close, getBuffer, toStringMethods 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:
writein classStringWriter
-
write
public void write(char[] buf, int off, int len) - Overrides:
writein classStringWriter
-
write
- Overrides:
writein classStringWriter
-
write
- Overrides:
writein classStringWriter
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classStringWriter
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classStringWriter
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin 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:
flushin interfaceFlushable- Overrides:
flushin classStringWriter
-