com.threerings.admin.client
Class DSetEditor.DObjectAccessor<F extends E>

java.lang.Object
  extended by com.threerings.admin.client.DSetEditor.DObjectAccessor<F>
All Implemented Interfaces:
DSetEditor.Accessor<F>, AttributeChangeListener, ChangeListener, SetListener<F>
Enclosing class:
DSetEditor<E extends DSet.Entry>

protected class DSetEditor.DObjectAccessor<F extends E>
extends Object
implements AttributeChangeListener, SetListener<F>, DSetEditor.Accessor<F>


Field Summary
protected  DObject _obj
           
protected  DSet<F> _set
           
protected  String _setName
           
 
Constructor Summary
DSetEditor.DObjectAccessor(DObject obj, String setName)
           
 
Method Summary
 void added()
           
 void attributeChanged(AttributeChangedEvent event)
          Called when an attribute changed event has been dispatched on an object.
 void entryAdded(EntryAddedEvent<F> event)
          Called when an entry added event has been dispatched on an object.
 void entryRemoved(EntryRemovedEvent<F> event)
          Called when an entry removed event has been dispatched on an object.
 void entryUpdated(EntryUpdatedEvent<F> event)
          Called when an entry updated event has been dispatched on an object.
 ObjectEditorTable.FieldInterpreter getInterp(ObjectEditorTable.FieldInterpreter interp)
           
 Iterator<F> iterator()
           
protected  void refreshData()
           
 void refreshSet()
           
 void removed()
           
 void updateEntry(String setName, DSet.Entry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_obj

protected DObject _obj

_set

protected DSet<F extends E> _set

_setName

protected String _setName
Constructor Detail

DSetEditor.DObjectAccessor

public DSetEditor.DObjectAccessor(DObject obj,
                                  String setName)
Method Detail

getInterp

public ObjectEditorTable.FieldInterpreter getInterp(ObjectEditorTable.FieldInterpreter interp)
Specified by:
getInterp in interface DSetEditor.Accessor<F extends E>

added

public void added()
Specified by:
added in interface DSetEditor.Accessor<F extends E>

removed

public void removed()
Specified by:
removed in interface DSetEditor.Accessor<F extends E>

refreshSet

public void refreshSet()

updateEntry

public void updateEntry(String setName,
                        DSet.Entry entry)
Specified by:
updateEntry in interface DSetEditor.Accessor<F extends E>

entryAdded

public void entryAdded(EntryAddedEvent<F> event)
Description copied from interface: SetListener
Called when an entry added event has been dispatched on an object. This will be called after the event has been applied to the object.

Specified by:
entryAdded in interface SetListener<F extends E>
Parameters:
event - The event that was dispatched on the object.

entryRemoved

public void entryRemoved(EntryRemovedEvent<F> event)
Description copied from interface: SetListener
Called when an entry removed event has been dispatched on an object. This will be called after the event has been applied to the object.

Specified by:
entryRemoved in interface SetListener<F extends E>
Parameters:
event - The event that was dispatched on the object.

refreshData

protected void refreshData()

entryUpdated

public void entryUpdated(EntryUpdatedEvent<F> event)
Description copied from interface: SetListener
Called when an entry updated event has been dispatched on an object. This will be called after the event has been applied to the object.

Specified by:
entryUpdated in interface SetListener<F extends E>
Parameters:
event - The event that was dispatched on the object.

attributeChanged

public void attributeChanged(AttributeChangedEvent event)
Description copied from interface: AttributeChangeListener
Called when an attribute changed event has been dispatched on an object. This will be called after the event has been applied to the object. So fetching the attribute during this call will provide the new value for the attribute.

Specified by:
attributeChanged in interface AttributeChangeListener
Parameters:
event - The event that was dispatched on the object.

iterator

public Iterator<F> iterator()