Class JComboBoxShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

public class JComboBoxShape extends JComponentShape
An RMShape subclass for JComboBox.
  • Constructor Details

    • JComboBoxShape

      public JComboBoxShape()
  • Method Details

    • 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 List<String> getItems()
      Returns list items.
    • setItems

      public void setItems(List<String> theItems)
      Sets list items.
    • addItem

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

      public void addItem(String anItem, int anIndex)
      Adds an item.
    • getItemsString

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

      public void setItemsString(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 Class<? extends JComponent> getComponentClass()
      Returns the component class for this component shape.
      Overrides:
      getComponentClass in class JComponentShape
    • configureComponent

      protected void configureComponent(JBuilder aBldr, JComponent aComp)
      Configures the component.
      Overrides:
      configureComponent in class JComponentShape
    • toXMLShape

      public RXElement toXMLShape(RXArchiver anArchiver)
      XML archival.
      Overrides:
      toXMLShape in class JComponentShape
    • fromXMLShape

      public void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Overrides:
      fromXMLShape in class JComponentShape