/** * Creates a factory that creates copies of the given layout. * * @param layout * layout to copy * @return a new RowLayoutFactory instance that creates copies of the given * layout */ public static RowLayoutFactory createFrom(RowLayout layout) { return new RowLayoutFactory(copyLayout(layout)); }
/** * Creates a factory that creates copies of the given layout. * * @param layout * layout to copy * @return a new RowLayoutFactory instance that creates copies of the given * layout */ public static RowLayoutFactory createFrom(RowLayout layout) { return new RowLayoutFactory(copyLayout(layout)); }
/** * Creates a copy of the receiver. * * @return a copy of the receiver */ public RowLayoutFactory copy() { return new RowLayoutFactory(create()); }
/** * Creates a factory that creates copies of the given layout. * * @param layout * layout to copy * @return a new RowLayoutFactory instance that creates copies of the given * layout */ public static RowLayoutFactory createFrom(RowLayout layout) { return new RowLayoutFactory(copyLayout(layout)); }
/** * Creates a copy of the receiver. * * @return a copy of the receiver */ public RowLayoutFactory copy() { return new RowLayoutFactory(create()); }
/** * Creates a copy of the receiver. * * @return a copy of the receiver */ public RowLayoutFactory copy() { return new RowLayoutFactory(create()); }
/** * Creates a RowLayoutFactory that creates RowLayouts with the default SWT * values. * * <p> * Initial values are: * </p> * * <ul> * <li>margins(0,0)</li> * <li>extendedMargins(3,3,3,3)</li> * <li>wrap(true)</li> * <li>pack(true)</li> * <li>fill(false)</li> * <li>justify(false)</li> * <li>spacing(3)</li> * </ul> * * @return a RowLayoutFactory that creates RowLayouts as though created with * their default constructor * @see #fillDefaults */ public static RowLayoutFactory swtDefaults() { return new RowLayoutFactory(new RowLayout()); }
/** * Creates a RowLayoutFactory that creates RowLayouts with the default SWT * values. * * <p> * Initial values are: * </p> * * <ul> * <li>margins(0,0)</li> * <li>extendedMargins(3,3,3,3)</li> * <li>wrap(true)</li> * <li>pack(true)</li> * <li>fill(false)</li> * <li>justify(false)</li> * <li>spacing(3)</li> * </ul> * * @return a RowLayoutFactory that creates RowLayouts as though created with * their default constructor * @see #fillDefaults */ public static RowLayoutFactory swtDefaults() { return new RowLayoutFactory(new RowLayout()); }
/** * Creates a RowLayoutFactory that creates RowLayouts with the default SWT * values. * * <p> * Initial values are: * </p> * * <ul> * <li>margins(0,0)</li> * <li>extendedMargins(3,3,3,3)</li> * <li>wrap(true)</li> * <li>pack(true)</li> * <li>fill(false)</li> * <li>justify(false)</li> * <li>spacing(3)</li> * </ul> * * @return a RowLayoutFactory that creates RowLayouts as though created with * their default constructor * @see #fillDefaults */ public static RowLayoutFactory swtDefaults() { return new RowLayoutFactory(new RowLayout()); }
/** * Creates a RowLayoutFactory that creates RowLayouts with no margins, fill * behavior, and default dialog spacing. * * <p> * Initial values are: * </p> * * <ul> * <li>margins(0,0)</li> * <li>extendedMargins(0,0,0,0)</li> * <li>wrap(true)</li> * <li>pack(true)</li> * <li>fill(false)</li> * <li>justify(false)</li> * <li>spacing(LayoutConstants.getSpacing().x</li> * </ul> * * @return a RowLayoutFactory that creates RowLayouts with no margins * @see #swtDefaults */ public static RowLayoutFactory fillDefaults() { RowLayout layout = new RowLayout(); layout.marginTop = 0; layout.marginBottom = 0; layout.marginLeft = 0; layout.marginRight = 0; layout.spacing = LayoutConstants.getSpacing().x; return new RowLayoutFactory(layout); }
/** * Creates a RowLayoutFactory that creates RowLayouts with no margins, fill * behavior, and default dialog spacing. * * <p> * Initial values are: * </p> * * <ul> * <li>margins(0,0)</li> * <li>extendedMargins(0,0,0,0)</li> * <li>wrap(true)</li> * <li>pack(true)</li> * <li>fill(false)</li> * <li>justify(false)</li> * <li>spacing(LayoutConstants.getSpacing().x</li> * </ul> * * @return a RowLayoutFactory that creates RowLayouts with no margins * @see #swtDefaults */ public static RowLayoutFactory fillDefaults() { RowLayout layout = new RowLayout(); layout.marginTop = 0; layout.marginBottom = 0; layout.marginLeft = 0; layout.marginRight = 0; layout.spacing = LayoutConstants.getSpacing().x; return new RowLayoutFactory(layout); }
/** * Creates a RowLayoutFactory that creates RowLayouts with no margins, fill * behavior, and default dialog spacing. * * <p> * Initial values are: * </p> * * <ul> * <li>margins(0,0)</li> * <li>extendedMargins(0,0,0,0)</li> * <li>wrap(true)</li> * <li>pack(true)</li> * <li>fill(false)</li> * <li>justify(false)</li> * <li>spacing(LayoutConstants.getSpacing().x</li> * </ul> * * @return a RowLayoutFactory that creates RowLayouts with no margins * @see #swtDefaults */ public static RowLayoutFactory fillDefaults() { RowLayout layout = new RowLayout(); layout.marginTop = 0; layout.marginBottom = 0; layout.marginLeft = 0; layout.marginRight = 0; layout.spacing = LayoutConstants.getSpacing().x; return new RowLayoutFactory(layout); }