Class PickListModel.LightPickModel

    • Method Detail

      • getManager

        @Nonnull
        public Manager<LightgetManager()
        Get the Table Model Bean Manager. In many cases, especially around Model startup, this will be the Proxy Manager, which is then changed to the hardware specific manager.
        Specified by:
        getManager in class PickListModel<Light>
        Returns:
        current Manager in use by the Model.
      • addBean

        public Light addBean​(@Nonnull
                             java.lang.String name)
                      throws java.lang.IllegalArgumentException
        Return bean with name given in parameter. Create if needed and possible.
        Specified by:
        addBean in class PickListModel<Light>
        Parameters:
        name - the System name for the Bean.
        Returns:
        the Bean or null if not made.
        Throws:
        java.lang.IllegalArgumentException - with reason why Bean cannot be created.
      • addBean

        public Light addBean​(@Nonnull
                             java.lang.String sysName,
                             java.lang.String userName)
                      throws java.lang.IllegalArgumentException
        Specified by:
        addBean in class PickListModel<Light>
        Throws:
        java.lang.IllegalArgumentException
      • canAddBean

        public boolean canAddBean()
        Check if beans can be added by this model.
        Specified by:
        canAddBean in class PickListModel<Light>
        Returns:
        true if model can create beans; false otherwise