org.fopps.ui
Class ListController

java.lang.Object
  |
  +--org.fopps.ui.ListController
All Implemented Interfaces:
ContainerSelectable, Controller, java.util.EventListener, java.awt.ItemSelectable, javax.swing.event.ListSelectionListener, java.awt.event.MouseListener
Direct Known Subclasses:
ProjectListController

public abstract class ListController
extends java.lang.Object
implements javax.swing.event.ListSelectionListener, ContainerSelectable, Controller, java.awt.event.MouseListener

Generic controller for lists


Constructor Summary
ListController(EnhancedList pList)
          Constructor for ListController.
 
Method Summary
 void addItemListener(java.awt.event.ItemListener l)
           
 EnhancedList getList()
          Returns the list.
 java.util.List getListeners()
          Returns the listeners.
 java.lang.Object[] getSelectedObjects()
           
 ViewActionReceiver[] getViews()
          Returns the corresponding view(s) of the controller
 void mouseClicked(java.awt.event.MouseEvent e)
          Invoked when the mouse has been clicked on a component.
 void mouseEntered(java.awt.event.MouseEvent e)
          Invoked when the mouse enters a component.
 void mouseExited(java.awt.event.MouseEvent e)
          Invoked when the mouse exits a component.
 void mousePressed(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void removeItemListener(java.awt.event.ItemListener l)
           
abstract  void setContainer(ProjectContainer pContainer)
          Sets the container
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListController

public ListController(EnhancedList pList)
Constructor for ListController.

Method Detail

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
See Also:
ListSelectionListener.valueChanged(ListSelectionEvent)

setContainer

public abstract void setContainer(ProjectContainer pContainer)
Description copied from interface: ContainerSelectable
Sets the container

Specified by:
setContainer in interface ContainerSelectable
See Also:
ContainerSelectable.setContainer(ProjectContainer)

addItemListener

public void addItemListener(java.awt.event.ItemListener l)
Specified by:
addItemListener in interface java.awt.ItemSelectable
See Also:
ItemSelectable.addItemListener(ItemListener)

getSelectedObjects

public java.lang.Object[] getSelectedObjects()
Specified by:
getSelectedObjects in interface java.awt.ItemSelectable
See Also:
ItemSelectable.getSelectedObjects()

removeItemListener

public void removeItemListener(java.awt.event.ItemListener l)
Specified by:
removeItemListener in interface java.awt.ItemSelectable
See Also:
ItemSelectable.removeItemListener(ItemListener)

getList

public EnhancedList getList()
Returns the list.

Returns:
EnhancedList

getListeners

public java.util.List getListeners()
Returns the listeners.

Returns:
List

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component. Triggers popup menu

Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component. Triggers popup menu

Specified by:
mouseClicked in interface java.awt.event.MouseListener

getViews

public ViewActionReceiver[] getViews()
Returns the corresponding view(s) of the controller

Specified by:
getViews in interface Controller

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.

Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.

Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.

Specified by:
mouseExited in interface java.awt.event.MouseListener


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.