@Controller @Scope(value="session") public class GalleryBean extends Object implements PageSelectionObserver, Serializable
Constructor and Description |
---|
GalleryBean() |
Modifier and Type | Method and Description |
---|---|
void |
commitTimeOverride()
Commits the time override flag when the edit dialog is closed.
|
GallerySectionDto |
getGallerySection()
GallerySectionDto to be edited. |
List<PictureDto> |
getPictures()
List of all
PictureDto of the selected gallery. |
PictureDto |
getSelectedImage()
PictureDto to be edited. |
EditableMapModel |
getSelectedMapModel()
EditableMapModel of the currently selected image. |
UIComponent |
getUiGrid()
Reference to the
UIComponent of the data grid showing the pictures of the
gallery. |
void |
handleFileUpload(org.primefaces.event.FileUploadEvent event)
Handles the upload of a new picture.
|
boolean |
isTimeOverride()
Time zone and definition override?
|
void |
moveImage(PictureDto picture,
int relative)
Moves a picture within the picture list.
|
void |
onPageSelected(PageDto selectedPage)
A
PageDto was selected. |
void |
removeImage(PictureDto picture)
Removes a picture.
|
void |
setGallerySection(GallerySectionDto section) |
void |
setSelectedImage(PictureDto selectedImage) |
void |
setTimeOverride(boolean timeOverride) |
void |
setUiGrid(UIComponent uiGrid) |
public GalleryBean()
public GallerySectionDto getGallerySection()
GallerySectionDto
to be edited.public void setGallerySection(GallerySectionDto section)
public PictureDto getSelectedImage()
PictureDto
to be edited.public void setSelectedImage(PictureDto selectedImage)
public EditableMapModel getSelectedMapModel()
EditableMapModel
of the currently selected image.public UIComponent getUiGrid()
UIComponent
of the data grid showing the pictures of the
gallery.public void setUiGrid(UIComponent uiGrid)
public List<PictureDto> getPictures()
PictureDto
of the selected gallery.public boolean isTimeOverride()
public void setTimeOverride(boolean timeOverride)
public void commitTimeOverride()
public void moveImage(PictureDto picture, int relative)
picture
- PictureDto
to be movedrelative
- Relative new position of the picturepublic void removeImage(PictureDto picture)
public void handleFileUpload(org.primefaces.event.FileUploadEvent event)
event
- FileUploadEvent
containing the picture being uploadedpublic void onPageSelected(PageDto selectedPage)
PageSelectionObserver
PageDto
was selected.onPageSelected
in interface PageSelectionObserver
selectedPage
- PageDto
that is selected now, or null
if no
PageDto
is currently selected.Copyright © 2009–2016. All rights reserved.