|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.appworx.InteractiveError
public class InteractiveError
Description of an error.
InteractiveErrors provide a semantic link between the
data- and the presentation-layer. Usually, the data is verified
at the data-layer and then decorated at the presentation-layer
by examining the error (e.g. assign a GUI-component).
The TooltipAndErrorPanel is able to deal with a list
of InteractiveErrors.
InteractiveErrors are serializable, so they can be generated at
the server and sent to the client. The GUI-component, which can be any
object, is transient, however (doesn't make any sense at the server-side anyway).
| Constructor Summary | |
|---|---|
InteractiveError(int errorCode)
Creates an error with a unique error code and default Logger.Level.WARNING. |
|
InteractiveError(int errorCode,
String text)
Creates an error with a unique error code. |
|
InteractiveError(int errorCode,
String text,
Logger.Level level)
Creates an error with a unique error code. |
|
InteractiveError(String text)
Creates an error with the default Logger.Level.WARNING
and no related component. |
|
InteractiveError(String text,
FormComponent component)
Creates an error with the default Logger.Level.WARNING. |
|
InteractiveError(String text,
FormComponent component,
Logger.Level level)
Creates an error. |
|
| Method Summary | |
|---|---|
int |
getErrorNumber()
Gets the optional error number. |
FormComponent |
getFormComponent()
Gets the related swing GUI-component. |
Object |
getGuiComponent()
Gets the related GUI-component. |
Logger.Level |
getLevel()
Gets the severity level. |
String |
getText()
Gets the error message. |
void |
setErrorNumber(int errorNumber)
Sets the optional error number. |
void |
setFormComponent(FormComponent formComponent)
Sets the related swing GUI-component. |
void |
setGuiComponent(Object guiComponent)
Sets the related GUI-component. |
void |
setLevel(Logger.Level level)
Sets the severity level. |
void |
setText(String text)
Sets the error message. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InteractiveError(String text,
FormComponent component,
Logger.Level level)
text - the error textcomponent - the form component related to the error, null if nonelevel - the severity (either Logger.Level.WARNING or Logger.Level.SEVERE)
public InteractiveError(String text,
FormComponent component)
Logger.Level.WARNING.
text - the error textcomponent - the form component related to the errorpublic InteractiveError(String text)
Logger.Level.WARNING
and no related component.
text - the error text
public InteractiveError(int errorCode,
String text,
Logger.Level level)
errorCode - the error codetext - the error textlevel - the severity (either Logger.Level.WARNING or Logger.Level.SEVERE)
public InteractiveError(int errorCode,
String text)
errorCode - the error codetext - the error textpublic InteractiveError(int errorCode)
Logger.Level.WARNING.
errorCode - the error code| Method Detail |
|---|
public String toString()
java.lang.ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class Objectpublic Logger.Level getLevel()
Logger.Level.WARNING or Logger.Level.SEVEREpublic void setLevel(Logger.Level level)
level - one of Logger.Level.WARNING or Logger.Level.SEVEREpublic String getText()
public void setText(String text)
text - the error textpublic int getErrorNumber()
public void setErrorNumber(int errorNumber)
errorNumber - the error number.public FormComponent getFormComponent()
public void setFormComponent(FormComponent formComponent)
formComponent - the swing component, null if nonepublic Object getGuiComponent()
public void setGuiComponent(Object guiComponent)
guiComponent - the component, null if none
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||