/** * Stops the associated timer. */ private void stopTimer() { this.timeline.cancel(); }
/** * Stops the associated timer. */ private void stopTimer() { this.timeline.cancel(); }
public void cancel() { this.progressTl.cancel(); } }
public void cancel() { this.progressTl.cancel(); }
public void cancel() { synchronized (TimelineEngine.LOCK) { TimelineScenarioState oldState = this.state; if (oldState != TimelineScenarioState.PLAYING) return; this.state = TimelineScenarioState.DONE; for (TimelineScenarioActor waiting : this.waitingActors) { if (waiting instanceof Timeline) { ((Timeline) waiting).cancel(); } } for (TimelineScenarioActor running : this.runningActors) { if (running instanceof Timeline) { ((Timeline) running).cancel(); } } } }
public void cancel() { synchronized (TimelineEngine.LOCK) { TimelineScenarioState oldState = this.state; if (oldState != TimelineScenarioState.PLAYING) return; this.state = TimelineScenarioState.DONE; for (TimelineScenarioActor waiting : this.waitingActors) { if (waiting instanceof Timeline) { ((Timeline) waiting).cancel(); } } for (TimelineScenarioActor running : this.runningActors) { if (running instanceof Timeline) { ((Timeline) running).cancel(); } } } }
public void cancel() { synchronized (TimelineEngine.LOCK) { TimelineScenarioState oldState = this.state; if (oldState != TimelineScenarioState.PLAYING) return; this.state = TimelineScenarioState.DONE; for (TimelineScenarioActor waiting : this.waitingActors) { if (waiting instanceof Timeline) { ((Timeline) waiting).cancel(); } } for (TimelineScenarioActor running : this.runningActors) { if (running instanceof Timeline) { ((Timeline) running).cancel(); } } } }
@Override protected void uninstallDefaults() { for (Timeline timeline : this.modifiedTimelines.values()) timeline.cancel(); this.modifiedTimelines.clear(); super.uninstallDefaults(); }
@Override protected void uninstallDefaults() { for (Timeline timeline : this.modifiedTimelines.values()) timeline.cancel(); this.modifiedTimelines.clear(); super.uninstallDefaults(); }
public void propertyChange(PropertyChangeEvent evt) { if (AbstractButton.ICON_CHANGED_PROPERTY.equals(evt .getPropertyName())) { trackGlowingIcon(); } if (SubstanceLookAndFeel.WINDOW_MODIFIED.equals(evt .getPropertyName())) { boolean newValue = (Boolean) evt.getNewValue(); if (newValue) { trackModificationFlag(); } else { if (modifiedTimeline != null) { modifiedTimeline.cancel(); } } } } };
@Override public void propertyChange(PropertyChangeEvent evt) { if (AbstractButton.ICON_CHANGED_PROPERTY.equals(evt .getPropertyName())) { trackGlowingIcon(); } if (SubstanceLookAndFeel.WINDOW_MODIFIED.equals(evt .getPropertyName())) { boolean newValue = (Boolean) evt.getNewValue(); if (newValue) { trackModificationFlag(); } else { if (modifiedTimeline != null) { modifiedTimeline.cancel(); } } } } };
@Override public void propertyChange(PropertyChangeEvent evt) { if (SubstanceLookAndFeel.WINDOW_MODIFIED.equals(evt .getPropertyName())) { Object oldValue = evt.getOldValue(); Object newValue = evt.getNewValue(); boolean wasModified = Boolean.TRUE.equals(oldValue); boolean isModified = Boolean.TRUE.equals(newValue); if (wasModified) { if (!isModified) { Timeline modifiedTimeline = modifiedTimelines .get(tabComponent); modifiedTimeline.cancel(); modifiedTimelines.remove(tabComponent); } } else { if (isModified) { int tabIndex = SubstanceTabbedPaneUI.this.tabPane .indexOfComponent(tabComponent); if (tabIndex >= 0) { trackTabModification(tabIndex, tabComponent); } } } } } };
public void propertyChange(PropertyChangeEvent evt) { if (SubstanceLookAndFeel.WINDOW_MODIFIED.equals(evt .getPropertyName())) { Object oldValue = evt.getOldValue(); Object newValue = evt.getNewValue(); boolean wasModified = Boolean.TRUE.equals(oldValue); boolean isModified = Boolean.TRUE.equals(newValue); if (wasModified) { if (!isModified) { Timeline modifiedTimeline = modifiedTimelines .get(tabComponent); modifiedTimeline.cancel(); modifiedTimelines.remove(tabComponent); } } else { if (isModified) { int tabIndex = SubstanceTabbedPaneUI.this.tabPane .indexOfComponent(tabComponent); if (tabIndex >= 0) { trackTabModification(tabIndex, tabComponent); } } } } } };
@Override public void componentRemoved(ContainerEvent e) { // fix for defect 135 - memory leaks on tabbed panes final Component tabComponent = e.getChild(); if (tabComponent == null) return; // System.err.println(this.hashCode() + " removing for " + // tabComponent.hashCode()); if (tabComponent instanceof UIResource) return; for (PropertyChangeListener pcl : this.listeners.get(tabComponent)) tabComponent.removePropertyChangeListener(pcl); this.listeners.get(tabComponent).clear(); this.listeners.remove(tabComponent); // has running timeline? Timeline timeline = modifiedTimelines.get(tabComponent); if (timeline != null) { timeline.cancel(); modifiedTimelines.remove(tabComponent); } // this.cleanListeners(tabComponent); }
@Override public void componentRemoved(ContainerEvent e) { // fix for defect 135 - memory leaks on tabbed panes final Component tabComponent = e.getChild(); if (tabComponent == null) return; // System.err.println(this.hashCode() + " removing for " + // tabComponent.hashCode()); if (tabComponent instanceof UIResource) return; for (PropertyChangeListener pcl : this.listeners.get(tabComponent)) tabComponent.removePropertyChangeListener(pcl); this.listeners.get(tabComponent).clear(); this.listeners.remove(tabComponent); // has running timeline? Timeline timeline = modifiedTimelines.get(tabComponent); if (timeline != null) { timeline.cancel(); modifiedTimelines.remove(tabComponent); } // this.cleanListeners(tabComponent); }
public void setFocusState(boolean hasFocus) { if (hasFocus) { this.focusTimeline.play(); if (AnimationConfigurationManager.getInstance().isAnimationAllowed( AnimationFacet.FOCUS_LOOP_ANIMATION, this.component)) { this.focusLoopTimeline.playLoop(RepeatBehavior.LOOP); } } else { this.focusTimeline.playReverse(); if (AnimationConfigurationManager.getInstance().isAnimationAllowed( AnimationFacet.FOCUS_LOOP_ANIMATION, this.component)) { this.focusLoopTimeline.cancel(); } } }
public void setFocusState(boolean hasFocus) { if (hasFocus) { this.focusTimeline.play(); if (AnimationConfigurationManager.getInstance().isAnimationAllowed( AnimationFacet.FOCUS_LOOP_ANIMATION, this.component)) { this.focusLoopTimeline.playLoop(RepeatBehavior.LOOP); } } else { this.focusTimeline.playReverse(); if (AnimationConfigurationManager.getInstance().isAnimationAllowed( AnimationFacet.FOCUS_LOOP_ANIMATION, this.component)) { this.focusLoopTimeline.cancel(); } } }