Setting visibility on elements with boolean

I posted about this in another thread but I can’t find it.

There isn’t a method to set an element visible/invisible using a boolean like setVisible(true/false) so I made one.

This patch file was generated by NetBeans IDE

It uses platform neutral UTF-8 encoding and \n newlines.

— Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -1868,6 +1868,14 @@

  •    public void setIsVisible(boolean visibleState) {
  •        if (visibleState) {
  •            show();
  •        } else {
  •            hide();
  •        }
  •    }
  • /**
    • Recursive call that sets this Element and any Element contained within it’s
    • nesting order to hidden.
1 Like

Thanks a ton for posting this.

Sorry I haven’t gotten this (or anything else on this project) updated, but I didn’t want to touch it until I resolved the issues I am having with reinstalling the SDK.

I have one finally issue I’m trying to fix and then I can get this updated.

I just don’t want to accidentally corrupt anything while the issues persist. Paranoia.

No biggie. Look at it as a reminder. :wink:

@madjack said: No biggie. Look at it as a reminder. ;)

I couldn’t find the original post about this either… I was in the process of adding this when my machine went pbpbpbpb. (Well, in the process of trying to find the post when things went south).

This has been added. Thanks again!