1234567891011121314151617181920212223242526 |
- package com.poqop.document.models;
- import com.poqop.document.events.DecodingProgressListener;
- import com.poqop.document.events.EventDispatcher;
- public class DecodingProgressModel extends EventDispatcher
- {
- private int currentlyDecoding;
- public void increase()
- {
- currentlyDecoding++;
- dispatchChanged();
- }
- private void dispatchChanged()
- {
- dispatch(new DecodingProgressListener.DecodingProgressEvent(currentlyDecoding));
- }
- public void decrease()
- {
- currentlyDecoding--;
- dispatchChanged();
- }
- }
|