Example usage for java.beans PropertyChangeListener interface-usage

List of usage examples for java.beans PropertyChangeListener interface-usage

Introduction

In this page you can find the example usage for java.beans PropertyChangeListener interface-usage.

Usage

From source file PackProgressMonitor.java

public class PackProgressMonitor extends ProgressMonitor implements PropertyChangeListener {

    public PackProgressMonitor(Component parent) {
        super(parent, null, "Packing", -1, 100);
    }

From source file ActionChangedListener.java

class ActionChangedListener implements PropertyChangeListener {
    private JButton button;

    public ActionChangedListener(JButton button) {
        this.button = button;
    }

From source file ActionChangedListener.java

class ActionChangedListener implements PropertyChangeListener {

    private JButton button;

    public ActionChangedListener(JButton button) {
        this.button = button;

From source file AbstractButtonPropertyChangeListener.java

class AbstractButtonPropertyChangeListener implements PropertyChangeListener {

    public void propertyChange(PropertyChangeEvent e) {
        String propertyName = e.getPropertyName();
        System.out.println("Property Name: " + propertyName);
        if (e.getPropertyName().equals(AbstractButton.TEXT_CHANGED_PROPERTY)) {

From source file InternalFramePropertyChangeHandler.java

class InternalFramePropertyChangeHandler implements PropertyChangeListener {
    public void propertyChange(PropertyChangeEvent propertyChangeEvent) {
        String propertyName = propertyChangeEvent.getPropertyName();
        System.out.println(propertyName);
        if (propertyName.equals(JInternalFrame.IS_ICON_PROPERTY)) {
            System.out.println("Icon property changed. React.");

From source file Main.java

class FocusChangeListener implements PropertyChangeListener {
    public void propertyChange(PropertyChangeEvent evt) {
        Component oldComp = (Component) evt.getOldValue();
        Component newComp = (Component) evt.getNewValue();

        if ("focusOwner".equals(evt.getPropertyName())) {

From source file Main.java

class MyPropertyChangeListener implements PropertyChangeListener {
    public void propertyChange(PropertyChangeEvent evt) {
        Object oldValue = evt.getOldValue();

        Object newValue = evt.getNewValue();
    }

From source file Main.java

class MyBean implements PropertyChangeListener, Serializable {
    private Long id;
    private String name;
    private PropertyChangeSupport pcs = new PropertyChangeSupport(this);

    public MyBean() {

From source file Main.java

public class Main extends JPanel implements PropertyChangeListener {
    double amount = 100000;
    JFormattedTextField amountField;

    NumberFormat amountDisplayFormat;
    NumberFormat amountEditFormat;

From source file Main.java

class MyAccessory extends JComponent implements PropertyChangeListener {
    public MyAccessory(JFileChooser chooser) {
        chooser.addPropertyChangeListener(this);
        setPreferredSize(new Dimension(50, 50));
    }