Class PBillGroupCombo

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

public class PBillGroupCombo extends JComboBox
PBillUnitCombo is the new UI widget, which is a subclass of JComboBox. This component will have internal logic to populate itself with all the BillUnit names along with a tag for the current account.
Author:
Smruti
See Also:
  • Field Details

  • Method Details

    • setDefaultSelectedIndex

      public void setDefaultSelectedIndex()
      Method which initializes default first item has selected item
    • initialize

      public static void initialize(Vector vt, Poid p)
      Method which initializes the data to Combobox model
      Parameters:
      vt - ,Vector type, which holds datas for the Model
      p - , Poid type, which is the BillUnit Item
    • isPrevShowing

      public boolean isPrevShowing()
    • setVisible

      public void setVisible(boolean visible)
      Overrides:
      setVisible in class JComponent
    • show

      public void show(boolean show)
      Overrides:
      show in class Component
    • getSelectedBillInfo

      public Object getSelectedBillInfo()
    • remindSelection

      public boolean remindSelection()
    • addSelectionChangeListener

      public void addSelectionChangeListener(BillInfoChangeListener listener)
      Method which registers listeners for BillUnit Selection Events
    • removeSelectionChangeListener

      public void removeSelectionChangeListener(BillInfoChangeListener listener)
      Method which removes the registers listener for BillUnit Selection Events
    • setDisplayType

      public void setDisplayType(int displayType)
      Method which sets the display mode
      Parameters:
      displayType - , int type whichs holds display mode
    • setName

      public void setName(String name)
      Method which sets the Context Name
      Overrides:
      setName in class Component
      Parameters:
      name - , String type whichs holds the Context Name
    • getName

      public String getName()
      Method which gets the Context Name
      Overrides:
      getName in class Component
      Returns:
      name, String type whichs holds the Context Name
    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class JComponent
    • removeNotify

      public void removeNotify()
      Overrides:
      removeNotify in class JComponent
    • getBillGroupCombo

      public static PBillGroupCombo getBillGroupCombo(int displayType, boolean inSync, String name)
      Method which gets the BillUnit instances
      Parameters:
      displayType - , integer type which holds display mode
      inSync - ,boolean type which holds the synchronization flag
      name - , String type which holds the Page Context Name
      Returns:
      name, String type whichs holds the Context Name
    • isAllSelected

      public boolean isAllSelected()
    • clearUnusedReferences

      public static void clearUnusedReferences(PBillGroupCombo billGroupComp)
      This method will remove the references BillGroupCombo from vector.
      Parameters:
      billGroupComp - BillGroupCombo to be removed.