openfuture.bugbase.app.controller
Class AbsController

java.lang.Object
  |
  +--openfuture.bugbase.app.controller.AbsController
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:
BugReportController, DatabaseAdminController, DoubleListController, GeneralAdminController, ListController, ProjectAdminController

public abstract class AbsController
extends java.lang.Object
implements java.awt.event.ItemListener, java.awt.event.ActionListener, java.awt.event.FocusListener, javax.swing.event.ListSelectionListener, javax.swing.event.TableModelListener

Abstract controller providing general methods.

Created: Tue Feb 08 23:39:18 2000

Version:
$Revision: 1.5 $
Author:
Wolfgang Reissenberger

Constructor Summary
AbsController()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 BugReport getBugReport()
          Get the value of bugReport.
 boolean getIgnoreEvents()
          Get the value of ignoreEvents.
 java.lang.String getProject()
          Get the value of project.
 BugBaseServletClient getServletClient()
          Get the value of servletClient.
 AbsPanel getView()
          Get the value of view.
 void init()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void setBugReport(BugReport v)
          Set the value of bugReport.
 void setIgnoreEvents(boolean v)
          Set the value of ignoreEvents.
 void setProject(java.lang.String v)
          Set the value of project.
 void setServletClient(BugBaseServletClient v)
          Set the value of servletClient.
 void setView(AbsPanel v)
          Set the value of view.
 void showError(java.awt.Component parentComponent, java.lang.Exception e)
          Shows up an error dialog with the message of the exception.
 void showError(java.lang.Exception e)
          Shows up an error dialog with the message of the exception using getView() as parent component.
 void showI18NError(java.awt.Component parentComponent, I18NException e)
          Shows up an error dialog with the message of the exception.
 void showI18NError(I18NException e)
          Shows up an error dialog with the message of the exception using getView() as parent component.
 java.util.Date stringToDate(java.lang.String s)
           
 void tableChanged(javax.swing.event.TableModelEvent e)
          Override this method in subclasses.
 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

AbsController

public AbsController()
Method Detail

init

public void init()

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener
Parameters:
e - a value of type 'FocusEvent'

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener
Parameters:
e - a value of type 'FocusEvent'

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - a value of type 'ActionEvent'

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
Parameters:
e - a value of type 'ListSelectionEvent'

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
e - a value of type 'ItemEvent'

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Override this method in subclasses.
Specified by:
tableChanged in interface javax.swing.event.TableModelListener
Parameters:
e - table model event

stringToDate

public java.util.Date stringToDate(java.lang.String s)
                            throws java.text.ParseException

getBugReport

public BugReport getBugReport()
Get the value of bugReport.
Returns:
Value of bugReport.

setBugReport

public void setBugReport(BugReport v)
Set the value of bugReport.
Parameters:
v - Value to assign to bugReport.

getView

public AbsPanel getView()
Get the value of view.
Returns:
Value of view.

setView

public void setView(AbsPanel v)
Set the value of view.
Parameters:
v - Value to assign to view.

getProject

public java.lang.String getProject()
Get the value of project.
Returns:
Value of project.

setProject

public void setProject(java.lang.String v)
Set the value of project.
Parameters:
v - Value to assign to project.

getServletClient

public BugBaseServletClient getServletClient()
Get the value of servletClient.
Returns:
Value of servletClient.

setServletClient

public void setServletClient(BugBaseServletClient v)
Set the value of servletClient.
Parameters:
v - Value to assign to servletClient.

getIgnoreEvents

public boolean getIgnoreEvents()
Get the value of ignoreEvents.
Returns:
Value of ignoreEvents.

setIgnoreEvents

public void setIgnoreEvents(boolean v)
Set the value of ignoreEvents.
Parameters:
v - Value to assign to ignoreEvents.

showError

public void showError(java.lang.Exception e)
Shows up an error dialog with the message of the exception using getView() as parent component.
Parameters:
e - exception that should be shown.

showI18NError

public void showI18NError(I18NException e)
Shows up an error dialog with the message of the exception using getView() as parent component.
Parameters:
e - exception that should be shown.

showError

public void showError(java.awt.Component parentComponent,
                      java.lang.Exception e)
Shows up an error dialog with the message of the exception.
Parameters:
parentComponent - parent component of the dialog.
e - exception that should be shown.

showI18NError

public void showI18NError(java.awt.Component parentComponent,
                          I18NException e)
Shows up an error dialog with the message of the exception.
Parameters:
parentComponent - parent component of the dialog.
e - exception that should be shown.


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