summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-01-15 03:26:27 +0100
committerSven Gothel <[email protected]>2020-01-15 03:26:27 +0100
commitf56adf14deadd4ee8f434ea1293e27bcafdf2a90 (patch)
tree1aac2b29acbd458d3e47ac130aeecbcabae3ab47 /src/newt/classes/jogamp
parent85b332e0954af4afc9225eb84d758bee834dc497 (diff)
NEWT.Window: Add 'StringBuilder append(StringBuilder sb)' supporting building custom efficient presentations
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index fbf448480..78da0e0ad 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -2755,9 +2755,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
}
@Override
- public final String toString() {
- final StringBuilder sb = new StringBuilder();
-
+ public final StringBuilder append(final StringBuilder sb) {
sb.append(getClass().getName()+"[State "+getStateMaskString()+
",\n Reconfig "+getSupportedStateMaskString()+
",\n "+screen+
@@ -2791,7 +2789,11 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
sb.append(keyListeners.get(i)+", ");
}
sb.append("], windowLock "+windowLock+", surfaceLockCount "+surfaceLockCount+"]");
- return sb.toString();
+ return sb;
+ }
+ @Override
+ public final String toString() {
+ return append(new StringBuilder()).toString();
}
protected final void setWindowHandle(final long handle) {