Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Show, and hide a label after period of time

    Hello,

    Using SmartClient Version: SC_SNAPSHOT-2011-11-10/PowerEdition Deployment (built 2011-11-10)

    I want to implement a notification widget (ie. like Growl on mac), that pops up with a AnimationEffect.FADE, stands there for 4 seconds, and then AnimationEffect.FADE's again.

    I now have this, but now it starts to hide immediately after rendering, i'd prefer a pause of X seconds. Is this possible?

    My current code:
    Code:
    public void showAndHide(){
    	animateShow(AnimationEffect.FADE, new AnimationCallback() {
    		public void execute(boolean earlyFinish) {
    			//I want a pause here of x seconds, possible?
    			animateHide(AnimationEffect.FADE, null, 400);		
    		}
    	}, 400);
    }
    Very curious about this!
Working...
X