graphlab.ui
Class PortableNotifiableAttributeSetImpl
java.lang.Object
graphlab.ui.PortableNotifiableAttributeSetImpl
- All Implemented Interfaces:
- AttributeSet, NotifiableAttributeSet, NotifiableAttributeSetView
public class PortableNotifiableAttributeSetImpl
- extends java.lang.Object
- implements NotifiableAttributeSet, NotifiableAttributeSetView
this is a portable NotifiableAttributeSetImpl + View
this means that the model of view can be changed
- Author:
- azin azadi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortableNotifiableAttributeSetImpl
public PortableNotifiableAttributeSetImpl()
setView
public void setView(AttributeSetView view)
getView
public AttributeSetView getView()
- Specified by:
getView
in interface NotifiableAttributeSetView
setModel
public void setModel(NotifiableAttributeSet aModel)
getAttributes
public AttributeSet getAttributes()
addAttributeListener
public void addAttributeListener(AttributeListener attributeListener)
- Description copied from interface:
NotifiableAttributeSet
- Add a listener to changes of an AttributeSet.
It's better to use a List
because of
getAttributeListeners()
method.
- Specified by:
addAttributeListener
in interface NotifiableAttributeSet
- Parameters:
attributeListener
- the listener!
getAttributeListeners
public java.util.Collection<AttributeListener> getAttributeListeners()
- Specified by:
getAttributeListeners
in interface NotifiableAttributeSet
- Returns:
- List of listeners
removeAttributeListener
public void removeAttributeListener(AttributeListener attributeListener)
- Description copied from interface:
NotifiableAttributeSet
- Remove a listener from list of listeners.
- Specified by:
removeAttributeListener
in interface NotifiableAttributeSet
getModel
public NotifiableAttributeSet getModel()
getAttrs
public java.util.Map<java.lang.String,java.lang.Object> getAttrs()
- Specified by:
getAttrs
in interface AttributeSet
- Returns:
- a unmodifiable copy of attributes in this object
put
public void put(java.lang.String name,
java.lang.Object value)
- Specified by:
put
in interface AttributeSet
get
public java.lang.Object get(java.lang.String name)
- Specified by:
get
in interface AttributeSet