equal
deleted
inserted
replaced
818 Object doSubmit = appContext.get(DO_SUBMIT_KEY); |
818 Object doSubmit = appContext.get(DO_SUBMIT_KEY); |
819 if (doSubmit == null) { |
819 if (doSubmit == null) { |
820 doSubmit = new DoSubmitAccumulativeRunnable(); |
820 doSubmit = new DoSubmitAccumulativeRunnable(); |
821 appContext.put(DO_SUBMIT_KEY, doSubmit); |
821 appContext.put(DO_SUBMIT_KEY, doSubmit); |
822 } |
822 } |
823 return (AccumulativeRunnable<Runnable>) doSubmit; |
823 @SuppressWarnings("unchecked") |
|
824 AccumulativeRunnable<Runnable> tmp = (AccumulativeRunnable<Runnable>) doSubmit; |
|
825 return tmp; |
824 } |
826 } |
825 } |
827 } |
826 private static class DoSubmitAccumulativeRunnable |
828 private static class DoSubmitAccumulativeRunnable |
827 extends AccumulativeRunnable<Runnable> implements ActionListener { |
829 extends AccumulativeRunnable<Runnable> implements ActionListener { |
828 private final static int DELAY = 1000 / 30; |
830 private final static int DELAY = 1000 / 30; |