Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.7
    • Fix Version/s: 1.1.0
    • Component/s: core
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      39

      Description

      In order to simplify development of visual builders, the following introspection
      APIs should be added or changed:

      • BoundedSize class should be public
      • BoundedSize: getters for lowerBound, upperBound and basis are needed
      • ConstantSize: getters for value and unit are needed

        Activity

        Hide
        karsten added a comment -

        I've extended the API as requested. The changes are in the CVS and will be
        included in today's 1.1 preview build.

        You may consider registering with the Forms' CVS mailing list to get notified
        about all changes.

        Show
        karsten added a comment - I've extended the API as requested. The changes are in the CVS and will be included in today's 1.1 preview build. You may consider registering with the Forms' CVS mailing list to get notified about all changes.
        Hide
        karsten added a comment -

        Made some constructors public as requested by Karl Tauber in his "wishlist":
        My "wishlist" is:

        • public class BoundedSize
        • public constructor for BoundedSize(basis,upper,lower)
          (Sizes#bounded does the same, but a constructor is IMHO easier to find
          than a method in another class)
        • public Size getBasis()
        • public Size getLowerBound()
        • public Size getUpperBound()
        • public constructor for ConstantSize(double,Unit)
        • public constructor for ConstantSize(int,Unit)
          (The current methods in class Sizes allows only creation of pixel and dlu
          constants. Constants for other units (point, mm, cm and inch) can be
          created only with Sizes#constant(String encodedValueAndUnit, horz).)
        • public double getValue()
        • public Unit getUnit()
        Show
        karsten added a comment - Made some constructors public as requested by Karl Tauber in his "wishlist": My "wishlist" is: public class BoundedSize public constructor for BoundedSize(basis,upper,lower) (Sizes#bounded does the same, but a constructor is IMHO easier to find than a method in another class) public Size getBasis() public Size getLowerBound() public Size getUpperBound() public constructor for ConstantSize(double,Unit) public constructor for ConstantSize(int,Unit) (The current methods in class Sizes allows only creation of pixel and dlu constants. Constants for other units (point, mm, cm and inch) can be created only with Sizes#constant(String encodedValueAndUnit, horz).) public double getValue() public Unit getUnit()
        Hide
        yole added a comment -

        One more request: I would like the DefaultAlignment constants in FormSpec
        (LEFT_ALIGN etc.) to be public.

        Show
        yole added a comment - One more request: I would like the DefaultAlignment constants in FormSpec (LEFT_ALIGN etc.) to be public.
        Hide
        ktauber added a comment -

        There are public constants for LEFT, RIGHT, etc in ColumnSpec and RowSpec.

        Show
        ktauber added a comment - There are public constants for LEFT, RIGHT, etc in ColumnSpec and RowSpec.
        Hide
        karsten added a comment -

        Done. This is in version 1.1

        Show
        karsten added a comment - Done. This is in version 1.1

          People

          • Assignee:
            forms-issues
            Reporter:
            yole
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: