/** * Returns the receiver's parent, which must be a <code>CTabFolder</code>. * * @return the receiver's parent * * @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> */ public CTabFolder getParent() { checkWidget(); return parent; }
/** * Gets the control that is displayed in the content area of the tab item. * * @return the control * * @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> */ public Control getControl() { checkWidget(); return control; }
/** * Gets the control that is displayed in the content area of the tab item. * * @return the control * * @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> */ public Control getControl () { checkWidget(); return control; } /**
/** * Gets the control that is displayed in the content area of the tab item. * * @return the control * * @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> */ public Control getControl () { checkWidget(); return control; } /**
/** * Gets the control that is displayed in the content area of the tab item. * * @return the control * * @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> */ public Control getControl () { checkWidget(); return control; } /**
/** * Gets the control that is displayed in the content area of the tab item. * * @return the control * * @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> */ public Control getControl () { checkWidget(); return control; } /**
/** * Returns <code>true</code> if the item will be rendered in the visible area of the CTabFolder. Returns false otherwise. * * @return <code>true</code> if the item will be rendered in the visible area of the CTabFolder. Returns false otherwise. * * @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> * * @since 3.0 */ public boolean isShowing () { checkWidget(); return showing; }
/** * Returns a rectangle describing the receiver's size and location * relative to its parent. * * @return the receiver's bounding column rectangle * * @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> */ public Rectangle getBounds() { checkWidget(); return new Rectangle( x, y, width, height ); }
@Override public void setText (String string) { checkWidget(); if (string == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (string.equals(getText())) return; super.setText(string); shortenedText = null; shortenedTextWidth = 0; parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**
@Override public void setText (String string) { checkWidget(); if (string == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (string.equals(getText())) return; super.setText(string); shortenedText = null; shortenedTextWidth = 0; parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**
public void setText (String string) { checkWidget(); if (string == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (string.equals(getText())) return; super.setText(string); shortenedText = null; shortenedTextWidth = 0; parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**
@Override public void setText (String string) { checkWidget(); if (string == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (string.equals(getText())) return; super.setText(string); shortenedText = null; shortenedTextWidth = 0; parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**
@Override public void setText (String string) { checkWidget(); if (string == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (string.equals(getText())) return; super.setText(string); shortenedText = null; shortenedTextWidth = 0; parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**
@Override public void setText( String text ) { checkWidget(); if( text == null ) { SWT.error( SWT.ERROR_NULL_ARGUMENT ); } if( !text.equals( getText() ) ) { super.setText( text ); shortenedText = null; shortenedTextWidth = 0; parent.updateItems(); } }
@Override public void setImage( Image image ) { checkWidget(); if( image != getImage() ) { super.setImage( image ); if( !parent.updateTabHeight( false ) ) { parent.updateItems(); } } }
public void setImage (Image image) { checkWidget(); if (image != null && image.isDisposed ()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } Image oldImage = getImage(); if (image == null && oldImage == null) return; if (image != null && image.equals(oldImage)) return; super.setImage(image); parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**
@Override public void setImage (Image image) { checkWidget(); if (image != null && image.isDisposed ()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } Image oldImage = getImage(); if (image == null && oldImage == null) return; if (image != null && image.equals(oldImage)) return; super.setImage(image); parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**
@Override public void setImage (Image image) { checkWidget(); if (image != null && image.isDisposed ()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } Image oldImage = getImage(); if (image == null && oldImage == null) return; if (image != null && image.equals(oldImage)) return; super.setImage(image); parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**
@Override public void setImage (Image image) { checkWidget(); if (image != null && image.isDisposed ()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } Image oldImage = getImage(); if (image == null && oldImage == null) return; if (image != null && image.equals(oldImage)) return; super.setImage(image); parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**
@Override public void setImage (Image image) { checkWidget(); if (image != null && image.isDisposed ()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } Image oldImage = getImage(); if (image == null && oldImage == null) return; if (image != null && image.equals(oldImage)) return; super.setImage(image); parent.updateFolder(CTabFolder.UPDATE_TAB_HEIGHT | CTabFolder.REDRAW_TABS); } /**