Class SelectionChain



  • public class SelectionChain
    extends Object
    • Constructor Detail

      • SelectionChain

        public SelectionChain()
    • Method Detail

      • remove

        public void remove(Selectable component)
        Remove a component from this chain of selectable components.
        Parameters:
        component - the component to remove.
      • add

        public void add(Selectable selectable)
        Add a component to this chain of selectable components.
        Parameters:
        selectable - the component to add.
      • setCurrent

        protected void setCurrent(Selectable component)
        Set the currently selected component within this chain
        Parameters:
        component - the selected component.
      • addSelectionChainListener

        public void addSelectionChainListener(SelectionChainListener listener)
        Add a listener to receive notifications about selection events
        Parameters:
        listener - the listener to add
      • removeSelectionChainListener

        public void removeSelectionChainListener(SelectionChainListener listener)
        Add a listener to receive notifications about selection events
        Parameters:
        listener - the listener to remove
      • getCurrent

        public JComponent getCurrent()
        Returns:
        the currently selected component.