Class ChecklistAnnotation

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable, PermissionsProvider<Annotation>, PropertiesProvider, com.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation, Serializable

    public class ChecklistAnnotation
    extends RectangleAnnotation
    An Annotation consisting of 0-n checkbox elements. Each checkbox element can be toggled individually to one of the CheckboxStates (INDETERMINATE, CHECKED, UNCHECKED). Note
    This is a custom implementation of a Checklist and the Jadice Webtoolkit does not provide any renderers or wranglers for this annotation type.
    See Also:
    Serialized Form
    • Constructor Detail

      • ChecklistAnnotation

        public ChecklistAnnotation()
    • Method Detail

      • setOrientation

        public void setOrientation​(ChecklistAnnotation.Orientation orientation)
        Sets the orientation for this annotation.
        Parameters:
        orientation - the orientation of this annotation
      • setCheckboxes

        public void setCheckboxes​(List<ChecklistAnnotation.CheckboxState> checkboxes)
        Sets the list of checkboxes to the given list.
        Parameters:
        checkboxes - the list of checkbox elements
      • setCheckboxCSV

        @Deprecated
        public void setCheckboxCSV​(String checkboxCSV)
        Deprecated.
        Deprecated: Use setCheckboxes(List) instead. Utility method used in the read/write process of this annotation. The list of checkboxes is transported via a CSV String.

        The values separated by the comma (,) are the names of the CheckboxState-enum.

        Parameters:
        checkboxCSV - the CSV describing the checkbox states
      • getCheckboxCSV

        @Deprecated
        public String getCheckboxCSV()
        Deprecated.
        Deprecated: Use getCheckboxes() instead. Utility method used in the read/write process of this annotation. The list of checkboxes is transported via a CSV String.
        Returns:
        a CSV String containing names of the CheckboxState-enum.
      • setOrientationString

        @Deprecated
        public void setOrientationString​(String orientation)
        Deprecated.
        Deprecated: use setOrientation(Orientation) instead. Convenience method used to set the orientation via a String. This is used in Annotation Readers/Writers to store the orientation as String in XML.

        The value must be the name of one of the enum values from Orientation.

        Parameters:
        orientation - the orientation to set
      • getOrientationString

        @Deprecated
        public String getOrientationString()
        Deprecated.
        Deprecated: Use getOrientationString() instead. Returns the orientation as String. This is used in Annotation Readers/Writers to store the orientation as String in XML.
        Returns:
        the orientation as String