Package DisplayProject.binding.value

Examples of DisplayProject.binding.value.BufferedValueModel


            ValueModel valueModel,
            Component component) {
        if (valueModel == null)
            throw new NullPointerException("The value model must not be null.");

        ValueModel model = new BufferedValueModel(valueModel, FOCUS_LOST_TRIGGER);
        component.addFocusListener(FOCUS_LOST_HANDLER);
        return model;
    }
View Full Code Here


     * @see ValueModel
     * @see Trigger
     * @see #getBufferedModel(String)
     */
    private BufferedValueModel buffer(ValueModel valueModel) {
        BufferedValueModel bufferedModel = new BufferedValueModel(
                valueModel, getTriggerChannel());
        bufferedModel.addPropertyChangeListener(BufferedValueModel.PROPERTYNAME_BUFFERING, bufferingUpdateHandler);
        return bufferedModel;
    }
View Full Code Here

        if (buffering == latestBufferingStateChange)
            return;
        boolean nowBuffering = false;
        for (Iterator<WrappedBuffer> it = wrappedBuffers.values().iterator(); it.hasNext();) {
            WrappedBuffer wrappedBuffer = it.next();
            BufferedValueModel model = wrappedBuffer.buffer;
            nowBuffering = nowBuffering || model.isBuffering();
            if (!buffering && nowBuffering) {
                setBuffering(true);
                return;
            }
        }
View Full Code Here

     * @see ValueModel
     * @see Trigger
     * @see #getBufferedModel(String)
     */
    private BufferedValueModel buffer(ValueModel valueModel) {
        BufferedValueModel bufferedModel = new BufferedValueModel(
                valueModel, getTriggerChannel());
        bufferedModel.addPropertyChangeListener(BufferedValueModel.PROPERTYNAME_BUFFERING, bufferingUpdateHandler);
        return bufferedModel;
    }
View Full Code Here

        if (buffering == latestBufferingStateChange)
            return;
        boolean nowBuffering = false;
        for (Iterator<WrappedBuffer> it = wrappedBuffers.values().iterator(); it.hasNext();) {
            WrappedBuffer wrappedBuffer = it.next();
            BufferedValueModel model = wrappedBuffer.buffer;
            nowBuffering = nowBuffering || model.isBuffering();
            if (!buffering && nowBuffering) {
                setBuffering(true);
                return;
            }
        }
View Full Code Here

            ValueModel valueModel,
            Component component) {
        if (valueModel == null)
            throw new NullPointerException("The value model must not be null.");

        ValueModel model = new BufferedValueModel(valueModel, FOCUS_LOST_TRIGGER);
        component.addFocusListener(FOCUS_LOST_HANDLER);
        return model;
    }
View Full Code Here

TOP

Related Classes of DisplayProject.binding.value.BufferedValueModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.