Methods Summary |
---|
public void | addPropertyChangeListener(UIPropertyChangeListener l)
listeners.add( l );
|
public boolean | getEnabled()
return(((Boolean)getProperty( PT_ENABLED )).booleanValue());
|
public java.lang.Object | getProperty(java.lang.String property_type)
return( properties.get( property_type ));
|
public boolean | getVisible()
return(((Boolean)getProperty( PT_VISIBLE )).booleanValue());
|
public void | removePropertyChangeListener(UIPropertyChangeListener l)
listeners.remove(l);
|
public void | setEnabled(boolean enabled)
setProperty( PT_ENABLED, new Boolean( enabled ));
|
public void | setProperty(java.lang.String property_type, java.lang.Object property_value)
final Object old_value = properties.get( property_type );
properties.put( property_type, property_value );
UIPropertyChangeEvent ev = new
UIPropertyChangeEvent()
{
public UIComponent
getSource()
{
return( UIComponentImpl.this );
}
public String
getPropertyType()
{
return( property_type );
}
public Object
getNewPropertyValue()
{
return( property_value );
}
public Object
getOldPropertyValue()
{
return( old_value );
}
};
for (int i=0;i<listeners.size();i++){
((UIPropertyChangeListener)listeners.get(i)).propertyChanged( ev );
}
|
public void | setVisible(boolean visible)
setProperty( PT_VISIBLE, new Boolean( visible ));
|