public class FXFocusAndSelectOnClickPolicy extends AbstractFXInteractionPolicy implements IFXOnClickPolicy
FXFocusAndSelectOnClickPolicy is an IFXOnClickPolicy that
focuses and selects its host by altering the
FocusModel and the SelectionModel when the host is clicked by the mouse.adaptableadaptableIAdaptable.Bound.Impl<T extends IAdaptable>| Constructor and Description |
|---|
FXFocusAndSelectOnClickPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
click(javafx.scene.input.MouseEvent e)
This callback method is invoked when the user performs a mouse click on
the host.
|
protected boolean |
isFocusAndSelect(javafx.scene.input.MouseEvent event)
Returns
true if the given MouseEvent should trigger
focus and select. |
isRegistered, isRegisteredForHostcommit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisualsadaptableProperty, getAdaptable, getHost, setAdaptableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptableProperty, getAdaptable, setAdaptablepublic void click(javafx.scene.input.MouseEvent e)
IFXOnClickPolicyclick in interface IFXOnClickPolicye - The original MouseEvent.protected boolean isFocusAndSelect(javafx.scene.input.MouseEvent event)
true if the given MouseEvent should trigger
focus and select. Otherwise returns false. Per default
returns true if a single mouse click is performed.event - The MouseEvent in question.true if the given MouseEvent should trigger
focus and select, otherwise false.Copyright (c) 2014 itemis AG and others. All rights reserved.