/** * Creates a new RowDataFactory that creates copies of the given RowData by * default. * * @param data * RowData to copy * @return a new RowDataFactory that creates copies of the argument by * default */ public static RowDataFactory createFrom(RowData data) { return new RowDataFactory(copyData(data)); }
/** * Creates a copy of the receiver. * * @return a copy of the receiver */ public RowDataFactory copy() { return new RowDataFactory(create()); }
/** * Sets the layout data on the given control. Creates a new RowData instance * and assigns it to the control by calling control.setLayoutData. * * @param control * control whose layout data will be initialised */ public void applyTo(Control control) { control.setLayoutData(create()); }
/** * Creates a new GridData instance. All attributes of the GridData instance * will be initialised by the factory. * * @return a new GridData instance */ public RowData create() { return copyData(data); }
/** * Creates a new RowDataFactory initialized with the SWT defaults. * * <p> * Initial values are: * </p> * * <ul> * <li>exclude(false)</li> * <li>hint(SWT.DEFAULT, SWT.DEFAULT)</li> * </ul> * * @return a new GridDataFactory instance */ public static RowDataFactory swtDefaults() { return new RowDataFactory(new RowData()); }
/** * Sets the layout data on the given control. Creates a new RowData instance * and assigns it to the control by calling control.setLayoutData. * * @param control * control whose layout data will be initialised */ public void applyTo(Control control) { control.setLayoutData(create()); }
/** * Creates a new GridData instance. All attributes of the GridData instance * will be initialised by the factory. * * @return a new GridData instance */ public RowData create() { return copyData(data); }
/** * Creates a new RowDataFactory initialized with the SWT defaults. * * <p> * Initial values are: * </p> * * <ul> * <li>exclude(false)</li> * <li>hint(SWT.DEFAULT, SWT.DEFAULT)</li> * </ul> * * @return a new GridDataFactory instance */ public static RowDataFactory swtDefaults() { return new RowDataFactory(new RowData()); }
/** * Creates a new RowDataFactory that creates copies of the given RowData by * default. * * @param data * RowData to copy * @return a new RowDataFactory that creates copies of the argument by * default */ public static RowDataFactory createFrom(RowData data) { return new RowDataFactory(copyData(data)); }
/** * Creates a copy of the receiver. * * @return a copy of the receiver */ public RowDataFactory copy() { return new RowDataFactory(create()); }
/** * Sets the layout data on the given control. Creates a new RowData instance * and assigns it to the control by calling control.setLayoutData. * * @param control * control whose layout data will be initialised */ public void applyTo(Control control) { control.setLayoutData(create()); }
/** * Creates a new GridData instance. All attributes of the GridData instance * will be initialised by the factory. * * @return a new GridData instance */ public RowData create() { return copyData(data); }
/** * Creates a new RowDataFactory initialized with the SWT defaults. * * <p> * Initial values are: * </p> * * <ul> * <li>exclude(false)</li> * <li>hint(SWT.DEFAULT, SWT.DEFAULT)</li> * </ul> * * @return a new GridDataFactory instance */ public static RowDataFactory swtDefaults() { return new RowDataFactory(new RowData()); }
/** * Creates a new RowDataFactory that creates copies of the given RowData by * default. * * @param data * RowData to copy * @return a new RowDataFactory that creates copies of the argument by * default */ public static RowDataFactory createFrom(RowData data) { return new RowDataFactory(copyData(data)); }
/** * Creates a copy of the receiver. * * @return a copy of the receiver */ public RowDataFactory copy() { return new RowDataFactory(create()); }