Class JComboBoxHpr


  • public class JComboBoxHpr
    extends RJHelper
    This class provides Ribs functionality for JComboBox.

    Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill .

    • Constructor Detail

      • JComboBoxHpr

        public JComboBoxHpr()
    • Method Detail

      • newInstance

        public java.lang.Object newInstance​(RXElement anElement)
        Creates a new instance of class for given element.
        Overrides:
        newInstance in class RJHelper
      • initInstance

        public void initInstance​(javax.swing.JComponent aComponent)
        Initializes the given instance (actually called the first time an owner is set).
        Overrides:
        initInstance in class RJHelper
      • setSendActionOnFocusLost

        public void setSendActionOnFocusLost​(javax.swing.JComponent aComponent,
                                             boolean aValue)
        Overrides the version in RJHelper to try add a focus listener to the combobox's editor
        Overrides:
        setSendActionOnFocusLost in class RJHelper
      • indexOfItem

        public int indexOfItem​(javax.swing.JComboBox aBox,
                               java.lang.Object anObj)
        Convenience method. Finds the value among the combobox's items
      • getValue

        public java.lang.Object getValue​(javax.swing.JComponent aComponent)
        Returns the combo box's selected item.
        Overrides:
        getValue in class RJHelper
      • getStringValue

        public java.lang.String getStringValue​(javax.swing.JComponent aComponent)
        Returns the combo box's selected item as a string.
        Overrides:
        getStringValue in class RJHelper
      • getIntValue

        public int getIntValue​(javax.swing.JComponent aComponent)
        Returns the combo box's selected index.
        Overrides:
        getIntValue in class RJHelper
      • getFloatValue

        public float getFloatValue​(javax.swing.JComponent aComponent)
        Returns the combo box's selected item as a float.
        Overrides:
        getFloatValue in class RJHelper
      • setValue

        public void setValue​(javax.swing.JComponent aComponent,
                             java.lang.Object aValue)
        Sets the combo box's selected item.
        Overrides:
        setValue in class RJHelper
      • setValue

        public void setValue​(javax.swing.JComponent aComponent,
                             java.lang.String aValue)
        Sets the combo box's selected item to the given string.
        Overrides:
        setValue in class RJHelper
      • setValue

        public void setValue​(javax.swing.JComponent aComponent,
                             int aValue)
        Sets the combo box's selected index.
        Overrides:
        setValue in class RJHelper
      • fromXML

        public void fromXML​(javax.swing.JComponent aComponent,
                            RXArchiver anArchiver,
                            RXElement anElement)
        XML unarchival.
        Overrides:
        fromXML in class RJHelper