openfuture.bugbase.app.controller
Class ListController

java.lang.Object
  |
  +--openfuture.bugbase.app.controller.AbsController
        |
        +--openfuture.bugbase.app.controller.ListController
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.event.ItemListener, javax.swing.event.ListSelectionListener, javax.swing.event.TableModelListener
Direct Known Subclasses:
SimpleListController, UserController

public class ListController
extends AbsController

Abstract controller handling lists.

Created: Wed Feb 09 06:07:13 2000

Version:
$Revision: 1.4 $
Author:
Wolfgang Reissenberger

Constructor Summary
ListController(AbsController parentController, java.util.LinkedList theList)
           
 
Method Summary
protected  void deleteElement(int i)
          Delete the element at position i.
 java.util.LinkedList getDeletedElements()
          Get the value of deletedElements.
 SimpleListModel getListModel()
          Get the value of myListModel.
 java.lang.Object getNewElement()
          Get the value of newElement.
 java.lang.Object getSelected()
          Get the value of selected.
 java.lang.Integer getSelectedIndex()
          Get the value of selectedIndex.
 void setDeletedElements(java.util.LinkedList v)
          Set the value of deletedElements.
 void setListModel(SimpleListModel v)
          Set the value of myListModel.
 void setNewElement(java.lang.Object v)
          Set the value of newElement.
 void setSelected(java.lang.Object v)
          Set the value of selected.
 void setSelectedIndex(java.lang.Integer v)
          Set the value of selectedIndex.
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 
Methods inherited from class openfuture.bugbase.app.controller.AbsController
actionPerformed, focusGained, focusLost, getBugReport, getIgnoreEvents, getProject, getServletClient, getView, init, itemStateChanged, setBugReport, setIgnoreEvents, setProject, setServletClient, setView, showError, showError, showI18NError, showI18NError, stringToDate, tableChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListController

public ListController(AbsController parentController,
                      java.util.LinkedList theList)
Method Detail

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Overrides:
valueChanged in class AbsController
Parameters:
e - selection event

getSelectedIndex

public java.lang.Integer getSelectedIndex()
Get the value of selectedIndex.
Returns:
Value of selectedIndex.

setSelectedIndex

public void setSelectedIndex(java.lang.Integer v)
Set the value of selectedIndex.
Parameters:
v - Value to assign to selectedIndex.

getListModel

public SimpleListModel getListModel()
Get the value of myListModel.
Returns:
Value of myListModel.

setListModel

public void setListModel(SimpleListModel v)
Set the value of myListModel.
Parameters:
v - Value to assign to myListModel.

getSelected

public java.lang.Object getSelected()
Get the value of selected.
Returns:
Value of selected.

setSelected

public void setSelected(java.lang.Object v)
Set the value of selected.
Parameters:
v - Value to assign to selected.

getDeletedElements

public java.util.LinkedList getDeletedElements()
Get the value of deletedElements.
Returns:
Value of deletedElements.

setDeletedElements

public void setDeletedElements(java.util.LinkedList v)
Set the value of deletedElements.
Parameters:
v - Value to assign to deletedElements.

deleteElement

protected void deleteElement(int i)
Delete the element at position i. If the element is a new DomainObject, the element will NOT be added to the deletedElements.
Parameters:
i - element position (0..n)

getNewElement

public java.lang.Object getNewElement()
Get the value of newElement.
Returns:
Value of newElement.

setNewElement

public void setNewElement(java.lang.Object v)
Set the value of newElement.
Parameters:
v - Value to assign to newElement.


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.