@Override public boolean isVisible() { return( browser.isVisible()); }
@Override public void controlResized(ControlEvent e) { if (hostPane != null && hostPane.isVisible()) { setPaneLocation(); } } };
public void controlResized(ControlEvent e) { if (hostPane != null && hostPane.isVisible()) setPaneLocation(hostPane); }
private boolean isReskinRequired(Control control) { if (control instanceof Composite) { Composite composite = (Composite) control; return composite.isVisible() && composite.getChildren().length > 0; } return false; } }
@Override public void updateUI() { if (viewComposite == null || viewComposite.isDisposed() || !viewComposite.isVisible() || view == null) { return; } view.triggerEvent(UISWTViewEvent.TYPE_REFRESH, null); }
/** * 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 (); }
/** * 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(); }
@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); } } }
/** * 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 (); }
/** * 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 (); }
/** * 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 (); }
/** * 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 (); }
@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(); }
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); } }
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); } }
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); } }
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 ); }
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); } } } }
@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; }