|
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.JComboBox com.ibm.etools.iseries.ui.JFormattedComboBox com.ibm.etools.iseries.ui.JFormattedComboBoxCellEditor
public class JFormattedComboBoxCellEditor
This class is a wrapper class of com.ibm.etools.iseries.ui.JFormattedComboBox that implements the TableCellEditor interface. It can be used as a table cell editor for a JFormattedTableColumn, particularly for AS/400 data.
JFormattedComboBox
,
TableCellEditor
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComboBox |
---|
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
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 Border |
noFocusBorder
|
Fields inherited from class javax.swing.JComboBox |
---|
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JFormattedComboBoxCellEditor()
Creates a new JFormattedComboxCellEditor. |
|
JFormattedComboBoxCellEditor(ComboBoxModel aModel)
Creates a new JFormattedComboxCellEditor from an existing ComboBoxModel. |
|
JFormattedComboBoxCellEditor(ComboBoxModel aModel,
FieldModel fm)
Creates a new JFormattedComboxCellEditor with the specified ComBoxModel and field model. |
|
JFormattedComboBoxCellEditor(FieldModel fm)
Creates a new JFormattedComboxCellEditor with the specified field model. |
|
JFormattedComboBoxCellEditor(Object[] items)
Creates a new JFormattedComboxCellEditor with specified items. |
|
JFormattedComboBoxCellEditor(Object[] items,
FieldModel fm)
Creates a new JFormattedComboxCellEditor with specified items and field model. |
|
JFormattedComboBoxCellEditor(Vector items)
Creates a new JFormattedComboxCellEditor with specified items. |
|
JFormattedComboBoxCellEditor(Vector items,
FieldModel fm)
Creates a new JFormattedComboxCellEditor with specified items and field model. |
Method Summary | |
---|---|
void |
addCellEditorListener(CellEditorListener l)
Add a CellEditorListener to listener list. |
void |
cancelCellEditing()
Cancel editing. |
static String |
Copyright()
Copyright notice. |
protected void |
fireEditingCanceled()
Fires editing canceled event. |
protected void |
fireEditingStopped()
Fires editing stopped event. |
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 editing can be started. |
void |
itemStateChanged(ItemEvent e)
Invoked when an item has been selected or deselected. |
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 without focus of the cells. |
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.JFormattedComboBox |
---|
addItem, convertInternalToUnformatted, convertUnformattedToInternal, getFieldModel, getFont, getFormattedComboBoxEditor, getSelectedItemFormattedValue, getSelectedItemInternalValue, getValues, setFieldModel, setFont, setFormattedComboBoxEditor, setSelectedItem, setValues |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.event.ActionListener |
---|
actionPerformed |
Field Detail |
---|
public static final String Copyright
protected transient ChangeEvent changeEvent
protected Border noFocusBorder
Constructor Detail |
---|
public JFormattedComboBoxCellEditor()
public JFormattedComboBoxCellEditor(Object[] items)
items
- The items to be displayed.public JFormattedComboBoxCellEditor(Object[] items, FieldModel fm)
items
- The items to be displayed.fm
- The field model for formatting and validating.public JFormattedComboBoxCellEditor(FieldModel fm)
fm
- The field model for formatting and validating.public JFormattedComboBoxCellEditor(Vector items)
items
- The items to be displayed.public JFormattedComboBoxCellEditor(Vector items, FieldModel fm)
items
- The items to be displayed.fm
- The field model for formatting and validating.public JFormattedComboBoxCellEditor(ComboBoxModel aModel)
aModel
- The ComboBoxModel.public JFormattedComboBoxCellEditor(ComboBoxModel aModel, FieldModel fm)
aModel
- The ComboBoxModel.fm
- The field model for formatting and validating.Method Detail |
---|
public void addCellEditorListener(CellEditorListener l)
addCellEditorListener
in interface CellEditor
l
- The CellEditorListener to be added.CellEditor.addCellEditorListener(javax.swing.event.CellEditorListener)
public void cancelCellEditing()
cancelCellEditing
in interface CellEditor
CellEditor.cancelCellEditing()
public static String Copyright()
protected void fireEditingCanceled()
protected void fireEditingStopped()
public 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 itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
e
- The ItemEvent.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
- The number of clicks.getClickCountToStart()
public void setNoFocusBorder(Border aBorder)
aBorder
- The bords to be set.public boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell
in interface CellEditor
anEvent
- The EventObject.CellEditor.shouldSelectCell(java.util.EventObject)
protected boolean startCellEditing(EventObject anEvent)
anEvent
- The EventObject.isCellEditable(java.util.EventObject)
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 |