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 enum
static enum
-
Field Summary
Fields inherited from class com.levigo.jadice.annotation.RectangleAnnotation
rect, shape
Fields inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation
allowResize, fillColor, filled, iconified, linePainted, lineWidth, strokeColor, strokeResolution
Fields 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 void
copyAttributesTo
(Annotation annotation) Deprecated.Returns a list containing the checkbox states.Returns the orientation of this annotation.Deprecated.void
setCheckboxCSV
(String checkboxCSV) Deprecated.void
setCheckboxes
(List<ChecklistAnnotation.CheckboxState> checkboxes) Sets the list of checkboxes to the given list.void
setOrientation
(ChecklistAnnotation.Orientation orientation) Sets the orientation for this annotation.void
setOrientationString
(String orientation) Deprecated.Methods inherited from class com.levigo.jadice.annotation.RectangleAnnotation
getBounds, getRectangle, getShape, setLocation, setRectangle, setSize, translate, update
Methods inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation
getFillColor, getLineWidth, getStrokeColor, getStrokeResolution, isAllowResize, isFilled, isIconified, isLinePainted, prepareSerialisation, setAllowResize, setFillColor, setFilled, setIconified, setLinePainted, setLineWidth, setStrokeColor, setStrokeResolution
Methods 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:
copyAttributesTo
in classRectangleAnnotation
-
clone
- Overrides:
clone
in classAnnotation
-
copy
- Specified by:
copy
in interfacecom.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation
- Overrides:
copy
in 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
-