|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.text.JTextComponent javax.swing.JTextField com.ibm.etools.iseries.ui.JFormattedTextField com.ibm.etools.iseries.ui.JFormattedTextFieldCellEditor
public class JFormattedTextFieldCellEditor
This class is a wrapper class of com.ibm.etools.iseries.ui.JFormattedTextField that implements the TableCellEditor interface. It can be used as a table cell editor for a JFormattedTableColumn in JFormattedTable, particularly for AS/400 data.
JFormattedTextField
,
TableCellEditor
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTextField |
---|
JTextField.AccessibleJTextField |
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected ChangeEvent |
changeEvent
|
static String |
Copyright
|
protected boolean |
focusGained
|
protected boolean |
focusLost
|
protected Border |
noFocusBorder
|
Fields inherited from class javax.swing.JTextField |
---|
notifyAction |
Fields inherited from class javax.swing.text.JTextComponent |
---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface com.ibm.etools.iseries.ui.JFormattedComponent |
---|
copyright |
Fields inherited from interface com.ibm.etools.iseries.ui.EditmaskAttributesChangeListener |
---|
copyright |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JFormattedTextFieldCellEditor()
Creates a new JFormattedTextFieldCellEditor. |
|
JFormattedTextFieldCellEditor(Document doc,
String text,
int columns)
Creates a new JFormattedTextFieldCellEditor with the specified document, text and column number. |
|
JFormattedTextFieldCellEditor(Document doc,
String text,
int columns,
FieldModel fm)
Creates a new JFormattedTextFieldCellEditor with the specified document, text, column number and field model. |
|
JFormattedTextFieldCellEditor(FieldModel fm)
Creates a new JFormattedTextFieldCellEditor with the specified field model. |
|
JFormattedTextFieldCellEditor(int columns)
Creates a new JFormattedTextFieldCellEditor with the specified column number. |
|
JFormattedTextFieldCellEditor(String text)
Creates a new JFormattedTextFieldCellEditor with the specified text. |
|
JFormattedTextFieldCellEditor(String text,
int columns)
Creates a new JFormattedTextFieldCellEditor with the specified text and column number. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when action occurs. |
void |
addCellEditorListener(CellEditorListener l)
Adds a CellEditorListener to listener list. |
void |
cancelCellEditing()
Cancels editing. |
static String |
Copyright()
Copyright notice. |
protected void |
fireEditingCanceled()
Fires editing canceled event. |
protected void |
fireEditingStopped()
Fires editing stopped event. |
void |
focusGained(FocusEvent e)
Called when the component gains focus. |
void |
focusLost(FocusEvent e)
Called when the component loses focus. |
Object |
getCellEditorValue()
Gets the value of the editing cell. |
int |
getClickCountToStart()
Gets the ClickCountToStart. |
EventListenerList |
getListenerList()
Returns the listener list. |
Border |
getNoFocusBorder()
Gets the border of cells without focus. |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Sets an initial value for the editing. |
boolean |
isCellEditable(EventObject anEvent)
Returns true if the editing can be started. |
void |
removeCellEditorListener(CellEditorListener l)
Removes a CellEditorListener from listener list. |
void |
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing. |
void |
setNoFocusBorder(Border aBorder)
Sets the border of the cells without focus. |
boolean |
shouldSelectCell(EventObject anEvent)
Indicates whether the editing cell should be selected or not. |
protected boolean |
startCellEditing(EventObject anEvent)
Checks whether or not to start the editing, called by isCellEditable(EventObject) |
boolean |
stopCellEditing()
Stops the editing. |
Methods inherited from class com.ibm.etools.iseries.ui.JFormattedTextField |
---|
convertInternalToUnformatted, convertUnformattedToInternal, editmaskAttributesChanged, getBackground, getEditmaskAttributes, getEditmaskViewUI, getFieldModel, getInternalValue, getText, getUnformattedText, isValueValid, isValueValidForNumeric, processFocusEvent, setBackground, setEditmaskAttributes, setEditmaskViewUI, setFieldModel, setInternalValue, setText, setUnformattedText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
protected Border noFocusBorder
protected transient ChangeEvent changeEvent
protected boolean focusGained
protected boolean focusLost
Constructor Detail |
---|
public JFormattedTextFieldCellEditor()
public JFormattedTextFieldCellEditor(int columns)
columns
- The number of columns to use to calculate the preferred width.public JFormattedTextFieldCellEditor(FieldModel fm)
fm
- The field model for formatting and validating.public JFormattedTextFieldCellEditor(String text)
text
- The initial string to display, or null.public JFormattedTextFieldCellEditor(String text, int columns)
text
- The initial string to display, or null.columns
- The number of columns to use to calculate the preferred width.public JFormattedTextFieldCellEditor(Document doc, String text, int columns)
doc
- The text storage to use.text
- The initial string to display, or null.columns
- The number of columns to use to calculate the preferred width. If columns is set to zero, the preferred width will be whatever
naturally results from the component implementation.public JFormattedTextFieldCellEditor(Document doc, String text, int columns, FieldModel fm)
doc
- The text storage to use.text
- The initial string to display, or null.columns
- The number of columns to use to calculate the preferred width. If columns is set to zero, the preferred width will be whatever
naturally results from the component implementation.fm
- The field model for formatting and validatting.Method Detail |
---|
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- The ActionEvent.public void addCellEditorListener(CellEditorListener l)
addCellEditorListener
in interface CellEditor
l
- The CellEditorListener to be added.public void cancelCellEditing()
cancelCellEditing
in interface CellEditor
CellEditor.cancelCellEditing()
public static String Copyright()
protected void fireEditingCanceled()
protected void fireEditingStopped()
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
focusGained
in class JFormattedTextField
e
- The FocusEventpublic void focusLost(FocusEvent e)
focusLost
in interface FocusListener
focusLost
in class JFormattedTextField
e
- The FocusEventpublic Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
CellEditor.getCellEditorValue()
public int getClickCountToStart()
public EventListenerList getListenerList()
public Border getNoFocusBorder()
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
TableCellEditor.getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)
public boolean isCellEditable(EventObject anEvent)
isCellEditable
in interface CellEditor
anEvent
- the event used to consider whether to begin editing or not.CellEditor.isCellEditable(java.util.EventObject)
public void removeCellEditorListener(CellEditorListener l)
removeCellEditorListener
in interface CellEditor
l
- The CellEditorListener to be removed.CellEditor.removeCellEditorListener(javax.swing.event.CellEditorListener)
public void setClickCountToStart(int count)
count
- an int specifying the number of clicks needed to start editinggetClickCountToStart()
public void setNoFocusBorder(Border aBorder)
aBorder
- The border to be set.public boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell
in interface CellEditor
anEvent
- EventObjectCellEditor.shouldSelectCell(java.util.EventObject)
protected boolean startCellEditing(EventObject anEvent)
anEvent
- The event the editor should use to start editing.public boolean stopCellEditing()
stopCellEditing
in interface CellEditor
CellEditor.stopCellEditing()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |