Codota Logo
VetoableChangeSupport.hasListeners
Code IndexAdd Codota to your IDE (free)

How to use
hasListeners
method
in
java.beans.VetoableChangeSupport

Best Java code snippets using java.beans.VetoableChangeSupport.hasListeners (Showing top 18 results out of 315)

  • Common ways to obtain VetoableChangeSupport
private void myMethod () {
VetoableChangeSupport v =
  • Codota IconObject sourceBean;new VetoableChangeSupport(sourceBean)
  • Codota IconAbstractBean abstractBean;new VetoableChangeSupport(abstractBean)
  • Codota IconPropertyEnv propertyEnv;new VetoableChangeSupport(propertyEnv)
  • Smart code suggestions by Codota
}
origin: org.jxmapviewer/jxmapviewer2

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs.hasListeners(propertyName);
}

origin: org.swinglabs.swingx/swingx-all

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs.hasListeners(propertyName);
}
 
origin: eu.limetri.client/mapviewer-data

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs.hasListeners(propertyName);
}

origin: stackoverflow.com

if (vetoableChangeSupport == null)
  return false;
return vetoableChangeSupport.hasListeners(null);
origin: com.globalmentor/globalmentor-core

/**
 * Checks if there are any vetoable change listeners for a specific property, including those registered on all properties. If <code>propertyName</code> is
 * <code>null</code>, this method only checks for listeners registered on all properties.
 * @param propertyName The property name.
 * @return <code>true</code> if there are one or more listeners for the given property.
 */
public boolean hasVetoableChangeListeners(final String propertyName) {
  return vetoableChangeSupport != null ? vetoableChangeSupport.hasListeners(propertyName) : false; //if we have vetoable change support, ask it about listeners; if there is no support, there can be no listeners
}
origin: it.tidalwave.thesefoolishthings/it.tidalwave.swing.beansbinding

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs.hasListeners(propertyName);
}

origin: it.tidalwave.thesefoolishthings/it-tidalwave-swing-beansbinding

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners (final String propertyName) {
  return vcs.hasListeners(propertyName);
}
origin: org.jdesktop.swingx/jxmapviewer2

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs.hasListeners(propertyName);
}

origin: org.bidib.jbidib.swinglabs.swingx/swingx-common

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs.hasListeners(propertyName);
}
 
origin: org.codehaus.jtstand/jtstand-desktop

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs.hasListeners(propertyName);
}
 
origin: msteiger/jxmapviewer2

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs.hasListeners(propertyName);
}

origin: tmyroadctfig/swingx

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName  the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs.hasListeners(propertyName);
}

origin: com.anrisoftware.globalpom/globalpomutils-core

public boolean hasListeners(String propertyName) {
  return support.hasListeners(propertyName);
}
origin: io.ultreia.java4all/java-bean

/**
 * Check if there are any listeners for a specific property, including
 * those registered on all properties.  If <code>propertyName</code>
 * is null, only check for listeners registered on all properties.
 *
 * @param propertyName the property name.
 * @return true if there are one or more listeners for the given property
 */
protected final boolean hasVetoableChangeListeners(String propertyName) {
  return vcs().hasListeners(propertyName);
}
origin: org.ini4j/ini4j

protected synchronized void setProperty(String property, Object value, Class<?> clazz) throws PropertyVetoException
{
  boolean pc = (_pcSupport != null) && _pcSupport.hasListeners(property);
  boolean vc = (_vcSupport != null) && _vcSupport.hasListeners(property);
  Object oldVal = null;
  Object newVal = ((value != null) && clazz.equals(String.class) && !(value instanceof String)) ? value.toString() : value;
  if (pc || vc)
  {
    oldVal = getProperty(property, clazz);
  }
  if (vc)
  {
    fireVetoableChange(property, oldVal, value);
  }
  setPropertySpi(property, newVal, clazz);
  if (pc)
  {
    firePropertyChange(property, oldVal, value);
  }
}
origin: org.codehaus.izpack/izpack-ini4j

protected synchronized void setProperty(String property, Object value, Class<?> clazz) throws PropertyVetoException
{
  boolean pc = (_pcSupport != null) && _pcSupport.hasListeners(property);
  boolean vc = (_vcSupport != null) && _vcSupport.hasListeners(property);
  Object oldVal = null;
  Object newVal = ((value != null) && clazz.equals(String.class) && !(value instanceof String)) ? value.toString() : value;
  if (pc || vc)
  {
    oldVal = getProperty(property, clazz);
  }
  if (vc)
  {
    fireVetoableChange(property, oldVal, value);
  }
  setPropertySpi(property, newVal, clazz);
  if (pc)
  {
    firePropertyChange(property, oldVal, value);
  }
}
origin: org.codehaus.izpack/izpack-api

protected synchronized void setProperty(String property, Object value, Class<?> clazz) throws PropertyVetoException
{
  boolean pc = (_pcSupport != null) && _pcSupport.hasListeners(property);
  boolean vc = (_vcSupport != null) && _vcSupport.hasListeners(property);
  Object oldVal = null;
  Object newVal = ((value != null) && clazz.equals(String.class) && !(value instanceof String)) ? value.toString() : value;
  if (pc || vc)
  {
    oldVal = getProperty(property, clazz);
  }
  if (vc)
  {
    fireVetoableChange(property, oldVal, value);
  }
  setPropertySpi(property, newVal, clazz);
  if (pc)
  {
    firePropertyChange(property, oldVal, value);
  }
}
origin: org.glassfish.external/schema2beans

" in " + this.beanName + " - " +
(this.vetoableListeners==null?"null listener":
(this.vetoableListeners.hasListeners(null)?
"has listeners":"no listener")) );
java.beansVetoableChangeSupporthasListeners

Javadoc

Check if there are any listeners for a specific property, including those registered on all properties. If propertyName is null, only check for listeners registered on all properties.

Popular methods of VetoableChangeSupport

  • fireVetoableChange
    Reports a boolean constrained property update to listeners that have been registered to track update
  • addVetoableChangeListener
    Add a VetoableChangeListener for a specific property. The listener will be invoked only when a call
  • removeVetoableChangeListener
    Remove a VetoableChangeListener for a specific property. If listener was added more than once to the
  • <init>
    Constructs a VetoableChangeSupport object.
  • getVetoableChangeListeners
    Returns an array of all the listeners which have been associated with the named property.

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now