com.hp.lft.sdk.web

Interface ListBox

    • Method Detail

      • getDefaultValue

        java.lang.String getDefaultValue()
                                  throws GeneralLeanFtException
        Returns the initial text value, which is set when the object is reset.
        Returns:
        the initial text value, which is set when the object is reset.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • isMultiple

        boolean isMultiple()
                    throws GeneralLeanFtException
        Indicates whether the user can select multiple items.
        Returns:
        true, if the user can select multiple items.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getVisibleItemsCount

        int getVisibleItemsCount()
                          throws GeneralLeanFtException
        Returns the number of items that are displayed in the list box.
        Returns:
        the number of items that are displayed in the list box.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • select

        void select(java.lang.String... items)
             throws GeneralLeanFtException
        Selects items in the list based on the item names.
        Parameters:
        items - a collection of items to select.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • select

        void select(int... itemIndices)
             throws GeneralLeanFtException
        Selects items in the list based on the item indices.
        Parameters:
        itemIndices - the item indices to select.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • deselect

        void deselect(java.lang.String... items)
               throws GeneralLeanFtException
        Deselects items in the list based on the item names.
        Parameters:
        items - a collection items to deselect.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • deselect

        void deselect(int... itemIndices)
               throws GeneralLeanFtException
        Deselects items in the list based on the item indices.
        Parameters:
        itemIndices - a collection of indices to deselect.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • extendSelect

        void extendSelect(java.lang.String... items)
        	throws GeneralLeanFtException
        Selects additional items from the multi-selection list, by name.
        Parameters:
        items - an array of item names to add to the selection.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getItem

        ListItem getItem(java.lang.String text)
        Returns an item with the given text.
        Parameters:
        text - the text of this item.
        Returns:
        an item with the given text.
      • getType

        java.lang.String getType()
                          throws GeneralLeanFtException
        Returns the attribute "type" of the HTML element.
        Returns:
        the attribute "type" of the HTML element.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.