Class JListHpr<T extends javax.swing.JList>


  • public class JListHpr<T extends javax.swing.JList>
    extends JComponentHpr<T>
    An RibsHelper implementation for JList.
    • Constructor Detail

      • JListHpr

        public JListHpr()
    • Method Detail

      • getChildCount

        public int getChildCount​(T anObj)
        Override to suppress children.
        Overrides:
        getChildCount in class JComponentHpr<T extends javax.swing.JList>
      • initUI

        public void initUI​(T aList,
                           UIOwner anOwner)
        Initializes newly created object.
        Overrides:
        initUI in class JComponentHpr<T extends javax.swing.JList>
      • scrollCellToVisible

        public static void scrollCellToVisible​(javax.swing.JList aList,
                                               int aRow)
        Scrolls a JList to make given row visible (-1 for current selection).
      • getPropertyNamesImpl

        protected java.util.List<java.lang.String> getPropertyNamesImpl​(T anObj)
        Returns the property names for given object.
        Overrides:
        getPropertyNamesImpl in class JComponentHpr<T extends javax.swing.JList>
      • getPropertyNameMapped

        public java.lang.String getPropertyNameMapped​(T anObj,
                                                      java.lang.String aName)
        Returns a mapped property name.
        Overrides:
        getPropertyNameMapped in class UIHelper<T extends javax.swing.JList>
      • getItems

        public java.util.List getItems​(T aList)
        Returns the items for an object.
        Overrides:
        getItems in class UIHelper<T extends javax.swing.JList>
      • setItems

        public void setItems​(T aList,
                             java.util.List theItems)
        Sets the items for an object.
        Overrides:
        setItems in class UIHelper<T extends javax.swing.JList>
      • getItemDisplayKey

        public java.lang.String getItemDisplayKey​(T aList)
        Returns the render key chain.
        Overrides:
        getItemDisplayKey in class UIHelper<T extends javax.swing.JList>
      • setItemDisplayKey

        public void setItemDisplayKey​(T aList,
                                      java.lang.String aKey)
        Description copied from class: UIHelper
        Sets the display key for UI node item.
        Overrides:
        setItemDisplayKey in class UIHelper<T extends javax.swing.JList>
      • getSelectedItem

        public java.lang.Object getSelectedItem​(T aList)
        Returns the selected object property of given object.
        Overrides:
        getSelectedItem in class UIHelper<T extends javax.swing.JList>
      • setSelectedItem

        public void setSelectedItem​(T aList,
                                    java.lang.Object aValue)
        Sets the selected object property of given object to given value.
        Overrides:
        setSelectedItem in class UIHelper<T extends javax.swing.JList>