Class JListShape

    • Constructor Detail

      • JListShape

        public JListShape()
    • Method Detail

      • getSelectionMode

        public int getSelectionMode()
        Returns the selection mode.
      • setSelectionMode

        public void setSelectionMode​(int aMode)
        Sets the selection mode.
      • getSelectedIndex

        public int getSelectedIndex()
        Returns the selected index.
      • setSelectedIndex

        public void setSelectedIndex​(int anIndex)
        Sets the selected index.
      • getItems

        public java.util.List<java.lang.String> getItems()
        Returns list items.
      • setItems

        public void setItems​(java.util.List<java.lang.String> theItems)
        Sets list items.
      • getItemsString

        public java.lang.String getItemsString()
        Returns the list items as a single string with items separated by newlines.
      • setItemsString

        public void setItemsString​(java.lang.String aString)
        Sets the list items as a single string with items separated by newlines.
      • getComponentClass

        public java.lang.Class<? extends javax.swing.JComponent> getComponentClass()
        Creates the component for this component shape.
        Overrides:
        getComponentClass in class JComponentShape
      • fromXMLChildren

        protected void fromXMLChildren​(RXArchiver anArchiver,
                                       RXElement anElement)
        Override JComponentShape version to suppress reading of JMenuItems as JComponentShapes (JListHpr will load them).
        Overrides:
        fromXMLChildren in class RMParentShape