|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.jxcell.ValidationFailedEvent
This event occurs when the validation process fails
Field Summary | |
static short |
eFail
validation failure throw an exception |
static short |
eIgnoreValidationRule
validatation failure ignore the rule and place the value into the cell |
static short |
eRetry
validation failure, revalidate, then throw an exception |
static short |
eShowErrorAndFail
validation, show an error message box, then throw an exception |
Method Summary | |
short |
getAction()
This method returns the action when validation fails |
int |
getCol()
This method returns the column the user was entering data in when validation failed |
java.lang.String |
getEntry()
This method returns the entry the user was trying to make when validation failed |
java.lang.String |
getMessage()
This method returns the message returned when validation fails |
int |
getRow()
This method returns the row the user was entering data in when validation failed |
int |
getSheet()
This method returns the sheet the user was entering data in when validation failed |
void |
setAction(short action)
This method sets the action taken by Formula One when validation fails |
void |
setEntry(java.lang.String entry)
This method can be used within the ValidationFailed event to set the entry to a new value if the setAction method is set to 3 - retry validation. |
void |
setMessage(java.lang.String message)
This method sets the message returned when validation fails |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final short eFail
public static final short eIgnoreValidationRule
public static final short eRetry
public static final short eShowErrorAndFail
Method Detail |
public short getAction()
public int getCol()
public java.lang.String getEntry()
public java.lang.String getMessage()
public int getRow()
public int getSheet()
public void setAction(short action) throws CellException
action
- integer describing the action taken on validation failure
eFail eIgnoreValidationRule eRetry eShowErrorAndFail
CellException
public void setEntry(java.lang.String entry)
entry
- string indicating the new entrypublic void setMessage(java.lang.String message)
message
- the validation failure message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |