tecgraf.javautils.gui.selector
Class ItemContainerEvent<T>

java.lang.Object
  extended by java.util.EventObject
      extended by tecgraf.javautils.gui.selector.ItemContainerEvent<T>
All Implemented Interfaces:
Serializable

public class ItemContainerEvent<T>
extends EventObject

Description: Evento gerado pelo ItemContainer quando um elemento é selecionado

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ItemContainerEvent(ItemContainer<T> source, Collection<T> selectedElements)
          Cria um IemContainerEvent
 
Method Summary
 Collection<T> getSelectedItens()
          Pega os elementos selecionados
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ItemContainerEvent

public ItemContainerEvent(ItemContainer<T> source,
                          Collection<T> selectedElements)
Cria um IemContainerEvent

Parameters:
source - ItemContainer responsavel pela geração do evento
selectedElements - Collection elementos selecionados
Method Detail

getSelectedItens

public Collection<T> getSelectedItens()
Pega os elementos selecionados

Returns:
Collection com os elementos selecionados, sendo esta coleção não modificavel (Collections.unmodifiableCollection(Collection))


Copyright © 2014 Tecgraf/PUC-Rio. All rights reserved.