public class BlockEvent extends AppEvent
source| Constructor and Description |
|---|
BlockEvent(Object pSource,
boolean pBlock)
Create a non-consumed event to block or unblock the GUI.
|
BlockEvent(Object pSource,
boolean pBlock,
long pEstimatedBlockDuration,
boolean pReFocus)
Common constructor code
|
BlockEvent(Object pSource,
long pEstimatedBlockDuration)
Create a non-consumed event to block the GUI.
|
| Modifier and Type | Method and Description |
|---|---|
static BlockEvent |
createBlockEvent(Object pSource) |
static BlockEvent |
createNoRefocusUnBlockEvent(Object pSource) |
static BlockEvent |
createUnBlockEvent(Object pSource) |
long |
getEstimatedBlockDuration()
Returns the estimated time the block will take, -1 if we don't know.
|
boolean |
isBlock()
Returns true if the event is sent to block the GUI, false if the GUI should
be unblocked.
|
boolean |
isReFocus() |
consume, forward, isConsumed, toStringgetSourcepublic BlockEvent(Object pSource, boolean pBlock)
pSource - null or event sourcepBlock - flag if we should block (true) or unblock (false)public BlockEvent(Object pSource, long pEstimatedBlockDuration)
pSource - null or event sourcepEstimatedBlockDuration - -1 or the estimated duration of the blockpublic BlockEvent(Object pSource, boolean pBlock, long pEstimatedBlockDuration, boolean pReFocus)
pSource - null or event sourcepBlock - flag if we should block (true) or unblock (false)pEstimatedBlockDuration - -1 or the estimated duration of the blockpReFocus - flag if we should re-focus on unblock or not, ignored if pBlock is truepublic static BlockEvent createBlockEvent(Object pSource)
public static BlockEvent createUnBlockEvent(Object pSource)
public static BlockEvent createNoRefocusUnBlockEvent(Object pSource)
public boolean isBlock()
public long getEstimatedBlockDuration()
public boolean isReFocus()
Copyright © 2013–2024 Jürgen Zeller (privat). All rights reserved.