org.gudy.azureus2.pluginsimpl.local.ui.components
Class UIComponentImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.ui.components.UIComponentImpl
All Implemented Interfaces:
UIComponent
Direct Known Subclasses:
UIProgressBarImpl, UITextAreaImpl, UITextFieldImpl

public class UIComponentImpl
extends Object
implements UIComponent


Field Summary
protected  CopyOnWriteList<UIPropertyChangeListener> listeners
           
protected  Properties properties
           
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.components.UIComponent
PT_ENABLED, PT_HEIGHT_HINT, PT_VALUE, PT_VISIBLE, PT_WIDTH_HINT
 
Constructor Summary
protected UIComponentImpl()
           
 
Method Summary
 void addPropertyChangeListener(UIPropertyChangeListener l)
           
 boolean getEnabled()
           
 Object getProperty(String property_type)
           
 boolean getVisible()
           
 void removePropertyChangeListener(UIPropertyChangeListener l)
           
 void setEnabled(boolean enabled)
           
 void setProperty(String property_type, Object property_value)
           
 void setVisible(boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected Properties properties

listeners

protected CopyOnWriteList<UIPropertyChangeListener> listeners
Constructor Detail

UIComponentImpl

protected UIComponentImpl()
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface UIComponent

getEnabled

public boolean getEnabled()
Specified by:
getEnabled in interface UIComponent

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface UIComponent

getVisible

public boolean getVisible()
Specified by:
getVisible in interface UIComponent

setProperty

public void setProperty(String property_type,
                        Object property_value)
Specified by:
setProperty in interface UIComponent

getProperty

public Object getProperty(String property_type)
Specified by:
getProperty in interface UIComponent

addPropertyChangeListener

public void addPropertyChangeListener(UIPropertyChangeListener l)
Specified by:
addPropertyChangeListener in interface UIComponent

removePropertyChangeListener

public void removePropertyChangeListener(UIPropertyChangeListener l)
Specified by:
removePropertyChangeListener in interface UIComponent