com.ontimize.gui.field

Class SelectionListDataField

    • Constructor Detail

      • SelectionListDataField

        public SelectionListDataField(Hashtable parameters)
        The class constructor. Calls to super(), creates the list and inits parameters.

        Parameters:
        parameters - the Hashtable with parameters
    • Method Detail

      • getValue

        public Object getValue()
        Description copied from interface: DataComponent
        Gets the value of a component.

        Returns:
        the object with value.
      • setValue

        public void setValue(Object v)
        Description copied from interface: DataComponent
        Sets the value for component.

        Parameters:
        v - the object with value to set
      • deleteData

        public void deleteData()
        Description copied from interface: DataComponent
        The method to delete data for component.
      • setItems

        public void setItems(Vector items)
        Sets the data list. At starting, none is selected.

        Parameters:
        items - the Vector with items
      • setItems

        public void setItems(Hashtable items)
        Sets items from a Hashtable.

        Parameters:
        items - the Hashtable with items
      • init

        public void init(Hashtable parameters)
        Initializes parameters.

        Specified by:
        init in interface FormComponent
        Overrides:
        init in class DataField
        Parameters:
        parameters - the Hashtable with parameters.

        attribute values default required meaning
        rows 8 no The number of rows showed.
        selection simple/multiple multiple no The type of selection.
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: DataComponent
        Checks the data existence in component.

        Returns:
        true when component is empty
      • getSQLDataType

        public int getSQLDataType()
        Description copied from interface: DataComponent
        Returns the sql data type according to java.sql.Types

        Returns:
        the Integer type

Copyright © 2016 Imatia Innovation S.L.. All rights reserved.