Class JComboBoxShape

    • Constructor Detail

      • JComboBoxShape

        public JComboBoxShape()
    • Method Detail

      • isEditable

        public boolean isEditable()
        Returns whether combo box is editable.
      • setEditable

        public void setEditable​(boolean aValue)
        Sets whether combo box is editable.
      • getMaximumRowCount

        public int getMaximumRowCount()
        Returns the maximum row count.
      • setMaximumRowCount

        public void setMaximumRowCount​(int aValue)
        Sets the maximum row count.
      • 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.
      • addItem

        public void addItem​(java.lang.String anItem)
        Adds an item.
      • addItem

        public void addItem​(java.lang.String anItem,
                            int anIndex)
        Adds an item.
      • 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.
      • getSelectedIndex

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

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

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