Codota Logo
Composite.isVisible
Code IndexAdd Codota 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)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Path (java.nio.file)
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now