@Override public void widgetSelected( SelectionEvent arg0 ) { wTabFolder.layout( true, true ); } } );
wData.setLayoutData( fdData ); wTabFolder.layout( true, true );
/** * {@inheritDoc} */ @Override public void layout() { tabFolder.layout(); }
public void controlResized(ControlEvent e) { // Force a layout of the TB / CTF if (!ctf.isDisposed()) { Control tr = ctf.getTopRight(); if (tr != null && !tr.isDisposed()) ctf.getTopRight().pack(); ctf.layout(true, true); } }
/** * Asks the specified tab folder to layout its top right control. * * @param ctf * the tab folder that should be laid out */ public void layoutTopRight(CTabFolder ctf) { Composite trComp = getTRComposite(ctf); if (trComp.getChildren().length > 0) { trComp.setVisible(true); ctf.setTopRight(trComp, SWT.RIGHT | SWT.WRAP); } else { ctf.setTopRight(null); trComp.setVisible(false); } trComp.pack(); ctf.layout(true, true); }
private void setCTFButtons(CTabFolder ctf, MUIElement stateElement, boolean hideButtons) { if (hideButtons) { ctf.setMinimizeVisible(false); ctf.setMaximizeVisible(false); } else { if (stateElement.getTags().contains(MINIMIZED)) { ctf.setMinimizeVisible(false); ctf.setMaximizeVisible(true); ctf.setMaximized(true); } else if (stateElement.getTags().contains(MAXIMIZED)) { ctf.setMinimizeVisible(true); ctf.setMaximizeVisible(true); ctf.setMaximized(true); } else { ctf.setMinimizeVisible(true); ctf.setMaximizeVisible(true); ctf.setMinimized(false); ctf.setMaximized(false); ctf.layout(); } } }
private void setCTFButtons(CTabFolder ctf, MUIElement stateElement, boolean hideButtons) { if (hideButtons) { ctf.setMinimizeVisible(false); ctf.setMaximizeVisible(false); } else { if (stateElement.getTags().contains(MINIMIZED)) { ctf.setMinimizeVisible(false); ctf.setMaximizeVisible(true); ctf.setMaximized(true); } else if (stateElement.getTags().contains(MAXIMIZED)) { ctf.setMinimizeVisible(true); ctf.setMaximizeVisible(true); ctf.setMaximized(true); } else { ctf.setMinimizeVisible(true); ctf.setMaximizeVisible(true); ctf.setMinimized(false); ctf.setMaximized(false); ctf.layout(); } } }
void runUpdate() { if (updateFlags == 0) return; int flags = updateFlags; updateFlags = 0; Rectangle rectBefore = getClientArea(); updateTabHeight(false); updateItems(selectedIndex); if ((flags & REDRAW) != 0) { redraw(); } else if ((flags & REDRAW_TABS) != 0) { redrawTabs(); } Rectangle rectAfter = getClientArea(); if (!rectBefore.equals(rectAfter)) { notifyListeners(SWT.Resize, new Event()); layout(); } }
void runUpdate() { if (updateFlags == 0) return; int flags = updateFlags; updateFlags = 0; Rectangle rectBefore = getClientArea(); updateTabHeight(false); updateItems(selectedIndex); if ((flags & REDRAW) != 0) { redraw(); } else if ((flags & REDRAW_TABS) != 0) { redrawTabs(); } Rectangle rectAfter = getClientArea(); if (!rectBefore.equals(rectAfter)) { notifyListeners(SWT.Resize, new Event()); layout(); } }
void runUpdate() { if (updateFlags == 0) return; int flags = updateFlags; updateFlags = 0; Rectangle rectBefore = getClientArea(); updateTabHeight(false); updateItems(selectedIndex); if ((flags & REDRAW) != 0) { redraw(); } else if ((flags & REDRAW_TABS) != 0) { redrawTabs(); } Rectangle rectAfter = getClientArea(); if (!rectBefore.equals(rectAfter)) { notifyListeners(SWT.Resize, new Event()); layout(); } }
void runUpdate() { if (updateFlags == 0) return; int flags = updateFlags; updateFlags = 0; Rectangle rectBefore = getClientArea(); updateTabHeight(false); updateItems(selectedIndex); if ((flags & REDRAW) != 0) { redraw(); } else if ((flags & REDRAW_TABS) != 0) { redrawTabs(); } Rectangle rectAfter = getClientArea(); if (!rectBefore.equals(rectAfter)) { notifyListeners(SWT.Resize, new Event()); layout(); } }
void runUpdate() { if (updateFlags == 0) return; int flags = updateFlags; updateFlags = 0; Rectangle rectBefore = getClientArea(); updateTabHeight(false); updateItems(selectedIndex); if ((flags & REDRAW) != 0) { redraw(); } else if ((flags & REDRAW_TABS) != 0) { redrawTabs(); } Rectangle rectAfter = getClientArea(); if (!rectBefore.equals(rectAfter)) { notifyListeners(SWT.Resize, new Event()); layout(); } }