Package org.richfaces.photoalbum.model.event

Examples of org.richfaces.photoalbum.model.event.SimpleEvent


    public void showError(String summary, String errorMessage) {
        error.fire(new ErrorEvent(summary, errorMessage));
    }

    private void pushEvent(Events eventType) {
        event.select(new EventTypeQualifier(eventType)).fire(new SimpleEvent());
    }
View Full Code Here


                    user = new User();
                    return false;
                }
                addToTracker(user.getId());
                // Raise event to controller to update Model
                event.select(new EventTypeQualifier(Events.AUTHENTICATED_EVENT)).fire(new SimpleEvent());
                // Login was successful
                setLoginFailed(false);
                return true;
            }
        } catch (Exception nre) {
View Full Code Here

    public void goToRegister() {
        // create new User object
        user = new User();
        setLoginFailed(false);
        // raise event to controller to prepare Model.
        event.select(new EventTypeQualifier(Events.START_REGISTER_EVENT)).fire(new SimpleEvent());
    }
View Full Code Here

        this.slideshowIndex = 0;
        this.startSlideshowIndex = 0;
    }

    public void stopSlideshow() {
        stopSlideshow(new SimpleEvent());
    }
View Full Code Here

                em.remove(c);
            }
            em.remove(user);
            em.flush();

            event.fire(new SimpleEvent());
        }
    }
View Full Code Here

     * @param images - list of images, to show during slideshow process(determined in controller)
     */
    public void resetModel(NavigationEnum mainArea, User selectedUser, Shelf selectedShelf, Album selectedAlbum,
        Image selectedImage, List<Image> images) {
        if (this.mainArea != null && this.mainArea.equals(NavigationEnum.FILE_UPLOAD)) {
            event.select(new EventTypeQualifier(Events.CLEAR_FILE_UPLOAD_EVENT)).fire(new SimpleEvent());
        }
        this.setSelectedAlbum(selectedAlbum);
        this.setSelectedImage(selectedImage);
        this.setSelectedShelf(selectedShelf);
        this.setSelectedUser(selectedUser);
View Full Code Here

     * @param mainArea - next Area to show
     *
     */
    public void setMainArea(@Observes @EventType(Events.UPDATE_MAIN_AREA_EVENT) NavEvent ne) {
        if (this.mainArea != null && this.mainArea.equals(NavigationEnum.FILE_UPLOAD)) {
            event.select(new EventTypeQualifier(Events.CLEAR_FILE_UPLOAD_EVENT)).fire(new SimpleEvent());
        }
        this.mainArea = ne.getNav();
    }
View Full Code Here

            System.err.print(e.getMessage());
        }
    }

    public void fireCheckUserExpiredEvent() {
        event.fire(new SimpleEvent());
    }
View Full Code Here

TOP

Related Classes of org.richfaces.photoalbum.model.event.SimpleEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.