@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { FocusManager.resetFocus(getStage()); return false; } });
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { FocusManager.switchFocus(getChooserStage(), ShortcutItem.this); getChooserStage().setKeyboardFocus(ShortcutItem.this); return true; }
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { Focusable focusable = FocusManager.getFocusedWidget(); if (focusable instanceof Actor == false || isAscendantOf((Actor) focusable) == false) { FocusManager.resetFocus(getStage()); } return false; } });
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { FocusManager.resetFocus(getStage()); return false; } });
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { FocusManager.switchFocus(getChooserStage(), FileItem.this); getChooserStage().setKeyboardFocus(FileItem.this); return true; }
@Override public void setDisabled (boolean disabled) { super.setDisabled(disabled); if (disabled) FocusManager.resetFocus(getStage(), this); }
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { /*if (isDisabled() == false)*/ FocusManager.switchFocus(getStage(), SeekBar.this); return false; }
@Override public void setDisabled (boolean disabled) { this.disabled = disabled; if (disabled) { FocusManager.resetFocus(getStage(), this); keyRepeatTask.cancel(); } }
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (isDisabled() == false) FocusManager.switchFocus(getStage(), VisTextButton.this); return false; } });
@Override public void setDisabled (boolean disabled) { super.setDisabled(disabled); if (disabled) FocusManager.resetFocus(getStage(), this); }
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (isDisabled() == false) FocusManager.switchFocus(getStage(), VisImageButton.this); return false; } });
@LmlAction("resetViewFocus") public void resetViewFocus() { FocusManager.resetFocus(getStage()); }
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (isDisabled() == false) FocusManager.switchFocus(getStage(), VisCheckBox.this); return false; } });
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { //TODO potential bug with libgdx scene2d? //fixes issue when split bar could be still dragged even when touchable is set to childrenOnly, probably scene2d issue if (isTouchable() == false) return false; if (draggingPointer != -1) return false; if (pointer == 0 && button != 0) return false; if (handleBounds.contains(x, y)) { FocusManager.resetFocus(getStage()); draggingPointer = pointer; lastPoint.set(x, y); handlePosition.set(handleBounds.x, handleBounds.y); return true; } return false; }
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (isDisabled() == false) FocusManager.switchFocus(getStage(), VisImageTextButton.this); return false; } });
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (isTouchable() == false) return false; if (draggingPointer != -1) return false; if (pointer == 0 && button != 0) return false; Rectangle containingHandle = getHandleContaining(x, y); if (containingHandle != null) { handleOverIndex = handleBounds.indexOf(containingHandle, true); FocusManager.resetFocus(getStage()); draggingPointer = pointer; lastPoint.set(x, y); handlePosition.set(containingHandle.x, containingHandle.y); return true; } return false; }
private void fillUpdateDetailsGroup(VersionData versionData) { lblVersionNew.setText(versionData.getVersion().toString()); FocusManager.switchFocus(btnVisitUpdatePage.getStage(), btnVisitUpdatePage); } }
@Override public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { if (isTouchable() == false) return false; if (draggingPointer != -1) return false; if (pointer == 0 && button != 0) return false; Rectangle containingHandle = getHandleContaining(x, y); if (containingHandle != null) { handleOverIndex = handleBounds.indexOf(containingHandle, true); FocusManager.resetFocus(getStage()); draggingPointer = pointer; lastPoint.set(x, y); handlePosition.set(containingHandle.x, containingHandle.y); return true; } return false; }
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (!super.touchDown(event, x, y, pointer, button)) return false; if (pointer == 0 && button != 0) return false; if (disabled) return true; Stage stage = getStage(); FocusManager.switchFocus(stage, VisTextField.this); setCursorPosition(x, y); selectionStart = cursor; if (stage != null) stage.setKeyboardFocus(VisTextField.this); if (readOnly == false) keyboard.show(true); hasSelection = true; return true; }
@Override public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { // TODO potential bug with libgdx scene2d? // fixes issue when split bar could be still dragged even when // touchable is set to childrenOnly, probably scene2d issue if (isTouchable() == false) return false; if (draggingPointer != -1) return false; if (pointer == 0 && button != 0) return false; if (handleBounds.contains(x, y)) { FocusManager.resetFocus(getStage()); draggingPointer = pointer; lastPoint.set(x, y); handlePosition.set(handleBounds.x, handleBounds.y); return true; } return false; }