|
|||||||||
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
agg.attribute.view.impl.OpenViewSetting
public class OpenViewSetting
Field Summary | |
---|---|
protected java.util.Hashtable<DeclTuple,TupleFormat> |
formatTab
Table of tuple formats for (type) tuples. |
protected int |
lastMaskedDeletedSlot0
|
protected int |
lastMaskedDeletedSlot1
|
protected int |
lastOpenDeletedSlot0
|
protected int |
lastOpenDeletedSlot1
|
protected MaskedViewSetting |
maskedView
|
Fields inherited from class agg.attribute.view.impl.ViewSetting |
---|
observerTab |
Fields inherited from class agg.attribute.impl.ManagedObject |
---|
manager |
Fields inherited from class agg.attribute.impl.AttrObject |
---|
classHandlerExpr, classObject, classString, initialized |
Constructor Summary | |
---|---|
OpenViewSetting(AttrTupleManager m)
|
Method Summary | |
---|---|
void |
addObserver(AttrViewObserver o,
AttrTuple attr)
Adding an observer for an attribute tuple's representation. |
void |
attributeChanged(AttrEvent event)
AttrObserver implementation; Attribute event handling relies on the fact that an AttrType always sends its MEMBER_ADDED and MEMBER_DELETED events before his AttrInstance. |
int |
convertIndexToSlot(AttrTuple attr,
int index)
Returns the slot position in the view layout for 'attr' at 'index'. |
int |
convertSlotToIndex(AttrTuple attr,
int slot)
Returns the index for 'attr' at 'slot', as set in this view layout. |
void |
ensureBeingAttrObserver(AttrTuple attr)
Called by addObserver(), from MaskedViewSetting as well as from this class. |
protected TupleFormat |
getFormat(AttrTuple attr)
Getting the tuple format for a (type) tuple. |
AttrViewSetting |
getMaskedView()
Returns the 'masked subview', manipulating of visibility of members (setVisibleAt(...)) affects this subview. |
AttrViewSetting |
getOpenView()
Returns the 'open subview', manipulating of visibility of members (setVisibleAt(...)) only affects the other subview. |
int |
getSize(AttrTuple attr)
Returns the number of members that are visible in this view. |
boolean |
hasObserver(AttrTuple attr)
|
protected boolean |
hasObserversForTuple(AttrTuple attr)
|
boolean |
isPersistentFor(AttrTuple at)
AttrObserver implementation |
boolean |
isVisible(AttrTuple attr,
int slot)
Testing if the attribute member at the specified slot is visible in this view. |
void |
moveSlotInserting(AttrTuple attr,
int srcSlot,
int destSlot)
Moves the member at "srcSlot" to "destSlot", inserting-wise. |
protected TupleFormat |
rawAddFormatFor(AttrTuple attr)
Getting the tuple format for a (type) tuple, raw style. |
protected TupleFormat |
rawGetFormat(AttrTuple attr)
Getting the tuple format for a (type) tuple, raw style. |
void |
removeFormat(AttrType type)
Removing the format for a (type) tuple. |
void |
removeObserver(AttrViewObserver o,
AttrTuple attr)
Removing an observer for an attribute tuple's representation. |
void |
reorderTuple(AttrTuple attr)
|
void |
resetTuple(AttrTuple attr)
Reset the tuple layout, so each slot number is the same as the index it contains, with all slots visible. |
void |
setAllVisible(AttrTuple attr,
boolean b)
Setting, if all attribute members of 'attr' should either be at once made visible or hidden. |
void |
setVisible(AttrTuple attr)
Set visibility to true, if declaration type member of AttrTuple attr is visible, else - to false. |
void |
setVisibleAt(AttrTuple attr,
boolean b,
int slot)
Setting, if the attribute member at the specified slot of this view should be visible or not. |
void |
stopObservingIfNeedless(AttrTuple attr)
Called by removeObserver(), from MaskedViewSetting as well as from this class. |
Methods inherited from class agg.attribute.view.impl.ViewSetting |
---|
addObserverForTuple, dispose, finalize, fireAttrChanged, getObserversForTuple, moveSlotAppending, notifyObservers, propagateAttrEvent, removeObserverForTuple, toString |
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 |
Field Detail |
---|
protected java.util.Hashtable<DeclTuple,TupleFormat> formatTab
protected MaskedViewSetting maskedView
protected int lastOpenDeletedSlot0
protected int lastOpenDeletedSlot1
protected int lastMaskedDeletedSlot0
protected int lastMaskedDeletedSlot1
Constructor Detail |
---|
public OpenViewSetting(AttrTupleManager m)
Method Detail |
---|
protected TupleFormat rawGetFormat(AttrTuple attr)
protected TupleFormat rawAddFormatFor(AttrTuple attr)
protected TupleFormat getFormat(AttrTuple attr)
getFormat
in class ViewSetting
public void removeFormat(AttrType type)
removeFormat
in class ViewSetting
protected boolean hasObserversForTuple(AttrTuple attr)
public void ensureBeingAttrObserver(AttrTuple attr)
public void stopObservingIfNeedless(AttrTuple attr)
public AttrViewSetting getOpenView()
AttrViewSetting
getOpenView
in interface AttrViewSetting
AttrViewSetting.getMaskedView().
public AttrViewSetting getMaskedView()
AttrViewSetting
getMaskedView
in interface AttrViewSetting
public void addObserver(AttrViewObserver o, AttrTuple attr)
AttrViewSetting
addObserver
in interface AttrViewSetting
public void removeObserver(AttrViewObserver o, AttrTuple attr)
AttrViewSetting
removeObserver
in interface AttrViewSetting
public boolean hasObserver(AttrTuple attr)
hasObserver
in interface AttrViewSetting
public int convertIndexToSlot(AttrTuple attr, int index)
AttrViewSetting
convertIndexToSlot
in interface AttrViewSetting
public int convertSlotToIndex(AttrTuple attr, int slot)
AttrViewSetting
convertSlotToIndex
in interface AttrViewSetting
public int getSize(AttrTuple attr)
AttrViewSetting
getSize
in interface AttrViewSetting
public boolean isVisible(AttrTuple attr, int slot)
AttrViewSetting
isVisible
in interface AttrViewSetting
public void setVisibleAt(AttrTuple attr, boolean b, int slot)
AttrViewSetting
setVisibleAt
in interface AttrViewSetting
public void setAllVisible(AttrTuple attr, boolean b)
AttrViewSetting
setAllVisible
in interface AttrViewSetting
public void setVisible(AttrTuple attr)
AttrViewSetting
setVisible
in interface AttrViewSetting
public void moveSlotInserting(AttrTuple attr, int srcSlot, int destSlot)
AttrViewSetting
moveSlotInserting
in interface AttrViewSetting
public void resetTuple(AttrTuple attr)
AttrViewSetting
resetTuple
in interface AttrViewSetting
public void reorderTuple(AttrTuple attr)
public void attributeChanged(AttrEvent event)
attributeChanged
in interface AttrObserver
public boolean isPersistentFor(AttrTuple at)
isPersistentFor
in interface AttrObserver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |