All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.viaoa.uicontroller.OAUIMultiSelectController Maven / Gradle / Ivy

There is a newer version: 3.7.10
Show newest version
package com.viaoa.uicontroller;

import com.viaoa.hub.Hub;
import com.viaoa.object.OAObjectCallback;
import com.viaoa.object.OAObjectCallbackDelegate;

/**
 * HtmlSelect that allows picking multivalues/objects from a Hub. 
 */
public class OAUIMultiSelectController extends OAUIBaseController {

    public OAUIMultiSelectController(Hub hubSelect) {
        super(hubSelect);
    }

    @Override
    public boolean isEnabled() {
        if (!super.isEnabled()) return false;
        OAObjectCallback eq = OAObjectCallbackDelegate.getAllowEnabledObjectCallback(getHub());
        return eq.getAllowed();
    }
    
    @Override
    public boolean isVisible() {
        if (!super.isVisible()) return false;
        OAObjectCallback eq = OAObjectCallbackDelegate.getAllowVisibleObjectCallback(getHub());
        return eq.getAllowed();
    }

    
    /**
     * This can be used to get the confirm message before the actual new value is known.
* This is used to send a confirm message (javascript) to browser. */ public OAObjectCallback getPreConfirmMessage() { OAObjectCallback cb = null; //qqqqqq todo: need to confirm any add/remove return cb; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy