GraphLab Project

graphlab.ui
Class PortableNotifiableAttributeSetImpl

java.lang.Object
  extended by 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

Constructor Summary
PortableNotifiableAttributeSetImpl()
           
 
Method Summary
 void addAttributeListener(AttributeListener attributeListener)
          Add a listener to changes of an AttributeSet.
 java.lang.Object get(java.lang.String name)
           
 java.util.Collection<AttributeListener> getAttributeListeners()
           
 AttributeSet getAttributes()
           
 java.util.Map<java.lang.String,java.lang.Object> getAttrs()
           
 NotifiableAttributeSet getModel()
           
 AttributeSetView getView()
           
 void put(java.lang.String name, java.lang.Object value)
           
 void removeAttributeListener(AttributeListener attributeListener)
          Remove a listener from list of listeners.
 void setModel(NotifiableAttributeSet aModel)
           
 void setView(AttributeSetView view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableNotifiableAttributeSetImpl

public PortableNotifiableAttributeSetImpl()
Method Detail

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

GraphLab Project