Composite findDeferredControl () { return layoutCount > 0 ? this : parent.findDeferredControl (); }
Composite findDeferredControl () { return layoutCount > 0 ? this : parent.findDeferredControl (); }
Composite findDeferredControl () { return layoutCount > 0 ? this : parent.findDeferredControl (); }
Composite findDeferredControl () { return layoutCount > 0 ? this : parent.findDeferredControl (); }
Composite findDeferredControl () { return layoutCount > 0 ? this : parent.findDeferredControl (); }
Composite findDeferredControl() { return layoutCount > 0 ? this : _getParent().findDeferredControl(); }
/** * Returns <code>true</code> if the receiver or any ancestor * up to and including the receiver's nearest ancestor shell * has deferred the performing of layouts. Otherwise, <code>false</code> * is returned. * * @return the receiver's deferred layout 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 #setLayoutDeferred(boolean) * @see #getLayoutDeferred() */ public boolean isLayoutDeferred() { checkWidget(); return findDeferredControl() != null; }
/** * Returns <code>true</code> if the receiver or any ancestor * up to and including the receiver's nearest ancestor shell * has deferred the performing of layouts. Otherwise, <code>false</code> * is returned. * * @return the receiver's deferred layout 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 #setLayoutDeferred(boolean) * @see #getLayoutDeferred() * * @since 3.1 */ public boolean isLayoutDeferred () { checkWidget (); return findDeferredControl () != null; }
/** * Returns <code>true</code> if the receiver or any ancestor * up to and including the receiver's nearest ancestor shell * has deferred the performing of layouts. Otherwise, <code>false</code> * is returned. * * @return the receiver's deferred layout 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 #setLayoutDeferred(boolean) * @see #getLayoutDeferred() * * @since 3.1 */ public boolean isLayoutDeferred () { checkWidget (); return findDeferredControl () != null; }
/** * Returns <code>true</code> if the receiver or any ancestor * up to and including the receiver's nearest ancestor shell * has deferred the performing of layouts. Otherwise, <code>false</code> * is returned. * * @return the receiver's deferred layout 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 #setLayoutDeferred(boolean) * @see #getLayoutDeferred() * * @since 3.1 */ public boolean isLayoutDeferred () { checkWidget (); return findDeferredControl () != null; }
/** * Returns <code>true</code> if the receiver or any ancestor * up to and including the receiver's nearest ancestor shell * has deferred the performing of layouts. Otherwise, <code>false</code> * is returned. * * @return the receiver's deferred layout 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 #setLayoutDeferred(boolean) * @see #getLayoutDeferred() * * @since 3.1 */ public boolean isLayoutDeferred () { checkWidget (); return findDeferredControl () != null; }
/** * Returns <code>true</code> if the receiver or any ancestor * up to and including the receiver's nearest ancestor shell * has deferred the performing of layouts. Otherwise, <code>false</code> * is returned. * * @return the receiver's deferred layout 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 #setLayoutDeferred(boolean) * @see #getLayoutDeferred() * * @since 3.1 */ public boolean isLayoutDeferred () { checkWidget (); return findDeferredControl () != null; }
@Override void updateLayout (boolean all) { Composite parent = findDeferredControl (); if (parent != null) { parent.state |= LAYOUT_CHILD; return; } if ((state & LAYOUT_NEEDED) != 0) { boolean changed = (state & LAYOUT_CHANGED) != 0; state &= ~(LAYOUT_NEEDED | LAYOUT_CHANGED); display.runSkin(); layout.layout (this, changed); } if (all) { state &= ~LAYOUT_CHILD; Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { children [i].updateLayout (all); } } } }
void updateLayout (boolean all) { Composite parent = findDeferredControl (); if (parent != null) { parent.state |= LAYOUT_CHILD; return; } if ((state & LAYOUT_NEEDED) != 0) { boolean changed = (state & LAYOUT_CHANGED) != 0; state &= ~(LAYOUT_NEEDED | LAYOUT_CHANGED); display.runSkin (); layout.layout (this, changed); } if (all) { state &= ~LAYOUT_CHILD; Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { children [i].updateLayout (all); } } } }
@Override void updateLayout (boolean all) { Composite parent = findDeferredControl (); if (parent != null) { parent.state |= LAYOUT_CHILD; return; } if ((state & LAYOUT_NEEDED) != 0) { boolean changed = (state & LAYOUT_CHANGED) != 0; state &= ~(LAYOUT_NEEDED | LAYOUT_CHANGED); display.runSkin(); layout.layout (this, changed); } if (all) { state &= ~LAYOUT_CHILD; Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { children [i].updateLayout (all); } } } }
@Override void updateLayout (boolean all) { Composite parent = findDeferredControl (); if (parent != null) { parent.state |= LAYOUT_CHILD; return; } if ((state & LAYOUT_NEEDED) != 0) { boolean changed = (state & LAYOUT_CHANGED) != 0; state &= ~(LAYOUT_NEEDED | LAYOUT_CHANGED); display.runSkin(); layout.layout (this, changed); } if (all) { state &= ~LAYOUT_CHILD; Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { children [i].updateLayout (all); } } } }
@Override void updateLayout (boolean resize, boolean all) { Composite parent = findDeferredControl (); if (parent != null) { parent.state |= LAYOUT_CHILD; return; } if ((state & LAYOUT_NEEDED) != 0) { boolean changed = (state & LAYOUT_CHANGED) != 0; state &= ~(LAYOUT_NEEDED | LAYOUT_CHANGED); display.runSkin(); if (resize) setResizeChildren (false); layout.layout (this, changed); if (resize) setResizeChildren (true); } if (all) { state &= ~LAYOUT_CHILD; Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { children [i].updateLayout (resize, all); } } }
@Override void updateLayout( boolean resize, boolean all ) { Composite parent = findDeferredControl(); if( parent != null ) { parent.addState( LAYOUT_CHILD ); return; } if( hasState( LAYOUT_NEEDED ) ) { boolean changed = hasState( LAYOUT_CHANGED ); removeState( LAYOUT_NEEDED | LAYOUT_CHANGED ); // if (resize) setResizeChildren (false); layout.layout( this, changed ); // if (resize) setResizeChildren (true); } if( all ) { removeState( LAYOUT_CHILD ); for( Control child : children ) { child.updateLayout( resize, all ); } } }