Class PPayInfoComboEditor

All Implemented Interfaces:
ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, CellEditor, ListDataListener, TableCellEditor

public class PPayInfoComboEditor extends JComboBox implements TableCellEditor
This is combox editor commonly used for payment page, Move into Hierarchy invalid input: '&' View Bill Unit Hierarchy This editor returns JComboBox or JLabel depending on pre set conditions
Author:
Savitha T.M
See Also:
  • Field Details

  • Constructor Details

    • PPayInfoComboEditor

      public PPayInfoComboEditor()
    • PPayInfoComboEditor

      public PPayInfoComboEditor(Vector items, int pageType)
      takes items for the combox as parameters
      Parameters:
      items - Vector
      pageType - int will deside for which page this editor is getting created
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      updates the model with the changed data
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JComboBox
      Parameters:
      e - ActionEvent
    • getTableCellEditorComponent

      public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
      Specified by:
      getTableCellEditorComponent in interface TableCellEditor
    • getCellDirty

      public boolean getCellDirty()
    • setCellDirty

      public void setCellDirty(boolean flag)
    • addCellEditorListener

      public void addCellEditorListener(CellEditorListener listener)
      put your documentation comment here
      Specified by:
      addCellEditorListener in interface CellEditor
      Parameters:
      listener -
    • removeCellEditorListener

      public void removeCellEditorListener(CellEditorListener listener)
      put your documentation comment here
      Specified by:
      removeCellEditorListener in interface CellEditor
      Parameters:
      listener -
    • fireEditingStopped

      protected void fireEditingStopped()
      put your documentation comment here
    • fireEditingCanceled

      protected void fireEditingCanceled()
      put your documentation comment here
    • cancelCellEditing

      public void cancelCellEditing()
      put your documentation comment here
      Specified by:
      cancelCellEditing in interface CellEditor
    • stopCellEditing

      public boolean stopCellEditing()
      put your documentation comment here
      Specified by:
      stopCellEditing in interface CellEditor
      Returns:
    • isCellEditable

      public boolean isCellEditable(EventObject event)
      put your documentation comment here
      Specified by:
      isCellEditable in interface CellEditor
      Parameters:
      event -
      Returns:
    • shouldSelectCell

      public boolean shouldSelectCell(EventObject event)
      put your documentation comment here
      Specified by:
      shouldSelectCell in interface CellEditor
      Parameters:
      event -
      Returns:
    • getCellEditorValue

      public Object getCellEditorValue()
      put your documentation comment here
      Specified by:
      getCellEditorValue in interface CellEditor
      Returns: