clientWidthHint -= tbsize.x + SPACING; clsize = computeSize(clientCache, clientWidthHint); tsize = computeSize(titleRegionCache, flexWidth); } else {
super.setLayout(new FormHeadingLayout()); titleRegion = new TitleRegion(this);
super.setLayout(new FormHeadingLayout()); titleRegion = new TitleRegion(this);
@Override public int computeMaximumWidth(Composite composite, boolean flushCache) { return computeSize(composite, SWT.DEFAULT, SWT.DEFAULT, flushCache).x; }
@Override public int computeMinimumWidth(Composite composite, boolean flushCache) { return layout(composite, false, 0, 0, MIN_WIDTH, SWT.DEFAULT, flushCache).x; }
@Override public int computeMinimumWidth(Composite composite, boolean flushCache) { return computeSize(composite, 5, SWT.DEFAULT, flushCache).x; }
@Override protected void layout(Composite composite, boolean flushCache) { Rectangle rect = composite.getClientArea(); layout(composite, true, rect.x, rect.y, rect.width, rect.height, flushCache); }
/** * Fully delegates the size computation to the internal layout manager. */ @Override public final Point computeSize(int wHint, int hHint, boolean changed) { return ((FormHeadingLayout) getLayout()).computeSize(this, wHint, hHint, changed); }
@Override public Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) { return layout(composite, false, 0, 0, wHint, hHint, flushCache); }
/** * Fully delegates the size computation to the internal layout manager. */ @Override public final Point computeSize(int wHint, int hHint, boolean changed) { return ((FormHeadingLayout) getLayout()).computeSize(this, wHint, hHint, changed); }
@Override protected void layout(Composite composite, boolean flushCache) { Rectangle rect = composite.getClientArea(); layout(composite, true, rect.x, rect.y, rect.width, rect.height, flushCache); }
@Override public Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) { return layout(composite, false, 0, 0, wHint, hHint, flushCache); }
@Override public int computeMaximumWidth(Composite composite, boolean flushCache) { return computeSize(composite, SWT.DEFAULT, SWT.DEFAULT, flushCache).x; }