Package org.apache.slide.event

Examples of org.apache.slide.event.GenericEvent


                    eventInformation[counter][0] = information.getAttributeValue(A_INFORMATION_KEY);
                    eventInformation[counter][1] = information.getText();
                    counter++;
                }
                if ( event.getName().equals(E_EVENT) ) {
                    eventsToFire.add(new GenericEvent(this, eventInformation));
                } else if ( event.getName().equals(E_VETOABLE_EVENT) ) {
                    vetoableEventsToFire.add(new GenericEvent(this, eventInformation));
                }
            }
        } catch (Exception e) {
            int statusCode = getErrorCode( (Exception)e );
            sendError( statusCode, e );
View Full Code Here


    protected void executeRequest() throws WebdavException {
        try {
            // FIXME: Generate multi status output to give detailed information about every fired event
            if ( GenericEvent.EVENT_FIRED.isEnabled() ) {
                for ( Iterator i = eventsToFire.iterator(); i.hasNext(); ) {
                    GenericEvent event = (GenericEvent)i.next();
                    EventDispatcher.getInstance().fireEvent(GenericEvent.EVENT_FIRED, event);
                }
            }
            if ( GenericEvent.VETOABLE_EVENT_FIRED.isEnabled() ) {
                for ( Iterator i = vetoableEventsToFire.iterator(); i.hasNext(); ) {
                    GenericEvent event = (GenericEvent)i.next();
                    try {
                        EventDispatcher.getInstance().fireVetoableEvent(GenericEvent.VETOABLE_EVENT_FIRED, event);
                    } catch ( VetoException exception ) {
                        // add to multiresponse
                    }
View Full Code Here

TOP

Related Classes of org.apache.slide.event.GenericEvent

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.