fdda.dialog.swing.utils
Class Notification

java.lang.Object
  |
  +--fdda.utils.Notification
        |
        +--fdda.dialog.swing.utils.Notification

public class Notification
extends Notification

Implementation of the notification interface for the swing component.

Author:
Jörg Rüdenauer

Field Summary
 
Fields inherited from class fdda.utils.Notification
M_CONFIRM, M_ERROR, M_QUESTION, M_WARNING, S_ALGORITHM, S_MOD, S_PLUGIN, S_PROCESSING, S_SYSTEM, S_XML
 
Constructor Summary
Notification()
           
 
Method Summary
protected  void indicateState(boolean occupation)
          Delegate the occupation state indication to a subclass.
protected  int showMessage(int type, int source, String title, String message, String[] buttons)
          Delegate the showing of the message to a subclass.
 
Methods inherited from class fdda.utils.Notification
indicateNormalState, indicateOccupationState, message, message, message, message, setNotification, setSourceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notification

public Notification()
Method Detail

showMessage

protected int showMessage(int type,
                          int source,
                          String title,
                          String message,
                          String[] buttons)
Description copied from class: Notification
Delegate the showing of the message to a subclass.

Specified by:
showMessage in class Notification
Parameters:
type - the type of the message, one of the constants
source - the source of the message, probably one of the constants
title - the title of the message, e.g. used as title in a dialog
message - the message text
buttons - the inscriptions for (abstract) buttons, e.g. {"yes", "no"}
Returns:
the number of the button the user pressed (count starts with 0)

indicateState

protected void indicateState(boolean occupation)
Description copied from class: Notification
Delegate the occupation state indication to a subclass.

Specified by:
indicateState in class Notification
Parameters:
occupation - whether the application is occupied


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.