@Override protected void setBodyReadOnly(boolean readOnly) { ((SizedTextArea) body).getTextArea().setReadOnly(readOnly); }
private void checkLogLabel () { if (log == null) { ((GwtApplication)Gdx.app).log = log = new TextArea(); // It's possible that log functions are called // before the app is initialized. E.g. SoundManager can call log functions before the app is initialized. // Since graphics is null, we're getting errors. The log size will be updated later, in case graphics was null if (Gdx.graphics != null) { log.setSize(Gdx.graphics.getWidth() + "px", "200px"); } else { log.setSize("400px", "200px"); // Dummy value } log.setReadOnly(true); ((GwtApplication)Gdx.app).getRootPanel().add(log); } }
private void checkLogLabel () { if (log == null) { ((GwtApplication)Gdx.app).log = log = new TextArea(); // It's possible that log functions are called // before the app is initialized. E.g. SoundManager can call log functions before the app is initialized. // Since graphics is null, we're getting errors. The log size will be updated later, in case graphics was null if (Gdx.graphics != null) { log.setSize(Gdx.graphics.getWidth() + "px", "200px"); } else { log.setSize("400px", "200px"); // Dummy value } log.setReadOnly(true); ((GwtApplication)Gdx.app).getRootPanel().add(log); } }
/** * Set read only. */ public void setReadOnly() { saveButton.setVisible(false); activateButton.setVisible(false); deactivateButton.setVisible(false); description.getTextArea().setReadOnly(true); setBodyReadOnly(true); for (HandlerRegistration registration : registrations) { registration.removeHandler(); } registrations.clear(); }
bodyLabel.removeStyleName(REQUIRED); description.getTextArea().setReadOnly(true); setBodyReadOnly(true);
description.getTextArea().setReadOnly(false); setBodyReadOnly(false); if (hasLabel()) {
@Override public void setReadOnly(boolean readOnly) { input.setReadOnly(readOnly); }
@Override public void setReadOnly(boolean readOnly) { input.setReadOnly(readOnly); }
@Override public void setReadOnly(boolean readOnly) { input.setReadOnly(readOnly); }
@Inject protected RevisionListViewImpl( GitResources resources, GitLocalizationConstant locale, DateTimeFormatter dateTimeFormatter, org.eclipse.che.ide.Resources coreRes) { this.res = resources; this.locale = locale; this.dateTimeFormatter = dateTimeFormatter; this.ensureDebugId("git-compare-revision-window"); Widget widget = uiBinder.createAndBindUi(this); this.setTitle(locale.compareWithRevisionTitle()); this.setWidget(widget); description.setReadOnly(true); createRevisionsTable(coreRes); createButtons(); }
private void checkLogLabel () { if (log == null) { ((GwtApplication)Gdx.app).log = log = new TextArea(); // It's possible that log functions are called // before the app is initialized. E.g. SoundManager can call log functions before the app is initialized. // Since graphics is null, we're getting errors. The log size will be updated later, in case graphics was null if (Gdx.graphics != null) { log.setSize(Gdx.graphics.getWidth() + "px", "200px"); } else { log.setSize("400px", "200px"); // Dummy value } log.setReadOnly(true); ((GwtApplication)Gdx.app).getRootPanel().add(log); } }
@Inject protected HistoryViewImpl( GitResources resources, GitLocalizationConstant locale, DateTimeFormatter dateTimeFormatter, org.eclipse.che.ide.Resources coreRes) { this.res = resources; this.locale = locale; this.dateTimeFormatter = dateTimeFormatter; this.ensureDebugId("git-history-window"); Widget widget = uiBinder.createAndBindUi(this); this.setTitle(locale.historyTitle()); this.setWidget(widget); revisionsPanel.getElement().setTabIndex(-1); description.setReadOnly(true); createRevisionsTable(coreRes); createButtons(); }
@Inject public BuildDetailsViewImpl( HelpExtensionLocalizationConstant coreLocale, BuildDetailsLocalizationConstant locale) { this.ensureDebugId(WINDOW_DEBUG_ID); setTitle(locale.title()); setWidget(uiBinder.createAndBindUi(this)); buildDetails.getElement().setAttribute("id", BUILD_DETAILS_TEXT_AREA_ID); buildDetails.setReadOnly(true); addFooterButton(coreLocale.ok(), BUILD_DETAILS_OK_BUTTON_ID, event -> hide(), true); addFooterButton( locale.copyToClipboardButton(), BUILD_DETAILS_COPY_BUTTON_ID, event -> { if (!ClipboardUtils.copyElementContents(BUILD_DETAILS_TEXT_AREA_ID)) { Log.info( BuildDetailsViewImpl.class, "Failed to copy debug summary value to clipboard."); } }, false, ButtonAlignment.LEFT); }