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,
long pEstimatedBlockDuration)
Create a non-consumed event to block the GUI.
|
Modifier and Type | Method and Description |
---|---|
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.
|
consume, forward, isConsumed, toString
getSource
public 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 boolean isBlock()
public long getEstimatedBlockDuration()
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.