alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 * EarConfigBean.java
 *
 * Created on February 28, 2002, 3:27 PM
 */

package org.netbeans.tests.j2eeserver.plugin.jsr88;

import org.netbeans.tests.j2eeserver.plugin.jsr88.ui.EarConfigBeanPanel;

import javax.enterprise.deploy.spi.exceptions.*;
import javax.enterprise.deploy.spi.*;
import java.beans.*;
import javax.enterprise.deploy.model.*;


/**
 *
 * @author  gfink
 */
public class EarConfigBean  implements DConfigBeanRoot {
    
    DDBean bean;
    DepConfig config;
    
    public EarConfigBean(DDBean bean,DepConfig config) {
        this.bean = bean; this.config = config;
        securityLevel = "";   //NOI18N
        sessionParam = "";    //NOI18N
    }
      
    public DConfigBean getDConfigBean(DDBean dDBean) throws ConfigurationException {
        return null;
    }
    
    public DDBean getDDBean() {
        return bean;
    }
    
    public String[] getXpaths() {
        return null;
    }
    
    public void notifyDDChange(XpathEvent xpathEvent) {
    }
    
    public void removeDConfigBean(DConfigBean dConfigBean) throws BeanNotFoundException {
    }
    
      /** Utility field used by bound properties. */
      private PropertyChangeSupport propertyChangeSupport =  new PropertyChangeSupport(this);
      
      /** Holds value of property securityLevel. */
      private String securityLevel;
      
      /** Holds value of property sessionParam. */
      private String sessionParam;
      
    public void addPropertyChangeListener(PropertyChangeListener listener) {
        propertyChangeSupport.addPropertyChangeListener(listener);
    }
    
    public void removePropertyChangeListener(PropertyChangeListener listener) {
        propertyChangeSupport.removePropertyChangeListener(listener);
    }   
    
    /** Getter for property securityLevel.
     * @return Value of property securityLevel.
     *
     */
    public String getSecurityLevel() {
        return this.securityLevel;
    }
    
    /** Setter for property securityLevel.
     * @param securityLevel New value of property securityLevel.
     *
     */
    public void setSecurityLevel(String securityLevel) {
        if (getSecurityLevel().equals(securityLevel.trim())) {
            return;
        }
        String oldSecurityLevel = this.securityLevel;
        this.securityLevel = securityLevel.trim();
        propertyChangeSupport.firePropertyChange("securityLevel", oldSecurityLevel, securityLevel);
    }
    
    /** Getter for property sessionParam.
     * @return Value of property sessionParam.
     *
     */
    public String getSessionParam() {
        return this.sessionParam;
    }
    
    /** Setter for property sessionParam.
     * @param sessionParam New value of property sessionParam.
     *
     */
    public void setSessionParam(String sessionParam) {
        if (getSessionParam().equals(sessionParam.trim())) {
            return;
        }
        String oldSessionParam = this.sessionParam;
        this.sessionParam = sessionParam.trim();
        propertyChangeSupport.firePropertyChange("sessionParam", oldSessionParam, sessionParam);
    }
    
    public DConfigBean getDConfigBean(DDBeanRoot dDBeanRoot) {
        return null;
    }
    
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.