|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.common.MessageManager
One of the CM component classes which enable I18N and security of the inherited GUI component class, and portablity of code.
Refer to the Handbook for information on Messages and Exceptions.
Field Summary | |
boolean |
internalTrace
|
static int |
MAX_PROGRESS
|
Constructor Summary | |
MessageManager()
MessageManager constructor comment. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field. |
void |
clearMessageVector()
|
void |
debugMessage(Exception e)
Gets the TranslationManager for the current service. |
void |
debugMessage(String msg)
Gets the TranslationManager for the current service. |
void |
debugMessage(String message,
Exception e)
Gets the TranslationManager for the current service. |
void |
debugMessage(String message,
Throwable t)
Gets the TranslationManager for the current service. |
void |
debugMessage(Throwable t)
Gets the TranslationManager for the current service. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
The firePropertyChange method was generated to support the propertyChange field. |
static CMException |
generateException(String exceptionKey)
Convenience method which simply creates the replacement text variables as an array |
static CMException |
generateException(String exceptionKey,
Object[] replacementVars)
Generate a new CMException. |
static CMException |
generateException(String exceptionKey,
String parm1)
Convenience method which simply creates the replacement text variables as an array |
static CMException |
generateException(String exceptionKey,
String parm1,
String parm2)
Convenience method which simply creates the replacement text variables as an array |
static CMException |
generateException(String exceptionKey,
String parm1,
String parm2,
String parm3)
Convenience method which simply creates the replacement text variables as an array |
CMMessage |
getCMMessage()
Gets the CMMessage property (cm.common.CMMessage) value, once and once only. |
Vector |
getMessageVector()
Gets the messageVector property (java.util.Vector) value. |
static String |
getModificationLevel()
|
int |
getProgressBarValue()
Gets the progressBarValue property (int) value. |
void |
incrementProgressBar()
increases the progressBarValue property (int) value. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field. |
static void |
resetSingleton()
Reset the cached singleton so that future selects can refresh the data from the database. |
void |
setCMException(CMException CMException)
Sets the CMException property (cm.common.exception.CMException) value. |
boolean |
setCMMessage(CMMessage newCMMessage)
Sets the CMMessage property (cm.common.CMMessage) value. |
void |
setInternalTrace(boolean flag)
|
void |
setMessageVector(Vector newVector)
|
void |
setProgressBarValue(int value)
Sets the progressBarValue property (int) value so it can reset before a load. |
void |
setThrowable(Throwable throwable)
Sets the throwable property (java.lang.Throwable) value. |
void |
showException(CMException exception)
This method was created by a SmartGuide. |
void |
showException(CmExceptionEvent cmEvent)
This method was created by a SmartGuide. |
void |
showException(Frame owner,
CMException exception)
This method was created by a SmartGuide. |
void |
showException(Throwable exception)
This method was created by a SmartGuide. |
static MessageManager |
singleton()
Return a single instance of this class. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MAX_PROGRESS
public boolean internalTrace
Constructor Detail |
public MessageManager()
Method Detail |
public void addPropertyChangeListener(PropertyChangeListener listener)
public void clearMessageVector()
public void debugMessage(Exception e)
public void debugMessage(String msg)
public void debugMessage(String message, Exception e)
public void debugMessage(String message, Throwable t)
public void debugMessage(Throwable t)
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public static CMException generateException(String exceptionKey)
public static CMException generateException(String exceptionKey, Object[] replacementVars)
public static CMException generateException(String exceptionKey, String parm1)
public static CMException generateException(String exceptionKey, String parm1, String parm2)
public static CMException generateException(String exceptionKey, String parm1, String parm2, String parm3)
public CMMessage getCMMessage()
setCMMessage(planetj.common.CMMessage)
public Vector getMessageVector()
public static String getModificationLevel()
public int getProgressBarValue()
setProgressBarValue(int)
public void incrementProgressBar()
public void removePropertyChangeListener(PropertyChangeListener listener)
public static void resetSingleton()
public void setCMException(CMException CMException)
CMException
- The new value for the property.public boolean setCMMessage(CMMessage newCMMessage)
getCMMessage()
public void setInternalTrace(boolean flag)
public void setMessageVector(Vector newVector)
public void setProgressBarValue(int value)
public void setThrowable(Throwable throwable)
throwable
- The new value for the property.public void showException(Frame owner, CMException exception)
public void showException(Throwable exception)
public void showException(CMException exception)
public void showException(CmExceptionEvent cmEvent)
public static MessageManager singleton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |