public final class Votespace extends Object implements Hold, Scene, SacSelection
State changes are effected as late as the "finally" phase. Associated change events are subsequently dispatched in the "deferred" phase where they appear atomic regardless of the number of state variables involved.
VotespaceV
Scene.SwitchMnemonic
SelectionModel.AbstractSelectionModel<T>
A_PATTERN
Constructor and Description |
---|
Votespace()
Constructs a Votespace.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addSelectionChangeHandler(SelectionChangeEvent.Handler handler) |
Switch |
aSacSwitch()
The 'a' superaccount selection switch (which ought not to be a switch).
|
CountJS |
count()
The count that is currently shown, or null if none is shown.
|
(package private) byte |
dartSector(int v)
Decodes the dart sector for the specified offset along the votepath.
|
(package private) JSONPAtomizer<CountCache.WAPResponse> |
exchangeAtomizerS()
The atomizer for request/response exchanges related to scoping, such as for counts
and count nodes.
|
void |
fireEvent(GwtEvent<?> e) |
Object |
getKey(SacJS item) |
SacJS |
getSac()
The superaccount that is currently selected, or null if none is selected.
|
boolean |
inScope(BiteJS bite)
Tests whether the specified bite is within the current scope of this scene.
|
boolean |
isSelected(SacJS s) |
(package private) String |
pollName()
The name of the poll that is shown, or null if no poll is shown.
|
void |
release()
Releases this hold.
|
void |
setSac(SacJS newSac)
Sets the superaccount that is currently selected.
|
void |
setSelected(SacJS s,
boolean toSelect) |
(package private) void |
syncActorToStage(CountNodeJS _nodeOnVotepath,
String _votepathFromNode)
Prompts the scoping model to set the stage actor if that is wanted.
|
(package private) String |
votepath()
The votepath that is shown.
|
byte dartSector(int v)
v
- the character offset along the votepath.votepath()
,
CountNode.dartSector()
JSONPAtomizer<CountCache.WAPResponse> exchangeAtomizerS()
final String pollName()
count()
,
votepath()
,
Category:Pollvoid syncActorToStage(CountNodeJS _nodeOnVotepath, String _votepathFromNode)
String votepath()
count()
,
pollName()
,
DartScoping.votepath()
public void fireEvent(GwtEvent<?> e)
fireEvent
in interface HasHandlers
public boolean inScope(BiteJS bite)
public Switch aSacSwitch()
aSacSwitch
in interface SacSelection
SacSelection.getSac()
public CountJS count()
SacSelection
count
in interface SacSelection
pollName()
public SacJS getSac()
SacSelection
getSac
in interface SacSelection
SacSelection.setSac(SacJS)
public void setSac(SacJS newSac)
SacSelection
setSelected( newSac, true );
Setting the superaccount to null, or explicitly deselecting it, does not have the effect of actual deselection. Rather it selects the null superaccount.
setSac
in interface SacSelection
SacSelection.getSac()
public HandlerRegistration addSelectionChangeHandler(SelectionChangeEvent.Handler handler)
addSelectionChangeHandler
in interface SelectionChangeEvent.HasSelectionChangedHandlers
addSelectionChangeHandler
in interface SelectionModel<SacJS>
public boolean isSelected(SacJS s)
isSelected
in interface SelectionModel<SacJS>
public void setSelected(SacJS s, boolean toSelect)
setSelected
in interface SelectionModel<SacJS>