|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
com.jidesoft.grid.AbstractJideCellEditor
public abstract class AbstractJideCellEditor
AbstractJideCellEditor adds the validation support to AbstractCellEditor.
| Field Summary | |
|---|---|
protected int |
_clickCountToStart
An integer specifying the number of clicks needed to start editing. |
| Fields inherited from class javax.swing.AbstractCellEditor |
|---|
changeEvent, listenerList |
| Constructor Summary | |
|---|---|
AbstractJideCellEditor()
|
|
| Method Summary | |
|---|---|
void |
addValidationListener(Validator l)
Adds a Validator to the listener list. |
int |
getClickCountToStart()
Returns the number of clicks needed to start editing. |
int |
getDefaultErrorBehavior()
Gets the default validation error behavior. |
Validator[] |
getValidationListeners()
Returns an array of all the Validators added to this AbstractCellEditor with
addValidationListener(). |
boolean |
isAutoStopCellEditing()
Checks if the cell editor will stop editing when value is changed. |
boolean |
isCellEditable(EventObject anEvent)
|
boolean |
isPassEnterKeyToTable()
Checks if the ENTER key should be delegated to the table. |
void |
removeValidationListener(Validator l)
Removes a Validator from the listener list. |
void |
setAutoStopCellEditing(boolean autoStopCellEditing)
Sets the flag if the cell editor will stop editing when value is changed. |
void |
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing. |
void |
setDefaultErrorBehavior(int defaultErrorBehavior)
Sets the default validation error behavior. |
void |
setPassEnterKeyToTable(boolean passEnterKeyToTable)
If this flag is set to true, the editor should pass the ENTER key to the table after it is processed. |
ValidationResult |
validate(Object oldValue,
Object newValue)
Returns the state after validation. |
| Methods inherited from class javax.swing.AbstractCellEditor |
|---|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.CellEditor |
|---|
addCellEditorListener, cancelCellEditing, getCellEditorValue, removeCellEditorListener, shouldSelectCell, stopCellEditing |
| Field Detail |
|---|
protected int _clickCountToStart
clickCountToStart is defined as zero, it will not initiate until a click
occurs.
| Constructor Detail |
|---|
public AbstractJideCellEditor()
| Method Detail |
|---|
public boolean isCellEditable(EventObject anEvent)
isCellEditable in interface CellEditorisCellEditable in class AbstractCellEditorpublic void setClickCountToStart(int count)
count - an int specifying the number of clicks needed to start editinggetClickCountToStart()public int getClickCountToStart()
public void addValidationListener(Validator l)
Validator to the listener list.
l - the new listener to be addedpublic void removeValidationListener(Validator l)
Validator from the listener list.
l - the listener to be removedpublic Validator[] getValidationListeners()
Validators added to this AbstractCellEditor with
addValidationListener().
Validators added or an empty array if no listeners have been
added
public ValidationResult validate(Object oldValue,
Object newValue)
validate in interface JideCellEditoroldValue - the old valuenewValue - the new value
public int getDefaultErrorBehavior()
ValidationResult.FAIL_BEHAVIOR_PERSIST, ValidationResult.FAIL_BEHAVIOR_RESET, and
ValidationResult.FAIL_BEHAVIOR_REVERT. For example, in DateCellEditor, this is used
when the date entered by user is out of the range of valid dates as defined in DateModel.
public void setDefaultErrorBehavior(int defaultErrorBehavior)
ValidationResult.FAIL_BEHAVIOR_PERSIST, ValidationResult.FAIL_BEHAVIOR_RESET, and
ValidationResult.FAIL_BEHAVIOR_REVERT. For example, in DateCellEditor, this is used
when the date entered by user is out of the range of valid dates as defined in DateModel. By
default, the valid is ValidationResult.ERROR_BEHAVIOR_REVERT.
defaultErrorBehavior - the default error behavior.public boolean isAutoStopCellEditing()
public void setAutoStopCellEditing(boolean autoStopCellEditing)
autoStopCellEditing - true or false.public boolean isPassEnterKeyToTable()
public void setPassEnterKeyToTable(boolean passEnterKeyToTable)
passEnterKeyToTable - true or false.
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||