FileDocCategorySizeDatePackage
BasicIasBean.javaAPI DocGlassfish v2 API8215Fri May 04 22:34:38 BST 2007com.sun.enterprise.tools.common.beans

BasicIasBean

public abstract class BasicIasBean extends Object
author
vkraemer

Fields Summary
protected static final VetoableChangeListener
greaterThanNegOne
protected static final VetoableChangeListener
notNull
private PropertyChangeSupport
pcs
private VetoableChangeSupport
vcs
protected static final ResourceBundle
bundle
Constructors Summary
protected BasicIasBean()
Creates a new instance of BaicIasBean

 //NOI18N


           
      
    
Methods Summary
public voidaddPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Add a property listener to this bean.

param
pcl PropertyChangeListener to add

       if (null == pcs)
           pcs = new PropertyChangeSupport(this);
       pcs.addPropertyChangeListener(pcl);
   
public voidaddVetoableChangeListener(java.beans.VetoableChangeListener pcl)
Add a Vetoable listener to this bean.

param
pcl VetoableChangeListener to add

       if (null == vcs)
           vcs = new VetoableChangeSupport(this);
       vcs.addVetoableChangeListener(pcl);
   
protected voiddoAttrSetProcessing(org.netbeans.modules.schema2beans.BaseBean bean, java.lang.String newVal, java.lang.String attrName, java.lang.String propName)

        String oldName = bean.getAttributeValue(attrName); //NOI18N
        fireMyVetoableChange(propName, oldName, newVal);
        bean.setAttributeValue(attrName,newVal); //NOI18N
        fireMyPropertyChange(propName, oldName, newVal);
    
protected voiddoAttrSetProcessing(org.netbeans.modules.schema2beans.BaseBean bean, int newVal, java.lang.String attrName, java.lang.String propName)

        int oldVal = Integer.parseInt(bean.getAttributeValue(attrName)); //NOI18N
        fireMyVetoableChange(propName, oldVal, newVal);
        bean.setAttributeValue(attrName, ""+newVal); //NOI18N
        fireMyPropertyChange(propName, oldVal, newVal);
    
protected voiddoElementSetProcessing(org.netbeans.modules.schema2beans.BaseBean bean, java.lang.String newVal, java.lang.String subElement, java.lang.String propName)

        String oldName = (String) bean.getValue(subElement);
        fireMyVetoableChange(propName, oldName, newVal);
        bean.setValue(subElement,newVal);
        fireMyPropertyChange(propName, oldName, newVal);
    
protected voidfireMyPropertyChange(java.lang.String name, int oldV, int newV)

 // throws PropertyVetoException {
        if (null == pcs) {
            pcs = new PropertyChangeSupport(this);
        }
        pcs.firePropertyChange(name,oldV,newV);
    
protected voidfireMyPropertyChange(java.lang.String name, java.lang.Object oldV, java.lang.Object newV)

 // throws PropertyVetoException {
        if (null == pcs) {
            pcs = new PropertyChangeSupport(this);
        }
        pcs.firePropertyChange(name,oldV,newV);
    
protected voidfireMyVetoableChange(java.lang.String name, java.lang.Object oldV, java.lang.Object newV)

        if (null == vcs) {
            vcs = new VetoableChangeSupport(this);
        }
        vcs.fireVetoableChange(name,oldV,newV);
    
protected voidfireMyVetoableChange(java.lang.String name, int oldV, int newV)

        if (null == vcs) {
            vcs = new VetoableChangeSupport(this);
        }
        vcs.fireVetoableChange(name,oldV,newV);
    
public java.beans.PropertyChangeSupportgetPCS()

        if (null == pcs)
            pcs = new PropertyChangeSupport(this);
        return pcs;
    
public java.beans.VetoableChangeSupportgetVCS()

        if (null == vcs)
            vcs = new VetoableChangeSupport(this);
        return vcs;
    
public abstract voidoutTo(java.io.OutputStream os)

public voidremovePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Remove this listener.

param
pcl Listener to remove.

       if (null != pcs) 
           pcs.removePropertyChangeListener(pcl);
   
public voidremoveVetoableChangeListener(java.beans.VetoableChangeListener pcl)
Remove this listener.

param
pcl Listener to remove.

       if (null != vcs) 
           vcs.removeVetoableChangeListener(pcl);