Class JListHpr


  • public class JListHpr
    extends RJHelper
    An RJHelper implementation for JList.

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

    • Constructor Detail

      • JListHpr

        public JListHpr()
    • 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
      • getSelectedRange

        public JListHpr.Range getSelectedRange​(javax.swing.JList aList)
        Returns the selected range as a Range object (with start, end, length).
      • getValue

        public java.lang.Object getValue​(javax.swing.JComponent aComponent)
        Returns the list's selected value.
        Overrides:
        getValue in class RJHelper
      • setValue

        public void setValue​(javax.swing.JComponent aComponent,
                             java.lang.Object aValue)
        Sets the list selected index to index of given value.
        Overrides:
        setValue in class RJHelper
      • getStringValue

        public java.lang.String getStringValue​(javax.swing.JComponent aComponent)
        Returns the list's selected value as a string.
        Overrides:
        getStringValue in class RJHelper
      • setValue

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

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

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

        public void setValue​(javax.swing.JComponent aComponent,
                             int aValue)
        Sets the list'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
      • performBindKeyGet

        public void performBindKeyGet​(javax.swing.JComponent aComponent)
        Description copied from class: RJHelper
        Performs bind key get.
        Overrides:
        performBindKeyGet in class RJHelper