org.argouml.uml.ui
Class UMLBooleanProperty

java.lang.Object
  |
  +--org.argouml.uml.ui.UMLBooleanProperty
Direct Known Subclasses:
UMLEnumerationBooleanProperty, UMLReflectionBooleanProperty, UMLTaggedBooleanProperty

public abstract class UMLBooleanProperty
extends java.lang.Object

This abstract base class is used to define derived classes that interact with the UMLRadioButton and UMLCheckBox user interface components.


Field Summary
protected static org.apache.log4j.Category cat
           
 
Constructor Summary
UMLBooleanProperty(java.lang.String propertyName)
          Creates new UMLBooleanProperty
 
Method Summary
abstract  boolean getProperty(java.lang.Object element)
          Retreives current state of property.
 java.lang.String getPropertyName()
           
 boolean isAffected(ru.novosoft.uml.MElementEvent event)
          Returns true if a specific NSUML event should have an affect on this property.
abstract  void setProperty(java.lang.Object element, boolean newState)
          Sets property on element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Category cat
Constructor Detail

UMLBooleanProperty

public UMLBooleanProperty(java.lang.String propertyName)
Creates new UMLBooleanProperty
Parameters:
propertyName - name of property monitored, null will cause component to be updated on any change to monitored model element.
Method Detail

setProperty

public abstract void setProperty(java.lang.Object element,
                                 boolean newState)
                          throws java.beans.PropertyVetoException
Sets property on element.
Parameters:
element - Element whose property will be changed.
newState - new state of property.

getProperty

public abstract boolean getProperty(java.lang.Object element)
Retreives current state of property.
Parameters:
element - Elements whose property will be retrieved.
Returns:
current state of property.

isAffected

public boolean isAffected(ru.novosoft.uml.MElementEvent event)
Returns true if a specific NSUML event should have an affect on this property.
Parameters:
event - NSUML event
Returns:
returns true if property may have been affected by change.

getPropertyName

public java.lang.String getPropertyName()


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook