Permalink
Browse files

added hideChildren() function to hide all windows

  • Loading branch information...
odbol committed May 19, 2011
1 parent 2cab82c commit 8a3c574bd82505dc2c984a948447c46a9ca9f568
Showing with 12 additions and 2 deletions.
  1. +1 −1 .classpath
  2. +11 −0 src/controlP5/ControlP5.java
  3. +0 −1 src/controlP5/PAppletWindow.java
View
@@ -2,6 +2,6 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="lib" path="lib/core.jar"/>
+ <classpathentry kind="lib" path="lib/core.jar" sourcepath="/Volumes/EIN/DocumentsREAL/Development/Android/processing/processing/core"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -771,6 +771,17 @@ public boolean isVisible() {
public void hide() {
controlWindow.hide();
}
+
+ /**
+ * hide all child controlWindows except this one.
+ */
+ public void hideChildren() {
+ for (int i = controlWindowList.size() - 1; i >= 0; i--) {
+ ControlWindow c = controlWindowList.get(i);
+ if (c != controlWindow)
+ c.hide();
+ }
+ }
public void update() {
for (Enumeration<ControlWindow> e = controlWindowList.elements(); e.hasMoreElements();) {
@@ -459,5 +459,4 @@ private void launch() {
frame.setVisible(true);
requestFocus();
}
-
}

0 comments on commit 8a3c574

Please sign in to comment.