Package de.lessvoid.nifty

Examples of de.lessvoid.nifty.EndNotify


      }
    });
  }

  private void moveDraggableOnTop() {
    draggable.markForMove(originalParent, new EndNotify() {
      @Override
      public void perform() {
        draggable.reactivate();
      }
    });
View Full Code Here


    moveDraggableBackToOriginalParent();
    notifyObserversDragCanceled();
  }

  private EndNotify closePopup() {
    return new EndNotify() {
      @Override
      public void perform() {
        nifty.closePopup(popup.getId(), new EndNotify() {
          @Override
          public void perform() {
            draggable.reactivate();
            popup.markForRemoval(new EndNotify() {
              @Override
              public void perform() {
                popup = null;
              }
            });
View Full Code Here

  public boolean inputEvent(final NiftyInputEvent inputEvent) {
    return false;
  }

  private EndNotify reactivate(final Element element) {
    return new EndNotify() {
      @Override
      public void perform() {
        element.reactivate();
      }
    };
View Full Code Here

        imageElement.hide();
        currentImageIndex--;
        imageIndexChanged();
        updateVisuals();
        imageElement.stopEffect(EffectEventId.onCustom);
        imageElement.startEffect(EffectEventId.onCustom, new EndNotify() {
          @Override
          public void perform() {
            block = false;
          }
        }, "back");
        imageElement.show();

        imageElement2.stopEffect(EffectEventId.onCustom);
        imageElement2.startEffect(EffectEventId.onCustom, new EndNotify() {
          @Override
          public void perform() {
            imageElement2.hide();
          }
        }, "back");
View Full Code Here

        imageElement.hide();
        currentImageIndex++;
        imageIndexChanged();
        updateVisuals();
        imageElement.stopEffect(EffectEventId.onCustom);
        imageElement.startEffect(EffectEventId.onCustom, new EndNotify() {
          @Override
          public void perform() {
            block = false;
          }
        }, "forward");
        imageElement.show();

        imageElement2.stopEffect(EffectEventId.onCustom);
        imageElement2.startEffect(EffectEventId.onCustom, new EndNotify() {
          @Override
          public void perform() {
            imageElement2.hide();
          }
        }, "forward");
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.EndNotify

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.