Package javax.faces.event

Examples of javax.faces.event.FacesListener


        }
        List<FacesListener> lst = null;
        // perf: _facesListeners is RandomAccess instance (javax.faces.component._DeltaList)
        for (int i = 0, size = _facesListeners.size(); i < size; i++)
        {
            FacesListener facesListener = _facesListeners.get(i);
            if (facesListener != null && clazz.isAssignableFrom(facesListener.getClass()))
            {
                if (lst == null)
                {
                    lst = new ArrayList<FacesListener>();
                }
View Full Code Here


                nestedObjects = true;
                stream.println('>');
                mustClose = false;
                for (int i = 0; i < listeners.length; i++)
                {
                    FacesListener listener = listeners[i];
                    printIndent(stream, indent + 1);
                    stream.print('<');
                    stream.print(listener.getClass().getName());
                    stream.println("/>");
                }
            }
        }

        if (comp instanceof UIInput)
        {
            FacesListener[] listeners = ((UIInput)comp).getValueChangeListeners();
            if (listeners != null && listeners.length > 0)
            {
                nestedObjects = true;
                stream.println('>');
                mustClose = false;
                for (int i = 0; i < listeners.length; i++)
                {
                    FacesListener listener = listeners[i];
                    printIndent(stream, indent + 1);
                    stream.print('<');
                    stream.print(listener.getClass().getName());
                    stream.println("/>");
                }
            }

            Validator[] validators = ((UIInput)comp).getValidators();
View Full Code Here

           
            if (_facesListeners == null)
                return;
            for (Iterator<FacesListener> it = _facesListeners.iterator(); it.hasNext();)
            {
                FacesListener facesListener = it.next();
                if (event.isAppropriateListener(facesListener))
                {
                    event.processListener(facesListener);
                }
            }
View Full Code Here

            return (FacesListener[]) Array.newInstance(clazz, 0);
        }
        List<FacesListener> lst = null;
        for (Iterator<FacesListener> it = _facesListeners.iterator(); it.hasNext();)
        {
            FacesListener facesListener = it.next();
            if (facesListener != null && clazz.isAssignableFrom(facesListener.getClass()))
            {
                if (lst == null)
                    lst = new ArrayList<FacesListener>();
                lst.add(facesListener);
            }
View Full Code Here

  public void broadcast(FacesEvent event) throws AbortProcessingException {
    super.broadcast(event);
   
    DataComponentState componentState = getComponentState();
    if (componentState instanceof FacesListener) {
      FacesListener facesListener = (FacesListener) componentState;

      if (event.isAppropriateListener(facesListener)) {
        // we can safely open/close nodes here
        event.processListener(facesListener);
      }
View Full Code Here

            return;
        }

        Iterator<FacesListener> iter = listeners.iterator();
        while (iter.hasNext()) {
            FacesListener listener = iter.next();
            if (event.isAppropriateListener(listener)) {
                event.processListener(listener);
            }
        }
    }
View Full Code Here

        //noinspection CollectionWithoutInitialCapacity
        List<FacesListener> results = new ArrayList<FacesListener>();
  Iterator<FacesListener> items = listeners.iterator();
  while (items.hasNext()) {
      FacesListener item = items.next();
      if (((Class<?>)clazz).isAssignableFrom(item.getClass())) {
    results.add(item);
      }
  }
 
        return (results.toArray
View Full Code Here

            return;
        }

        Iterator<FacesListener> iter = listeners.iterator();
        while (iter.hasNext()) {
            FacesListener listener = iter.next();
            if (event.isAppropriateListener(listener)) {
                event.processListener(listener);
            }
        }
    }
View Full Code Here

        //noinspection CollectionWithoutInitialCapacity
        List<FacesListener> results = new ArrayList<FacesListener>();
  Iterator<FacesListener> items = listeners.iterator();
  while (items.hasNext()) {
      FacesListener item = items.next();
      if (((Class<?>)clazz).isAssignableFrom(item.getClass())) {
    results.add(item);
      }
  }

        return (results.toArray
View Full Code Here

           
            if (_facesListeners == null)
                return;
            for (Iterator<FacesListener> it = _facesListeners.iterator(); it.hasNext();)
            {
                FacesListener facesListener = it.next();
                if (event.isAppropriateListener(facesListener))
                {
                    event.processListener(facesListener);
                }
            }
View Full Code Here

TOP

Related Classes of javax.faces.event.FacesListener

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.