net.sourceforge.fuzzyservices.beans
Class SimpleBean

java.lang.Object
  extended by net.sourceforge.fuzzyservices.beans.SimpleBean

public class SimpleBean
extends Object

Author:
Uwe Weng

Constructor Summary
SimpleBean()
          Creates a new instance of SimpleBean
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Adds a PropertyChangeListener to the listener list.
 void addVetoableChangeListener(VetoableChangeListener l)
          Adds a VetoableChangeListener to the listener list.
 String[] getAttr()
          Getter for property attr.
 String getAttr(int index)
          Indexed getter for property attr.
 SimpleAttribute getSimpleAttribute()
          Getter for property simpleAttribute.
 SimpleAttribute[] getSimpleAttrs()
          Getter for property simpleAttrs.
 SimpleAttribute getSimpleAttrs(int index)
          Indexed getter for property simpleAttrs.
 String getText()
          Getter for property text.
 void removePropertyChangeListener(PropertyChangeListener l)
          Removes a PropertyChangeListener from the listener list.
 void removeVetoableChangeListener(VetoableChangeListener l)
          Removes a VetoableChangeListener from the listener list.
 void setAttr(int index, String attr)
          Indexed setter for property attr.
 void setAttr(String[] attr)
          Setter for property attr.
 void setSimpleAttribute(SimpleAttribute simpleAttribute)
          Setter for property simpleAttribute.
 void setSimpleAttrs(int index, SimpleAttribute simpleAttrs)
          Indexed setter for property simpleAttrs.
 void setSimpleAttrs(SimpleAttribute[] simpleAttrs)
          Setter for property simpleAttrs.
 void setText(String text)
          Setter for property text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBean

public SimpleBean()
Creates a new instance of SimpleBean

Method Detail

addPropertyChangeListener

public final void addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list.

Parameters:
l - The listener to add.

removePropertyChangeListener

public final void removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list.

Parameters:
l - The listener to remove.

addVetoableChangeListener

public final void addVetoableChangeListener(VetoableChangeListener l)
Adds a VetoableChangeListener to the listener list.

Parameters:
l - The listener to add.

removeVetoableChangeListener

public final void removeVetoableChangeListener(VetoableChangeListener l)
Removes a VetoableChangeListener from the listener list.

Parameters:
l - The listener to remove.

getAttr

public String getAttr(int index)
Indexed getter for property attr.

Parameters:
index - Index of the property.
Returns:
Value of the property at index.

getAttr

public String[] getAttr()
Getter for property attr.

Returns:
Value of property attr.

setAttr

public final void setAttr(int index,
                          String attr)
                   throws PropertyVetoException
Indexed setter for property attr.

Parameters:
index - Index of the property.
attr - New value of the property at index.
Throws:
PropertyVetoException - if some vetoable listeners reject the new value

setAttr

public final void setAttr(String[] attr)
                   throws PropertyVetoException
Setter for property attr.

Parameters:
attr - New value of property attr.
Throws:
PropertyVetoException - if some vetoable listeners reject the new value

getSimpleAttribute

public SimpleAttribute getSimpleAttribute()
Getter for property simpleAttribute.

Returns:
Value of property simpleAttribute.

setSimpleAttribute

public final void setSimpleAttribute(SimpleAttribute simpleAttribute)
Setter for property simpleAttribute.

Parameters:
simpleAttribute - New value of property simpleAttribute.

getText

public String getText()
Getter for property text.

Returns:
Value of property text.

setText

public final void setText(String text)
Setter for property text.

Parameters:
text - New value of property text.

getSimpleAttrs

public SimpleAttribute getSimpleAttrs(int index)
Indexed getter for property simpleAttrs.

Parameters:
index - Index of the property.
Returns:
Value of the property at index.

getSimpleAttrs

public SimpleAttribute[] getSimpleAttrs()
Getter for property simpleAttrs.

Returns:
Value of property simpleAttrs.

setSimpleAttrs

public final void setSimpleAttrs(int index,
                                 SimpleAttribute simpleAttrs)
                          throws PropertyVetoException
Indexed setter for property simpleAttrs.

Parameters:
index - Index of the property.
simpleAttrs - New value of the property at index.
Throws:
PropertyVetoException - if some vetoable listeners reject the new value

setSimpleAttrs

public final void setSimpleAttrs(SimpleAttribute[] simpleAttrs)
                          throws PropertyVetoException
Setter for property simpleAttrs.

Parameters:
simpleAttrs - New value of property simpleAttrs.
Throws:
PropertyVetoException - if some vetoable listeners reject the new value


Copyright © 2007-2012 Fuzzy Services. All Rights Reserved.