Java Code Examples for javax.swing.JComponent#removePropertyChangeListener()

The following examples show how to use javax.swing.JComponent#removePropertyChangeListener() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: FlatLaf   File: MigLayoutVisualPadding.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Removes listeners and restores client property.
 */
public static void uninstall( JComponent c ) {
	if( !migLayoutAvailable )
		return;

	// remove listener
	for( PropertyChangeListener l : c.getPropertyChangeListeners() ) {
		if( l instanceof FlatMigListener ) {
			c.removePropertyChangeListener( l );
			break;
		}
	}

	// remove client property
	if( c.getClientProperty( VISUAL_PADDING_PROPERTY ) instanceof FlatMigInsets )
		c.putClientProperty( VISUAL_PADDING_PROPERTY, null );
}
 
Example 2
@Override
public void uninstallUI(JComponent slider) {
	slider.removeMouseListener(this);
	slider.removeMouseMotionListener(this);
	slider.removeFocusListener(focusListener);
	slider.removeKeyListener(keyListener);
	slider.removeComponentListener(compListener);
	slider.removePropertyChangeListener(propertyListener);
	slider.removePropertyChangeListener(THUMB_SHAPE_PROPERTY, thumbShapeListener);
	super.uninstallUI(slider);
}
 
Example 3
Source Project: pumpernickel   File: PaletteUI.java    License: MIT License 5 votes vote down vote up
@Override
public void uninstallUI(JComponent c) {
	super.uninstallUI(c);
	c.removePropertyChangeListener(JPalette.PROPERTY_COLORS,
			propertyLayoutListener);
	c.removePropertyChangeListener(PaletteUI.PROPERTY_HIGHLIGHT,
			propertyRepaintListener);
	c.removeMouseListener(mouseListener);
	c.removeFocusListener(focusListener);
	c.removeKeyListener(keyListener);
	Fields fields = getFields((JPalette) c, false);
	if (fields != null)
		fields.uninstall();
	c.putClientProperty(PROPERTY_FIELDS, null);
}
 
Example 4
Source Project: pumpernickel   File: MultiThumbSliderUI.java    License: MIT License 5 votes vote down vote up
@Override
public void uninstallUI(JComponent slider) {
	slider.removeMouseListener(this);
	slider.removeMouseMotionListener(this);
	slider.removeFocusListener(focusListener);
	slider.removeKeyListener(keyListener);
	slider.removeComponentListener(compListener);
	slider.removePropertyChangeListener(propertyListener);
	slider.removePropertyChangeListener(THUMB_SHAPE_PROPERTY,
			thumbShapeListener);
	super.uninstallUI(slider);
}
 
Example 5
Source Project: pumpernickel   File: BasicAudioPlayerUI.java    License: MIT License 5 votes vote down vote up
@Override
public void uninstallUI(JComponent c) {
	super.uninstallUI(c);

	getFields(c).uninstall();
	c.removePropertyChangeListener(AudioPlayerComponent.SOURCE_KEY,
			updateSourceListener);
	c.removeHierarchyListener(hierarchyListener);
}
 
Example 6
Source Project: pumpernickel   File: BreadCrumbUI.java    License: MIT License 5 votes vote down vote up
@Override
public void uninstallUI(JComponent c) {
	super.uninstallUI(c);

	c.removeMouseListener(mouseListener);
	c.removePropertyChangeListener(JBreadCrumb.PATH_KEY, refreshUIListener);
	c.removePropertyChangeListener(JBreadCrumb.FORMATTER_KEY,
			refreshUIListener);
	c.removePropertyChangeListener(PROPERTY_SEPARATOR_ICON,
			refreshUIListener);
}
 
Example 7
Source Project: FlatLaf   File: FlatToolTipUI.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected void uninstallListeners( JComponent c ) {
	super.uninstallListeners( c );

	c.removePropertyChangeListener( sharedPropertyChangedListener );
}
 
Example 8
Source Project: seaglass   File: SeaGlassToolTipUI.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * @inheritDoc
 */
@Override
protected void uninstallListeners(JComponent c) {
    c.removePropertyChangeListener(this);
}
 
Example 9
@Override
protected void uninstallListeners(JComponent scrollPane) {
    super.uninstallListeners(scrollPane);
    scrollPane.removePropertyChangeListener(propertyChangeHandler);
}
 
Example 10
@Override
protected void uninstallListeners(JComponent scrollPane) {
    super.uninstallListeners(scrollPane);
    scrollPane.removePropertyChangeListener(propertyChangeHandler);
}
 
Example 11
Source Project: PolyGlot   File: PToolTipUI.java    License: MIT License 4 votes vote down vote up
protected void uninstallListeners(JComponent c) {
    c.removePropertyChangeListener(propertyChangeListener);

    propertyChangeListener = null;
}
 
Example 12
@Override
protected void uninstallListeners(JComponent scrollPane) {
    super.uninstallListeners(scrollPane);
    scrollPane.removePropertyChangeListener(propertyChangeHandler);
}
 
Example 13
@Override
protected void uninstallListeners(JComponent scrollPane) {
    super.uninstallListeners(scrollPane);
    scrollPane.removePropertyChangeListener(propertyChangeHandler);
}
 
Example 14
@Override
protected void uninstallListeners(JComponent scrollPane) {
    super.uninstallListeners(scrollPane);
    scrollPane.removePropertyChangeListener(propertyChangeHandler);
}
 
Example 15
@Override
protected void uninstallListeners(JComponent scrollPane) {
    super.uninstallListeners(scrollPane);
    scrollPane.removePropertyChangeListener(propertyChangeHandler);
}
 
Example 16
Source Project: pumpernickel   File: QOptionPaneUI.java    License: MIT License 4 votes vote down vote up
@Override
public void uninstallUI(JComponent c) {
	super.uninstallUI(c);
	c.removePropertyChangeListener(optionPanePropertyListener);
}
 
Example 17
Source Project: pumpernickel   File: AquaOpenLocationPaneUI.java    License: MIT License 4 votes vote down vote up
@Override
public void uninstallUI(JComponent c) {
	c.removePropertyChangeListener(KEY_INCLUDE_SIDEBAR,
			propertyChangeListener);
	super.uninstallUI(c);
}
 
Example 18
Source Project: pumpernickel   File: SubtleScrollBarUI.java    License: MIT License 4 votes vote down vote up
@Override
public void uninstallUI(JComponent c) {
	super.uninstallUI(c);
	c.removePropertyChangeListener(PROPERTY_ROLLOVER_BOOLEAN,
			rolloverListener);
}
 
Example 19
Source Project: pumpernickel   File: AudioPlayerUI.java    License: MIT License 4 votes vote down vote up
@Override
public void uninstallUI(JComponent c) {
	c.removePropertyChangeListener(AudioPlayerComponent.PLAYER_KEY,
			audioPlayerListener);
}
 
Example 20
Source Project: seaglass   File: SeaGlassViewportUI.java    License: Apache License 2.0 4 votes vote down vote up
protected void uninstallListeners(JComponent c) {
    c.removePropertyChangeListener(this);
}