@Override @DispatchThread( invocationType = InvocationType.INVOKE_LATER ) public void showProgress( final int progress ) { if( component != null ) { component.setValue( progress ); component.setIndeterminate( false ); component.repaint(); } }
@Override public InvocationType getInvocationType( final Annotation p ) { return DispatchThread.class.cast( p ).invocationType(); }
@Override // Bug 17 - INVOKE_AND_WAIT not supported yet //@DispatchThread( invocationType = InvocationType.INVOKE_AND_WAIT ) @DispatchThread( invocationType = InvocationType.INVOKE_IMMEDIATE ) public void setMaximum( final long maximum ) { component.setMaximum( (int) maximum ); }
@Override @DispatchThread( invocationType = InvocationType.INVOKE_LATER ) public void showProgress( final long inputSize, final long outputSize ) { if( component != null ) { component.setValue( (int) inputSize ); component.setIndeterminate( false ); component.repaint(); } if( secondaryComponent != null ) { secondaryComponent.setValue( (int) outputSize ); secondaryComponent.setIndeterminate( false ); secondaryComponent.repaint(); } }
@Override // Bug 17 - INVOKE_AND_WAIT not supported yet //@DispatchThread( invocationType = InvocationType.INVOKE_AND_WAIT ) @DispatchThread( invocationType = InvocationType.INVOKE_IMMEDIATE ) public void setMaximum( final long inputMaximum, final long outputMaximum ) { if( component != null ) { component.setMaximum( (int) inputMaximum ); } if( secondaryComponent != null ) { secondaryComponent.setMaximum( (int) outputMaximum ); } } }
@DispatchThread( invocationType = InvocationType.INVOKE_LATER ) private void updateView()