@Override void markLayout (boolean changed, boolean all) { if (layout != null) { state |= LAYOUT_NEEDED; if (changed) state |= LAYOUT_CHANGED; } if (all) { Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { children [i].markLayout (changed, all); } } }
void markLayout (boolean changed, boolean all) { if (layout != null) { state |= LAYOUT_NEEDED; if (changed) state |= LAYOUT_CHANGED; } if (all) { Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { children [i].markLayout (changed, all); } } }
Point minimumSize (int wHint, int Hint, boolean changed) { Control [] children = _getChildren (); Rectangle clientArea = getClientArea(); int width = 0, height = 0; for (int i=0; i<children.length; i++) { Rectangle rect = children [i].getBounds (); width = Math.max (width, rect.x - clientArea.x + rect.width); height = Math.max (height, rect.y - clientArea.y + rect.height); } return new Point (width, height); }
@Override boolean translateMnemonic (Event event, Control control) { if (super.translateMnemonic (event, control)) return true; if (control != null) { Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { Control child = children [i]; if (child.translateMnemonic (event, control)) return true; } } return false; }
@Override boolean translateMnemonic (Event event, Control control) { if (super.translateMnemonic (event, control)) return true; if (control != null) { Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { Control child = children [i]; if (child.translateMnemonic (event, control)) return true; } } return false; }
@Override void updateBackgroundColor () { super.updateBackgroundColor (); Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { if ((children [i].state & PARENT_BACKGROUND) != 0) { children [i].updateBackgroundColor (); } } }
@Override void updateBackgroundImage () { super.updateBackgroundImage (); Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { if ((children [i].state & PARENT_BACKGROUND) != 0) { children [i].updateBackgroundImage (); } } }
void reskinChildren (int flags) { super.reskinChildren (flags); Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { Control child = children [i]; if (child != null) child.reskin (flags); } }
@Override void fixChildren (Shell newShell, Shell oldShell, Decorations newDecorations, Decorations oldDecorations, Menu [] menus) { super.fixChildren (newShell, oldShell, newDecorations, oldDecorations, menus); Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { children [i].fixChildren (newShell, oldShell, newDecorations, oldDecorations, menus); } }
@Override void updateBackgroundMode () { super.updateBackgroundMode (); Control [] children = _getChildren (); for (int i = 0; i < children.length; i++) { children [i].updateBackgroundMode (); } }
@Override void reskinChildren (int flags) { super.reskinChildren (flags); Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { Control child = children [i]; if (child != null) child.reskin (flags); } }
@Override void updateBackgroundMode () { super.updateBackgroundMode (); Control [] children = _getChildren (); for (int i = 0; i < children.length; i++) { children [i].updateBackgroundMode (); } }
@Override void fixStyle () { super.fixStyle (); if (scrolledHandle == 0) fixStyle (handle); Control[] children = _getChildren (); for (int i = 0; i < children.length; i++) { children [i].fixStyle (); } }
@Override void redrawChildren () { super.redrawChildren (); Control [] children = _getChildren (); for (int i = 0; i < children.length; i++) { Control child = children [i]; if ((child.state & PARENT_BACKGROUND) != 0) { child.redrawWidget (0, 0, 0, 0, true, false, true); child.redrawChildren (); } } }
public boolean setFocus () { checkWidget (); Control [] children = _getChildren (); for (int i= 0; i < children.length; i++) { if (children [i].setFocus ()) return true; } return super.setFocus (); }
@Override void releaseChildren (boolean destroy) { Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { Control child = children [i]; if (child != null && !child.isDisposed ()) { child.release (false); } } super.releaseChildren (destroy); }
@Override void releaseChildren (boolean destroy) { Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { Control child = children [i]; if (child != null && !child.isDisposed ()) { child.release (false); } } super.releaseChildren (destroy); }
void invalidateVisibleRegion () { int index = 0; Control[] siblings = parent._getChildren (); while (index < siblings.length && siblings [index] != this) index++; for (int i=index; i<siblings.length; i++) { Control sibling = siblings [i]; sibling.resetVisibleRegion (); sibling.invalidateChildrenVisibleRegion (); } parent.resetVisibleRegion (); }
void updateCursorRects (boolean enabled) { super.updateCursorRects (enabled); Control [] children = _getChildren (); for (int i = 0; i < children.length; i++) { Control control = children [i]; control.updateCursorRects (enabled && control.isEnabled ()); } }
@Override public boolean setFocus () { checkWidget(); Control [] children = _getChildren (); for (int i=0; i<children.length; i++) { Control child = children [i]; if (child.getVisible () && child.setFocus ()) return true; } return super.setFocus (); }