congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Composite.isVisible
Code IndexAdd Tabnine to your IDE (free)

How to use
isVisible
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.isVisible (Showing top 20 results out of 315)

origin: BiglySoftware/BiglyBT

@Override
public boolean
isVisible()
{
  return( browser.isVisible());
}
origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.addons.swt

  @Override
  public void controlResized(ControlEvent e) {
    if (hostPane != null && hostPane.isVisible()) {
      setPaneLocation();
    }
  }
};
origin: org.eclipse.e4.ui.workbench.addons/swt

public void controlResized(ControlEvent e) {
  if (hostPane != null && hostPane.isVisible())
    setPaneLocation(hostPane);
}
origin: org.eclipse.platform/org.eclipse.e4.ui.css.swt

  private boolean isReskinRequired(Control control) {
    if (control instanceof Composite) {
      Composite composite = (Composite) control;
      return composite.isVisible() && composite.getChildren().length > 0;
    }
    return false;
  }
}
origin: BiglySoftware/BiglyBT

@Override
public void updateUI() {
  if (viewComposite == null || viewComposite.isDisposed()
      || !viewComposite.isVisible() || view == null) {
    return;
  }
  view.triggerEvent(UISWTViewEvent.TYPE_REFRESH, null);
}
origin: org.eclipse.swt.cocoa.macosx/x86_64

/**
 * Returns <code>true</code> if the receiver is visible and all
 * ancestors up to and including the receiver's nearest ancestor
 * shell are visible. Otherwise, <code>false</code> is returned.
 *
 * @return the receiver's visibility state
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @see #getVisible
 */
public boolean isVisible () {
  checkWidget();
  return getVisible () && parent.isVisible ();
}

origin: org.eclipse.jdt/org.eclipse.jdt.ui

  @Override
  public void widgetSelected(SelectionEvent e) {
    fModifyAllPanel.setVisible(!fModifyAllPanel.isVisible());
    if (fModifyAllPanel.isVisible()) {
      excomposite.setFocus(); // force preview update
      prepareControl();
      fControl.requestLayout();
      fControl.setFocus();
    }
  }
});
origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Returns <code>true</code> if the receiver is visible and all
 * ancestors up to and including the receiver's nearest ancestor
 * shell are visible. Otherwise, <code>false</code> is returned.
 *
 * @return the receiver's visibility state
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @see #getVisible
 */
public boolean isVisible() {
 checkWidget();
 return getVisible() && parent.isVisible();
}
origin: BiglySoftware/BiglyBT

@Override
public void updateUI() {
  Object[] views = topbarViews.toArray();
  for (int i = 0; i < views.length; i++) {
    try {
      UISWTViewCore view = (UISWTViewCore) views[i];
      if (view.getComposite().isVisible()) {
        view.triggerEvent(UISWTViewEvent.TYPE_REFRESH, null);
      }
    } catch (Exception e) {
      Debug.out(e);
    }
  }
}
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

/**
 * Returns <code>true</code> if the receiver is visible and all
 * ancestors up to and including the receiver's nearest ancestor
 * shell are visible. Otherwise, <code>false</code> is returned.
 *
 * @return the receiver's visibility state
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @see #getVisible
 */
