List of usage examples for java.beans VetoableChangeListener interface-usage
From source file Main.java
class FocusVetoableChangeListener implements VetoableChangeListener { public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException { Component oldComp = (Component) evt.getOldValue(); Component newComp = (Component) evt.getNewValue(); if ("focusOwner".equals(evt.getPropertyName())) {
From source file Main.java
class MyVetoableChangeListener implements VetoableChangeListener { public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException { Object oldValue = evt.getOldValue(); Object newValue = evt.getNewValue();
From source file org.springframework.beans.AbstractVetoableChangeListener.java
/**
* Convenience superclass for JavaBeans VetoableChangeListeners.
* This class implements the VetoableChangeListener interface to delegate
* the method call to one of any number of validation methods defined in
* concrete subclasses. This is a typical use of reflection to avoid the
* need for a chain of if/else statements, discussed in
From source file MainClass.java
class IconPolice implements VetoableChangeListener { public void vetoableChange(PropertyChangeEvent ev) throws PropertyVetoException { String name = ev.getPropertyName(); if (name.equals(JInternalFrame.IS_ICON_PROPERTY) && (ev.getNewValue() == Boolean.TRUE)) { System.out.println("JInternalFrame.IS_ICON_PROPERTY"); }
From source file VetoableChangeListenerDemo.java
class IconPolice implements VetoableChangeListener { public void vetoableChange(PropertyChangeEvent ev) throws PropertyVetoException { String name = ev.getPropertyName(); if (name.equals(JInternalFrame.IS_ICON_PROPERTY) && (ev.getNewValue() == Boolean.TRUE)) { System.out.println("JInternalFrame.IS_ICON_PROPERTY"); }
From source file Main.java
class VetoChangeListener implements VetoableChangeListener { public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException { String eventName = evt.getPropertyName(); if (eventName.equalsIgnoreCase("interest")) { double interest = ((Double) evt.getNewValue()).doubleValue(); if (interest > 20.00) {
From source file gda.gui.text.parameter.EpicsPanelParameterListener.java
/** * EpicsPanelParameterListener Classs */ public class EpicsPanelParameterListener implements VetoableChangeListener { private static final Logger logger = LoggerFactory.getLogger(EpicsPanelParameterListener.class);
From source file com.anrisoftware.prefdialog.appdialogs.registerdialog.ApprovalActionListener.java
/**
* Retrieves the entered registration name and code.
*
* @author Erwin Mller, erwin.mueller@deventm.de
* @since 1.0
*/
From source file net.sf.jabref.EntryEditor.java
/**
* GUI component that allows editing of the fields of a BibtexEntry (i.e. the
* one that shows up, when you double click on an entry in the table)
*
* It hosts the tabs (required, general, optional) and the buttons to the left.
*
From source file org.jfree.data.xy.XYSeriesCollection.java
/** * Represents a collection of {@link XYSeries} objects that can be used as a * dataset. */ public class XYSeriesCollection extends AbstractIntervalXYDataset implements IntervalXYDataset, DomainInfo, RangeInfo, VetoableChangeListener, PublicCloneable, Serializable {