psdi.webclient.controls

Class Listbox

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class Listbox
    extends DatasrcInstance
    Represents the component instance for Listbox control.
    • Constructor Detail

      • Listbox

        public Listbox()
    • Method Detail

      • reloadlist

        public int reloadlist()
        Can be called explicitly from another control so stamp the listbox to be refreshed. "alwaysrefresh" property go false with this feature.
        Returns:
        int WebClientBean.EVENT_HANDLED
      • render

        public int render()
                   throws java.lang.NoSuchMethodException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
        Overridden to mark the control as changed when the control is set for always refresh. This needs to be done because listbox can be refreshed from a button call or everytime. So the "alwaysrefresh" property is leveraged here as an external/exposed proeprty.
        Overrides:
        render in class DatasrcInstance
        Returns:
        WebClientBean.EVENT_HANDLED
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • storeAttributes

        public void storeAttributes()
        Stores some properties as instance variables. Create a collection of all main attributes required in order to render the control
      • getData

        public MboValueData[][] getData()
        Fetches data to be displayed in the list.
      • setvalue

        public int setvalue()
                     throws MXException
        Captures the setvalue event of the listitem and sets the value on the databean.
        Returns:
        WebClientBean.EVENT_HANDLED;
        Throws:
        MXException