Class VComboBox

    • Constructor Detail

      • VComboBox

        public VComboBox()
        Constructor
      • VComboBox

        public VComboBox​(Object[] items)
    • Method Detail

      • setValue

        public void setValue​(Object key)
        Common Setup private void common_init() { LookAndFeel.installColorsAndFont(this, "TextField.background", "TextField.foreground", "TextField.font"); setForeground(AdempierePLAF.getTextColor_Normal()); setBackground(AdempierePLAF.getFieldBackground_Normal()); setPreferredSize(s_text.getPreferredSize()); // this.setKeySelectionManager(new ComboSelectionManager()); } // common_init /** Reference Field * private static JTextField s_text = new JTextField(VTextField.DISPLAY_SIZE); /** Set Selected Item to key. Find key value in list
        Specified by:
        setValue in interface CEditor
        Overrides:
        setValue in class CComboBox<Object>
        Parameters:
        key -
      • setValue

        public void setValue​(int key)
        Set Selected item to key if exists
        Parameters:
        key -
      • isMatchingFilter

        protected boolean isMatchingFilter​(Object element)
        Description copied from class: CComboBox
        Called only when auto-reducing. By default, does a case insensitive string search for a match in the string representation of the given element.
        Overrides:
        isMatchingFilter in class CComboBox<Object>
        Parameters:
        element - an element in the combo box model
        Returns:
        true if the choice is to be displayed in the popup menu