Package com.levigo.jadice.annotation
Class ChecklistAnnotation
java.lang.Object
com.levigo.jadice.annotation.Annotation
com.levigo.jadice.annotation.ShapeBasedAnnotation
com.levigo.jadice.annotation.RectangleAnnotation
com.levigo.jadice.annotation.ChecklistAnnotation
- All Implemented Interfaces:
PermissionsProvider<Annotation>,PropertiesProvider,com.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation,Serializable,org.jadice.util.base.MementoOriginator
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.
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields inherited from class com.levigo.jadice.annotation.RectangleAnnotation
rect, shapeFields inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation
allowResize, fillColor, filled, iconified, linePainted, lineWidth, strokeColor, strokeResolutionFields inherited from class com.levigo.jadice.annotation.Annotation
createdAt, createdBy, doFireAnnotationEvents, id, initializer, isModified, lastModifiedAt, lastModifiedBy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()copy()protected voidcopyAttributesTo(Annotation annotation) Deprecated.Returns a list containing the checkbox states.Returns the orientation of this annotation.Deprecated.voidsetCheckboxCSV(String checkboxCSV) Deprecated.voidsetCheckboxes(List<ChecklistAnnotation.CheckboxState> checkboxes) Sets the list of checkboxes to the given list.voidsetOrientation(ChecklistAnnotation.Orientation orientation) Sets the orientation for this annotation.voidsetOrientationString(String orientation) Deprecated.Methods inherited from class com.levigo.jadice.annotation.RectangleAnnotation
getBounds, getRectangle, getShape, setLocation, setRectangle, setSize, translate, updateMethods inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation
getFillColor, getLineWidth, getStrokeColor, getStrokeResolution, isAllowResize, isFilled, isIconified, isLinePainted, prepareSerialisation, setAllowResize, setFillColor, setFilled, setIconified, setLinePainted, setLineWidth, setStrokeColor, setStrokeResolutionMethods inherited from class com.levigo.jadice.annotation.Annotation
clearModified, createMemento, fireAnnotationChange, getChangeHandler, getCreatedAt, getCreatedBy, getID, getInitializer, getLastModifiedAt, getLastModifiedBy, getModCount, getPermissions, getProfileId, getProperties, getType, getTypeName, initialize, isDoFireAnnotationEvents, isInitialized, isModified, restoreFrom, setChangeHandler, setCreatedBy, setCreationTimestamp, setDoFireAnnotationEvents, setID, setInitializer, setLastModifiedBy, setModified, setModifyTimestamp, setProfileId, setType, setTypeName
-
Constructor Details
-
ChecklistAnnotation
public ChecklistAnnotation()
-
-
Method Details
-
getOrientation
Returns the orientation of this annotation.- Returns:
- the orientation
-
setOrientation
Sets the orientation for this annotation.- Parameters:
orientation- the orientation of this annotation
-
getCheckboxes
Returns a list containing the checkbox states.- Returns:
- the list of checkbox states
-
setCheckboxes
Sets the list of checkboxes to the given list.- Parameters:
checkboxes- the list of checkbox elements
-
setCheckboxCSV
Deprecated.Deprecated: UsesetCheckboxes(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.Deprecated: UsegetCheckboxes()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.
-
copyAttributesTo
- Overrides:
copyAttributesToin classRectangleAnnotation
-
clone
- Overrides:
clonein classAnnotation
-
copy
- Specified by:
copyin interfacecom.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation- Overrides:
copyin classRectangleAnnotation
-
setOrientationString
Deprecated.Deprecated: usesetOrientation(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.Deprecated: UsegetOrientationString()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
-