Class AnnotationSelection
java.lang.Object
com.levigo.jadice.web.client.internal.annotation.AnnotationSelection
Manages the selected Annotations
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The property key used to propagate changes in the current selection of annotations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Document document, Page page, ShapeBasedAnnotation annotation) com.google.gwt.event.shared.HandlerRegistration
void
clear()
getPage()
boolean
isEmpty()
boolean
boolean
Returns the current selection mode.void
remove
(ShapeBasedAnnotation annotation) boolean
void
set
(Document document, Page page, ShapeBasedAnnotation... annotations) void
setSingleSelectionMode
(boolean singleSelectionMode) Sets the current selection mode.int
size()
-
Field Details
-
SHORT_KEY_ANNOTATION_SELECTION
The property key used to propagate changes in the current selection of annotations.This key is used for internal event propagation only. The public key (which is prefixed by the propagating class name) and further information can be found in
AnnotationTool
.PROPERTY_KEY_ANNOTATION_SELECTION.- See Also:
-
-
Constructor Details
-
AnnotationSelection
public AnnotationSelection()
-
-
Method Details
-
addPropertyChangeListener
public com.google.gwt.event.shared.HandlerRegistration addPropertyChangeListener(PropertyChangeListener listener) -
getDocument
-
getPage
-
set
-
add
-
removeDeletedAnnotations
public boolean removeDeletedAnnotations() -
clear
public void clear() -
remove
-
getSelected
-
getSelectionBounds
-
isSelected
-
isEmpty
public boolean isEmpty() -
size
public int size() -
getSingleSelected
-
isSingleSelectionMode
public boolean isSingleSelectionMode()Returns the current selection mode. Defaults to false.- Returns:
- true if only one annotation can be selected at a given point in time, false else
-
setSingleSelectionMode
public void setSingleSelectionMode(boolean singleSelectionMode) Sets the current selection mode.- Parameters:
singleSelectionMode
- true if only one annotation shall be selectable at a given point in time. False if multiple annotations shall be selectable at a given point in time.
-