Package org.pushingpixels.lafwidget.animation

Examples of org.pushingpixels.lafwidget.animation.FadeStateListener


  @Override
  protected void installListeners() {
    super.installListeners();
    super.installListeners();

    this.substanceFadeStateListener = new FadeStateListener(
        this.editorPane, null, null);
    this.substanceFadeStateListener.registerListeners(false);

    this.substancePropertyChangeListener = new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
View Full Code Here


    this.substanceRolloverListener = new RolloverTextControlListener(
        this.comboBox, this, this.transitionModel);
    this.substanceRolloverListener.registerListeners();

    this.substanceFadeStateListener = new FadeStateListener(this.comboBox,
        this.transitionModel, SubstanceCoreUtilities.getFadeCallback(
            this.comboBox, this.transitionModel, false, false,
            this.comboBox));
    this.substanceFadeStateListener.registerListeners();
  }
View Full Code Here

    // fix for defect 109 - storing reference to rollover listener
    this.substanceRolloverListener = new RolloverMenuItemListener(
        this.menuItem);
    this.menuItem.addMouseListener(this.substanceRolloverListener);

    this.substanceFadeStateListener = new FadeStateListener(this.menuItem,
        this.menuItem.getModel(), SubstanceCoreUtilities
            .getFadeCallback(this.menuItem, this.menuItem
                .getModel(), true, false, this.menuItem));
    this.substanceFadeStateListener.registerListeners();

    this.substancePropertyListener = new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
        if (AbstractButton.MODEL_CHANGED_PROPERTY.equals(evt
            .getPropertyName())) {
          if (substanceFadeStateListener != null)
            substanceFadeStateListener.unregisterListeners();
          substanceFadeStateListener = new FadeStateListener(
              menuItem, menuItem.getModel(),
              SubstanceCoreUtilities.getFadeCallback(menuItem,
                  menuItem.getModel(), true, false, menuItem));
          substanceFadeStateListener.registerListeners();
        }
View Full Code Here

    // transitionModel.setSelected(true);
    // }
    // };
    // this.passwordField.addFocusListener(this.substanceFocusListener);

    this.substanceFadeStateListener = new FadeStateListener(
        this.passwordField, this.transitionModel,
        SubstanceCoreUtilities.getFadeCallback(this.passwordField,
            this.transitionModel, false, false, this.passwordField));
    this.substanceFadeStateListener.registerListeners(false);
View Full Code Here

   */
  @Override
  protected void installListeners() {
    super.installListeners();

    this.substanceFadeStateListener = new FadeStateListener(this.textArea,
        null, null);
    this.substanceFadeStateListener.registerListeners(false);

    this.substancePropertyChangeListener = new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
View Full Code Here

    // transitionModel.setSelected(true);
    // }
    // };
    // this.textField.addFocusListener(this.substanceFocusListener);

    this.substanceFadeStateListener = new FadeStateListener(this.textField,
        this.transitionModel, SubstanceCoreUtilities.getFadeCallback(
            this.textField, this.transitionModel, null, false,
            new SubstanceCoreUtilities.ComponentForRepaint() {
              @Override
              public Component getComponentForRepaint() {
View Full Code Here

  @Override
  protected void installListeners() {
    super.installListeners();

    this.substanceFadeStateListener = new FadeStateListener(this.textPane,
        null, null);
    this.substanceFadeStateListener.registerListeners(false);

    this.substancePropertyChangeListener = new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
View Full Code Here

    // fix for defect 109 - storing reference to rollover listener
    this.substanceRolloverListener = new RolloverMenuItemListener(
        this.menuItem);
    this.menuItem.addMouseListener(this.substanceRolloverListener);

    this.substanceFadeStateListener = new FadeStateListener(this.menuItem,
        this.menuItem.getModel(), SubstanceCoreUtilities
            .getFadeCallback(this.menuItem, this.menuItem
                .getModel(), true, false, this.menuItem));
    this.substanceFadeStateListener.registerListeners();

    this.substancePropertyListener = new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
        if (AbstractButton.MODEL_CHANGED_PROPERTY.equals(evt
            .getPropertyName())) {
          if (substanceFadeStateListener != null)
            substanceFadeStateListener.unregisterListeners();
          substanceFadeStateListener = new FadeStateListener(
              menuItem, menuItem.getModel(),
              SubstanceCoreUtilities.getFadeCallback(menuItem,
                  menuItem.getModel(), true, false, menuItem));
          substanceFadeStateListener.registerListeners();
        }
View Full Code Here

    this.menuItem.addFocusListener(this.substanceFocusListener);

    final Set<FadeKind> toIgnore = new HashSet<FadeKind>();
    // fix for issue 371 - repaint the menu bar since the
    // menu is marked as flat
    this.substanceFadeStateListener = new FadeStateListener(this.menuItem,
        null, this.menuItem.getModel(), SubstanceCoreUtilities
            .getFadeCallback(this.menuItem, this.menuItem
                .getModel(), false, true, this.menuItem),
        toIgnore);
    this.substanceFadeStateListener.registerListeners();

    // this.menuItem.getModel().addChangeListener(new ChangeListener() {
    // public void stateChanged(ChangeEvent e) {
    // ButtonModel bm = menuItem.getModel();
    // System.out.println(menuItem.getText() + " e:" + bm.isEnabled()
    // + ":a:" + bm.isArmed() + ":r:" + bm.isRollover()
    // + ":p:" + bm.isPressed() + ":s:" + bm.isSelected());
    // }
    // });

    this.substancePropertyListener = new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
        if (AbstractButton.MODEL_CHANGED_PROPERTY.equals(evt
            .getPropertyName())) {
          if (substanceFadeStateListener != null)
            substanceFadeStateListener.unregisterListeners();
          substanceFadeStateListener = new FadeStateListener(
              menuItem,
              null,
              menuItem.getModel(),
              SubstanceCoreUtilities
                  .getFadeCallback(menuItem, menuItem
View Full Code Here

    // Improving performance on big menus.
    this.substanceMenuPropertyListener = new MenuPropertyListener(
        this.menuItem);
    this.substanceMenuPropertyListener.install();

    this.substanceFadeStateListener = new FadeStateListener(this.menuItem,
        this.menuItem.getModel(), SubstanceCoreUtilities
            .getFadeCallback(this.menuItem, this.menuItem
                .getModel(), true, false, this.menuItem));
    this.substanceFadeStateListener.registerListeners();

    this.substancePropertyListener = new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
        if (AbstractButton.MODEL_CHANGED_PROPERTY.equals(evt
            .getPropertyName())) {
          if (substanceFadeStateListener != null)
            substanceFadeStateListener.unregisterListeners();
          substanceFadeStateListener = new FadeStateListener(
              menuItem, menuItem.getModel(),
              SubstanceCoreUtilities.getFadeCallback(menuItem,
                  menuItem.getModel(), true, false, menuItem));
          substanceFadeStateListener.registerListeners();
        }
View Full Code Here

TOP

Related Classes of org.pushingpixels.lafwidget.animation.FadeStateListener

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.