/** * Force the focus lost for the application. Internal use only. */ public void loseFocus(){ if (lostFocusBehavior != LostFocusBehavior.Disabled){ if (lostFocusBehavior == LostFocusBehavior.PauseOnLostFocus) { paused = true; } context.setAutoFlushFrames(false); } }
/** * Internal use only. */ public void loseFocus(){ if (lostFocusBehavior != LostFocusBehavior.Disabled){ if (lostFocusBehavior == LostFocusBehavior.PauseOnLostFocus) { paused = true; } context.setAutoFlushFrames(false); } }
/** * Force the focus gain for the application. Internal use only. */ public void gainFocus(){ if (lostFocusBehavior != LostFocusBehavior.Disabled) { if (lostFocusBehavior == LostFocusBehavior.PauseOnLostFocus) { paused = false; } context.setAutoFlushFrames(true); if (inputManager != null) { inputManager.reset(); } } }
/** * Internal use only. */ public void gainFocus(){ if (lostFocusBehavior != LostFocusBehavior.Disabled) { if (lostFocusBehavior == LostFocusBehavior.PauseOnLostFocus) { paused = false; } context.setAutoFlushFrames(true); if (inputManager != null) { inputManager.reset(); } } }
/** * Internal use only. */ public void loseFocus(){ if (pauseOnFocus){ paused = true; context.setAutoFlushFrames(false); } }
/** * Internal use only. */ public void loseFocus(){ if (lostFocusBehavior != LostFocusBehavior.Disabled){ if (lostFocusBehavior == LostFocusBehavior.PauseOnLostFocus) { paused = true; } context.setAutoFlushFrames(false); } }
/** * Internal use only. */ public void gainFocus(){ if (pauseOnFocus) { paused = false; context.setAutoFlushFrames(true); if (inputManager != null) { inputManager.reset(); } } }
/** * Internal use only. */ public void gainFocus(){ if (lostFocusBehavior != LostFocusBehavior.Disabled) { if (lostFocusBehavior == LostFocusBehavior.PauseOnLostFocus) { paused = false; } context.setAutoFlushFrames(true); if (inputManager != null) { inputManager.reset(); } } }