@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) { FocusManager.switchFocus(getChooserStage(), FileItem.this); getChooserStage().setKeyboardFocus(FileItem.this); return true; }
@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 boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (isDisabled() == false) FocusManager.switchFocus(getStage(), VisImageButton.this); return false; } });
@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 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) { if (isDisabled() == false) FocusManager.switchFocus(getStage(), VisImageTextButton.this); 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 (!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; }
/** Focuses this field, field must be added to stage before this method can be called */ public void focusField () { if (disabled) return; Stage stage = getStage(); FocusManager.switchFocus(stage, VisTextField.this); setCursorPosition(0); selectionStart = 0; //make sure textOffset was updated, prevent issue when there was long text selected and it was changed to short text //and field was focused. Without it textOffset would stay at max value and only one last letter will be visible in field calculateOffsets(); if (stage != null) stage.setKeyboardFocus(VisTextField.this); keyboard.show(true); hasSelection = true; }
@Override public void onProcessingFinished() { btnClose.setDisabled(false); btnClose.setColor(Color.WHITE); FocusManager.switchFocus(stage, btnClose); window.closeOnEscape(); if (!errors && cbAutoClose.isChecked()) { window.hide(); showReopenLastDialogNotification(); } // If there is only one pack, show log on error if (errors && adapter.size() == 1) { adapter.getView(adapter.get(0)).showLogWindow(); } // Indicate total result by changing progress bar color { ProgressBar.ProgressBarStyle style = new ProgressBar.ProgressBarStyle(progressBar.getStyle()); Drawable fill = errors ? VisUI.getSkin().getDrawable("progressBarErr") : VisUI.getSkin().getDrawable("progressBarSucc"); style.knob = fill; style.knobBefore = fill; progressBar.setStyle(style); } }