|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.attribute.impl.AttrObject
agg.attribute.impl.ManagedObject
agg.attribute.view.impl.ViewSetting
public abstract class ViewSetting
Common superclass for OpenViewSetting and MaskedViewSetting. Provides most routines for handling own observers and event propagation. Most methods that actually manipulate the layout of attribute tuples are in the subclasses mentioned above.
Field Summary | |
---|---|
protected java.util.Hashtable<AttrTuple,java.util.Vector<java.lang.ref.WeakReference<AttrViewObserver>>> |
observerTab
Table of observers for tuples. |
Fields inherited from class agg.attribute.impl.ManagedObject |
---|
manager |
Fields inherited from class agg.attribute.impl.AttrObject |
---|
classHandlerExpr, classObject, classString, initialized |
Constructor Summary | |
---|---|
ViewSetting(AttrTupleManager m)
|
Method Summary | |
---|---|
protected void |
addObserverForTuple(AttrViewObserver o,
AttrTuple attr)
Adding an observer for an attribute to its observers' table. |
void |
dispose()
Prepare myself for garbage collection. |
void |
finalize()
|
protected void |
fireAttrChanged(TupleObject attr,
int id,
int slot0,
int slot1)
Called from within this class whenever the format (layout) of an attribute is changed. |
protected abstract TupleFormat |
getFormat(AttrTuple attr)
Getting the format for a (type) tuple. |
protected java.util.Vector<java.lang.ref.WeakReference<AttrViewObserver>> |
getObserversForTuple(AttrTuple attr)
Getting the observers of a tuple managed in this view. |
void |
moveSlotAppending(AttrTuple attr,
int srcSlot,
int destSlot)
Moves the member at "srcSlot" to "destSlot", appending-wise. |
protected void |
notifyObservers(AttrTuple attr,
int id,
int slot0,
int slot1)
Called by fireAttrChanged() from this class. |
protected void |
propagateAttrEvent(AttrEvent event)
Propagating incoming attribute events to my view observers. |
protected abstract void |
removeFormat(AttrType type)
Removing the format for a (type) tuple. |
protected void |
removeObserverForTuple(AttrViewObserver o,
AttrTuple attr)
Removing an observer for an attribute from its observers' table. |
java.lang.String |
toString(AttrTuple attr)
|
Methods inherited from class agg.attribute.impl.ManagedObject |
---|
getAttrManager, getManager |
Methods inherited from class agg.attribute.impl.AttrObject |
---|
defaultToString, err, err, getInstRepr, log, log, log, logEnteredMethod, logPrintln, logPrintln, stdoutPrintOnEnter, stdoutPrintOnExit, toString, update, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface agg.attribute.view.AttrViewSetting |
---|
addObserver, convertIndexToSlot, convertSlotToIndex, getMaskedView, getOpenView, getSize, hasObserver, isVisible, moveSlotInserting, removeObserver, resetTuple, setAllVisible, setVisible, setVisibleAt |
Field Detail |
---|
protected transient java.util.Hashtable<AttrTuple,java.util.Vector<java.lang.ref.WeakReference<AttrViewObserver>>> observerTab
Constructor Detail |
---|
public ViewSetting(AttrTupleManager m)
Method Detail |
---|
public void dispose()
Disposable
dispose
in interface Disposable
public void finalize()
finalize
in class java.lang.Object
protected abstract TupleFormat getFormat(AttrTuple attr)
protected abstract void removeFormat(AttrType type)
protected java.util.Vector<java.lang.ref.WeakReference<AttrViewObserver>> getObserversForTuple(AttrTuple attr)
protected void addObserverForTuple(AttrViewObserver o, AttrTuple attr)
protected void removeObserverForTuple(AttrViewObserver o, AttrTuple attr)
protected void notifyObservers(AttrTuple attr, int id, int slot0, int slot1)
protected void fireAttrChanged(TupleObject attr, int id, int slot0, int slot1)
protected void propagateAttrEvent(AttrEvent event)
public void moveSlotAppending(AttrTuple attr, int srcSlot, int destSlot)
AttrViewSetting
moveSlotAppending
in interface AttrViewSetting
public java.lang.String toString(AttrTuple attr)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |