|
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
com.jidesoft.grid.ContextSensitiveCellEditor
com.jidesoft.grid.TextFieldCellEditor
com.jidesoft.grid.PasswordCellEditor
public class PasswordCellEditor
CellEditor for password. The default data type for password is char[].class. By default PasswordCellEditor is
registered on CellEditorManager with char[].class as data type and
EditorContext("Password") as the editor context.
ObjectConverterManager between
the input password and the displayed text.
| Field Summary | |
|---|---|
static EditorContext |
CONTEXT
|
| Fields inherited from class com.jidesoft.grid.TextFieldCellEditor |
|---|
_textField |
| Fields inherited from class com.jidesoft.grid.ContextSensitiveCellEditor |
|---|
DEFAULT_CELL_EDITOR_BORDER |
| Fields inherited from class com.jidesoft.grid.AbstractJideCellEditor |
|---|
_clickCountToStart |
| Fields inherited from class javax.swing.AbstractCellEditor |
|---|
changeEvent, listenerList |
| Constructor Summary | |
|---|---|
PasswordCellEditor()
|
|
| Method Summary | |
|---|---|
protected JTextField |
createTextField()
Creates a text field used by the cell editor. |
Object |
getCellEditorValue()
|
void |
setCellEditorValue(Object value)
|
| Methods inherited from class com.jidesoft.grid.TextFieldCellEditor |
|---|
actionPerformed, customizeTextField, getTableCellEditorComponent, getTextField, isEditorStyleSupported |
| Methods inherited from class com.jidesoft.grid.ContextSensitiveCellEditor |
|---|
getConverter, getConverterContext, getEditorContext, getEditorStyle, getType, isUseConverterContext, setConverter, setConverterContext, setEditorContext, setEditorStyle, setType, setUseConverterContext |
| Methods inherited from class com.jidesoft.grid.AbstractJideCellEditor |
|---|
addValidationListener, getClickCountToStart, getDefaultErrorBehavior, getValidationListeners, isAutoStopCellEditing, isCellEditable, isPassEnterKeyToTable, removeValidationListener, setAutoStopCellEditing, setClickCountToStart, setDefaultErrorBehavior, setPassEnterKeyToTable, validate |
| 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, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
| Field Detail |
|---|
public static final EditorContext CONTEXT
| Constructor Detail |
|---|
public PasswordCellEditor()
| Method Detail |
|---|
protected JTextField createTextField()
TextFieldCellEditor
return new JTextField() {
protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean
pressed) {
Container parent = null;
if (e.getSource() != parent && isPassEnterKeyToTable() && e.getKeyCode() ==
KeyEvent.VK_ENTER) {
parent = SwingUtilities.getAncestorOfClass(JideTable.class, this);
}
boolean processed = super.processKeyBinding(ks, e, condition, pressed); // stop cell
editing
if (e.getSource() != parent && parent instanceof JideTable) {
((JideTable) parent).processKeyBinding(ks, e, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
pressed);
}
return processed;
}
};
createTextField in class TextFieldCellEditorpublic void setCellEditorValue(Object value)
setCellEditorValue in class TextFieldCellEditorpublic Object getCellEditorValue()
getCellEditorValue in interface CellEditorgetCellEditorValue in class TextFieldCellEditor
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||