@Dependent public class LockManagerImpl extends Object implements LockManager
LockManager using the
VFSLockServiceProxy for lock management.| Constructor and Description |
|---|
LockManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireLockOnDemand()
Registers DOM handlers to detect changes and, if required, tries to
acquire a lock.
|
com.google.gwt.user.client.EventListener |
acquireLockOnDemand(com.google.gwt.dom.client.Element element) |
void |
init(LockTarget lockTarget)
Retrieves the latest lock information for the provided target and fires
events to update the corresponding UI.
|
void |
onFocus()
Notifies this lock manager that the lock target's widget got focus to
initialize widget-specific state i.e. to publish JavaScript methods for
lock management which can be used by non-native editors (i.e editors that
are rendered on the server).
|
void |
releaseLock()
Releases the previously acquired lock.
|
public void init(LockTarget lockTarget)
LockManagerinit in interface LockManagerlockTarget - the LockTarget providing information about what to
lock.public void onFocus()
LockManagerLockManager.init(LockTarget)).onFocus in interface LockManagerpublic void acquireLockOnDemand()
LockManagerLockManager.init(LockTarget)).acquireLockOnDemand in interface LockManagerpublic com.google.gwt.user.client.EventListener acquireLockOnDemand(com.google.gwt.dom.client.Element element)
public void releaseLock()
LockManagerreleaseLock in interface LockManagerCopyright © 2012–2016 JBoss by Red Hat. All rights reserved.