public boolean isVisible () {
  checkWidget();
  return getVisible () && parent.isVisible ();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

/**
 * Returns <code>true</code> if the receiver is visible and all
 * ancestors up to and including the receiver's nearest ancestor
 * shell are visible. Otherwise, <code>false</code> is returned.
 *
 * @return the receiver's visibility state
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @see #getVisible
 */
public boolean isVisible () {
  checkWidget();
  return getVisible () && parent.isVisible ();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

/**
 * Returns <code>true</code> if the receiver is visible and all
 * ancestors up to and including the receiver's nearest ancestor
 * shell are visible. Otherwise, <code>false</code> is returned.
 *
 * @return the receiver's visibility state
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @see #getVisible
 */
public boolean isVisible () {
  checkWidget();
  return getVisible () && parent.isVisible ();
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
 * Returns <code>true</code> if the receiver is visible and all
 * ancestors up to and including the receiver's nearest ancestor
 * shell are visible. Otherwise, <code>false</code> is returned.
 *
 * @return the receiver's visibility state
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @see #getVisible
 */
public boolean isVisible () {
  checkWidget ();
  if (OS.IsWindowVisible (handle)) return true;
  return getVisible () && parent.isVisible ();
}

origin: BiglySoftware/BiglyBT

@Override
public void updateUI() {
  Object[] views = pluginViews.toArray();
  for (int i = 0; i < views.length; i++) {
    try {
      UISWTViewCore view = (UISWTViewCore) views[i];
      Composite composite = view.getComposite();
      if ( composite == null ){
        continue;
      }
      if (composite.isDisposed()) {
        pluginViews.remove(view);
        continue;
      }
      if (composite.isVisible()) {
        view.triggerEvent(UISWTViewEvent.TYPE_REFRESH, null);
      }
    } catch (Exception e) {
      Debug.out(e);
    }
  }
  if (tree.getSelectionCount() == 0) {
    return;
  }
  super.updateUI();
}
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void fixActiveShell () {
  if (display.activeShell == this) {
    Shell shell = null;
    if (parent != null && parent.isVisible ()) shell = parent.getShell ();
    if (shell == null && isUndecorated ()) {
      Shell [] shells = display.getShells ();
      for (int i = 0; i < shells.length; i++) {
        if (shells [i] != null && shells [i].isVisible ()) {
          shell = shells [i];
          break;
        }
      }
    }
    if (shell != null) shell.bringToTop (false);
  }
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void fixActiveShell () {
  if (display.activeShell == this) {
    Shell shell = null;
    if (parent != null && parent.isVisible ()) shell = parent.getShell ();
    if (shell == null && isUndecorated ()) {
      Shell [] shells = display.getShells ();
      for (int i = 0; i < shells.length; i++) {
        if (shells [i] != null && shells [i].isVisible ()) {
          shell = shells [i];
          break;
        }
      }
    }
    if (shell != null) shell.bringToTop (false);
  }
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void fixActiveShell () {
  if (display.activeShell == this) {
    Shell shell = null;
    if (parent != null && parent.isVisible ()) shell = parent.getShell ();
    if (shell == null && isUndecorated ()) {
      Shell [] shells = display.getShells ();
      for (int i = 0; i < shells.length; i++) {
        if (shells [i] != null && shells [i].isVisible ()) {
          shell = shells [i];
          break;
        }
      }
    }
    if (shell != null) shell.bringToTop (false);
  }
}

origin: BiglySoftware/BiglyBT

public static Control
findChild(
  Composite    comp,
  int			x,
  int			y )
{
  Rectangle comp_bounds = comp.getBounds();
  if ( comp.isVisible() && comp_bounds.contains( x, y )){
    x -= comp_bounds.x;
    y -= comp_bounds.y;
    Control[] children = comp.getChildren();
    for ( int i = 0; i < children.length; i++){
      Control child = children[i];
      if ( child.isVisible()){
        if (child instanceof Composite) {
          Control res = findChild((Composite) child, x, y );
          if ( res != null ){
            return( res );
          }
        }else{
          return( child );
        }
      }
    }
    return( comp );
  }
  return( null );
}
origin: BiglySoftware/BiglyBT

  private void obfuscatedImage(Composite c, Image image) {
    if (c == null || c.isDisposed() || !c.isVisible()) {
      return;
    }
    Control[] children = c.getChildren();
    for (Control childControl : children) {
      if (!childControl.isVisible()) {
        continue;
      }
      ObfuscateImage oi = (ObfuscateImage) childControl.getData("ObfuscateImage");
      if (oi != null) {
        oi.obfuscatedImage(image);
        continue;
      }
      if (childControl instanceof Composite) {
        obfuscatedImage((Composite) childControl, image);
      }
    }
  }
}
origin: BiglySoftware/BiglyBT

@Override
public boolean isVisible() {
  if (!Utils.isThisThreadSWT()) {
    return isVisible;
  }
  boolean wasVisible = isVisible;
  isVisible = cTable != null && !cTable.isDisposed() && cTable.isVisible()
      && !shell.getMinimized();
  if (isVisible != wasVisible) {
    visibleRowsChanged();
    MdiEntrySWT view = tvTabsCommon == null ? null
        : tvTabsCommon.getActiveSubView();
    if (isVisible) {
      loopFactor = 0;
      if (view != null) {
        view.getMDI().showEntry(view);
      }
    } else {
      if (view != null) {
        view.triggerEvent(UISWTViewEvent.TYPE_FOCUSLOST, null);
      }
    }
  }
  return isVisible;
}
org.eclipse.swt.widgetsCompositeisVisible

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now