All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.butterfaces.component.html.repeat.event.RowKeyFacesEvent Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
/*
 * Copyright Lars Michaelis and Stephan Zerhusen 2016.
 * Distributed under the MIT License.
 * (See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
 */
package org.butterfaces.component.html.repeat.event;

import org.butterfaces.component.html.repeat.UIDataAdaptor;

import javax.faces.event.FacesEvent;
import javax.faces.event.FacesListener;
import javax.faces.event.PhaseId;

/**
 * @author Lars Michaelis
 */
public class RowKeyFacesEvent extends FacesEvent {

    private FacesEvent event;
    private Integer eventRowKey;

    public RowKeyFacesEvent(UIDataAdaptor component, FacesEvent event, Integer eventRowKey) {
        super(component);

        this.event = event;
        this.eventRowKey = eventRowKey;
    }

    public FacesEvent getFacesEvent() {
        return this.event;
    }

    public Integer getEventRowKey() {
        return eventRowKey;
    }

    public PhaseId getPhaseId() {
        return this.event.getPhaseId();
    }

    public void setPhaseId(PhaseId phaseId) {
        this.event.setPhaseId(phaseId);
    }

    public boolean isAppropriateListener(FacesListener listener) {
        return false;
    }

    public void processListener(FacesListener listener) {
        throw new UnsupportedOperationException();
    }

    public UIDataAdaptor getComponent() {
        return (UIDataAdaptor) super.getComponent();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy