Package com.levigo.jadice.web.client
Interface ThumbnailView
- All Superinterfaces:
com.google.gwt.user.client.ui.IsWidget
,MenuContributor
,ViewComponent
A PageView-like ViewComponent showing Thumbnails for an associated PageView.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LabelProvider
The default label provider creates simple labels for pages. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the selection.int
boolean
boolean
isSelected
(int pageIndex) void
setDefaultThumbnailSize
(Dimension thumbnailSize) Sets the default thumbnail size.void
setLabelProvider
(LabelProvider labelProvider) Sets theLabelProvider
which is responsible for creating labels for each page in the ThumbnailView.void
setPageMoveMode
(boolean pageMoveMode) Forces the Thumbnails to move away from the MoveToIndex.void
setSelection
(int pageIndex, boolean isSelected) Sets a Selection of a Page or removes it.void
update()
Updates the thumbnail view.Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
Methods inherited from interface com.levigo.jadice.web.client.ui.menu.MenuContributor
contribute
Methods inherited from interface com.levigo.jadice.web.client.ViewComponent
cleanup, getDocument, getToolManager, getToolMangerConnection, getVisibleRect, repaint, repaint, repaint, repaint, repaintAnnosAndTools, repaintAnnosAndTools, repaintAnnosAndTools, repaintAnnosAndTools, resetScrollPosition, scrollRectToVisible
-
Field Details
-
DEFAULT_LABEL_PROVIDER
The default label provider creates simple labels for pages. It uses just the page number as label.If an application set another label provider and wants to reset the original behavior, this field can be used to reset to the default provider via
setLabelProvider(LabelProvider)
-
-
Method Details
-
getPageView
PageView getPageView()- Returns:
- the PageView this thumbnail view is associated with
-
isSelected
boolean isSelected(int pageIndex) - Parameters:
pageIndex
- The index of the page to check.- Returns:
- True when the page is currently selected.
-
setSelection
void setSelection(int pageIndex, boolean isSelected) Sets a Selection of a Page or removes it.- Parameters:
pageIndex
- The index of the page to check.isSelected
- True when the page has to be selected, false else.
-
clearSelection
void clearSelection()Clears the selection. -
getSelectedPages
- Returns:
- List of all Selected pages
-
setPageMoveMode
void setPageMoveMode(boolean pageMoveMode) Forces the Thumbnails to move away from the MoveToIndex.- Parameters:
pageMoveMode
- true=on
-
isPageMoveMode
boolean isPageMoveMode()- Returns:
- the mode
-
getMoveToIndex
int getMoveToIndex()- Returns:
- the index of the Page the new Pages should be added/moved
-
setDefaultThumbnailSize
Sets the default thumbnail size.- Parameters:
thumbnailSize
- The size of the thumbnails.
-
update
void update()Updates the thumbnail view. Any cached content is reused, filters are re-applied. -
setLabelProvider
Sets theLabelProvider
which is responsible for creating labels for each page in the ThumbnailView.- Parameters:
labelProvider
- the label provider to use- See Also:
-
getThumbnailPageView
PageView getThumbnailPageView()- Returns:
- the thumbnail
PageView
contained by this thumbnail view
-