com.mtp.model
Class StatusModel

java.lang.Object
  |
  +--com.mtp.model.StatusModel

public class StatusModel
extends Object

Represents an integer and alerts listeners of changes.

Author:
Matthew Pekar

Field Summary
protected  Color color
           
protected  Throwable exception
           
protected  Listeners listeners
           
protected  StackTraceElement[] stackTrace
           
protected  String status
           
 
Constructor Summary
StatusModel()
           
 
Method Summary
protected  void fireChange()
           
 Color getColor()
           
 Throwable getException()
           
 Listeners getListeners()
          Return my StatusModelListener's.
protected  Throwable getRootCause(Throwable t)
           
 String getStatus()
           
 void handleException(String humanMessage, Throwable t)
           
 void handleException(Throwable t)
           
 void setColor(Color c)
           
 void setStatus(String s)
           
 void setStatus(String s, Color c)
           
protected  boolean specialExceptionCaseHandled(Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

protected Listeners listeners

status

protected String status

color

protected Color color

stackTrace

protected StackTraceElement[] stackTrace

exception

protected Throwable exception
Constructor Detail

StatusModel

public StatusModel()
Method Detail

getException

public Throwable getException()

getListeners

public Listeners getListeners()
Return my StatusModelListener's.


getStatus

public String getStatus()

setColor

public void setColor(Color c)

getColor

public Color getColor()

setStatus

public void setStatus(String s)

setStatus

public void setStatus(String s,
                      Color c)

fireChange

protected void fireChange()

getRootCause

protected Throwable getRootCause(Throwable t)

specialExceptionCaseHandled

protected boolean specialExceptionCaseHandled(Throwable t)

handleException

public void handleException(Throwable t)

handleException

public void handleException(String humanMessage,
                            Throwable t)


Copyright © 2002 Matthew Pekar. All Rights Reserved.