当前位置: 首页>>代码示例>>Java>>正文


Java TextArea.setEnabled方法代码示例

本文整理汇总了Java中org.apache.wicket.markup.html.form.TextArea.setEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java TextArea.setEnabled方法的具体用法?Java TextArea.setEnabled怎么用?Java TextArea.setEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.wicket.markup.html.form.TextArea的用法示例。


在下文中一共展示了TextArea.setEnabled方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addExcludesPatternFields

import org.apache.wicket.markup.html.form.TextArea; //导入方法依赖的package包/类
private void addExcludesPatternFields(StringResourceModel helpMessage,
        final List<CommonPathPattern> includesExcludesSuggestions) {
    TextArea excludesTa = new TextArea("excludesPattern");
    excludesTa.setEnabled(isSystemAdmin());
    excludesTa.setOutputMarkupId(true);
    add(excludesTa);

    add(new HelpBubble("excludesHelp", helpMessage));

    //Excludes suggestions
    Model<CommonPathPattern> exclude = new Model<>();
    DropDownChoice<CommonPathPattern> excludesSuggest = new DropDownChoice<>(
            "excludesSuggest", exclude, includesExcludesSuggestions);
    if (!includesExcludesSuggestions.isEmpty()) {
        excludesSuggest.setDefaultModelObject(includesExcludesSuggestions.get(0));
    }
    excludesSuggest.add(new UpdatePatternsBehavior(exclude, excludesTa));
    excludesSuggest.setEnabled(isSystemAdmin());
    add(excludesSuggest);
}
 
开发者ID:alancnet,项目名称:artifactory,代码行数:21,代码来源:RepositoriesTabPanel.java

示例2: initLayout

import org.apache.wicket.markup.html.form.TextArea; //导入方法依赖的package包/类
private void initLayout() {
	WebMarkupContainer objectTypeContainer = new WebMarkupContainer(ID_OBJECT_TYPE_CONTAINER);
	Label objectType = new Label(ID_OBJECT_TYPE, new AbstractReadOnlyModel<String>() {
		@Override
		public String getObject() {
			final String key = getModelObject().getObjectTypeKey();
			return key != null ? getString(key) : null;
		}
	});
	objectTypeContainer.add(objectType);
	add(objectTypeContainer);

	WebMarkupContainer objectQueryContainer = new WebMarkupContainer(ID_OBJECT_QUERY_CONTAINER);
	TextArea objectQuery = new TextArea<>(ID_OBJECT_QUERY, new PropertyModel<>(getModel(), QueryBasedHandlerDto.F_OBJECT_QUERY));
	objectQuery.setEnabled(false);
	objectQueryContainer.add(objectQuery);
	add(objectQueryContainer);
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:19,代码来源:QueryBasedHandlerPanel.java

示例3: addIncludesPatternFields

import org.apache.wicket.markup.html.form.TextArea; //导入方法依赖的package包/类
private void addIncludesPatternFields(StringResourceModel helpMessage,
        final List<CommonPathPattern> includesExcludesSuggestions) {
    TextArea includesTa = new TextArea("includesPattern");
    includesTa.setEnabled(isSystemAdmin());
    includesTa.setOutputMarkupId(true);
    add(includesTa);

    add(new HelpBubble("includesHelp", helpMessage));

    Model<CommonPathPattern> include = new Model<>();
    DropDownChoice<CommonPathPattern> includesSuggest = new DropDownChoice<>(
            "includesSuggest", include, includesExcludesSuggestions);
    if (!includesExcludesSuggestions.isEmpty()) {
        includesSuggest.setDefaultModelObject(includesExcludesSuggestions.get(0));
    }
    includesSuggest.add(new UpdatePatternsBehavior(include, includesTa));
    if (parent.isCreate()) {
        includesSuggest.setDefaultModelObject(CommonPathPattern.ANY);
    }
    includesSuggest.setEnabled(isSystemAdmin());
    add(includesSuggest);
}
 
开发者ID:alancnet,项目名称:artifactory,代码行数:23,代码来源:RepositoriesTabPanel.java

示例4: initLayout

import org.apache.wicket.markup.html.form.TextArea; //导入方法依赖的package包/类
private void initLayout() {
	WebMarkupContainer changeContainer = new WebMarkupContainer(ID_CHANGE_CONTAINER);
	TextArea change = new TextArea<>(ID_CHANGE, new PropertyModel<>(getModel(), ExecuteChangesHandlerDto.F_OBJECT_DELTA_XML));
	change.setEnabled(false);
	changeContainer.add(change);
	add(changeContainer);

	WebMarkupContainer optionsContainer = new WebMarkupContainer(ID_OPTIONS_CONTAINER);
	TextArea options = new TextArea<>(ID_OPTIONS, new PropertyModel<>(getModel(), ExecuteChangesHandlerDto.F_OPTIONS));
	options.setEnabled(false);
	optionsContainer.add(options);
	add(optionsContainer);
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:14,代码来源:ExecuteChangesHandlerPanel.java

示例5: initLayout

import org.apache.wicket.markup.html.form.TextArea; //导入方法依赖的package包/类
private void initLayout() {
	WebMarkupContainer scriptContainer = new WebMarkupContainer(ID_SCRIPT_CONTAINER);
	TextArea script = new TextArea<>(ID_SCRIPT, new PropertyModel<>(getModel(), ScriptExecutionHandlerDto.F_SCRIPT));
	script.setEnabled(false);
	scriptContainer.add(script);
	add(scriptContainer);
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:8,代码来源:ScriptExecutionHandlerPanel.java

示例6: NotificationTaskModalPage

import org.apache.wicket.markup.html.form.TextArea; //导入方法依赖的package包/类
public NotificationTaskModalPage(final TaskTO taskTO) {
    super(taskTO);

    final AjaxTextFieldPanel sender = new AjaxTextFieldPanel(
            "sender", getString("sender"),
            new PropertyModel<String>(taskTO, "sender"), false);
    sender.setEnabled(false);
    profile.add(sender);

    final ListMultipleChoice<String> recipients =
            new ListMultipleChoice<String>("recipients",
            new ArrayList<String>(((NotificationTaskTO) taskTO).
            getRecipients()));
    recipients.setMaxRows(5);
    recipients.setEnabled(false);
    profile.add(recipients);

    final AjaxTextFieldPanel subject = new AjaxTextFieldPanel(
            "subject", getString("subject"),
            new PropertyModel<String>(taskTO, "subject"), false);
    subject.setEnabled(false);
    profile.add(subject);

    final TextArea<String> textBody = new TextArea<String>("textBody",
            new PropertyModel<String>(taskTO, "textBody"));
    textBody.setEnabled(false);
    profile.add(textBody);

    final TextArea<String> htmlBody = new TextArea<String>("htmlBody",
            new PropertyModel<String>(taskTO, "htmlBody"));
    htmlBody.setEnabled(false);
    profile.add(htmlBody);

    final AjaxTextFieldPanel traceLevel = new AjaxTextFieldPanel(
            "traceLevel", getString("traceLevel"),
            new PropertyModel<String>(taskTO, "traceLevel"), false);
    traceLevel.setEnabled(false);
    profile.add(traceLevel);
}
 
开发者ID:ilgrosso,项目名称:oldSyncopeIdM,代码行数:40,代码来源:NotificationTaskModalPage.java

示例7: selectType

import org.apache.wicket.markup.html.form.TextArea; //导入方法依赖的package包/类
private void selectType(TextArea selectArea) {
    if (JasperParameterSource.SINGLE.equals(parameter.getType())) {
        parameter.setSelect("");
        selectArea.setEnabled(false);
    } else {
        selectArea.setEnabled(true);
    }
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:9,代码来源:ChangeJasperParameterPanel.java

示例8: onInitialize

import org.apache.wicket.markup.html.form.TextArea; //导入方法依赖的package包/类
/**
 * @see org.apache.wicket.Component#onInitialize()
 */
@Override
protected void onInitialize()
{
  super.onInitialize();

  if (model.isNew() == false) {
    isModified = isModelModified();
  }

  final FieldsetPanel fsTitle = gridBuilder.newFieldset(getString("plugins.poll.new.title"));
  final TextField<String> title = new TextField<String>(fsTitle.getTextFieldId(), new PropertyModel<String>(model.getPollDo(), "title"));
  title.setEnabled(this.model.isNew());
  fsTitle.add(title);

  final FieldsetPanel fsLocation = gridBuilder.newFieldset(getString("plugins.poll.new.location")).setLabelFor(this);
  final TextField<String> location = new TextField<String>(fsLocation.getTextFieldId(),
      new PropertyModel<String>(model.getPollDo(), "location"));
  location.setEnabled(this.model.isNew());
  fsLocation.add(location);

  final FieldsetPanel fsDescription = gridBuilder.newFieldset(getString("plugins.poll.new.description"));
  final TextArea<String> description = new TextArea<String>(fsDescription.getTextAreaId(), new PropertyModel<String>(this.model.getPollDo(),
      "description"));
  description.setEnabled(this.model.isNew());
  fsDescription.add(description);

  gridBuilder.newGridPanel();

  //    if (this.model.isNew() == true) {
  final FieldsetPanel fsUsers = gridBuilder.newFieldset(getString("plugins.poll.attendee.users"));

  //    if (model.isNew() == false && isModified == false) {
  createDisabledChoices(fsUsers, model.getPollAttendeeList(), true);
  //    } else {
  //      createDisabledChoices(fsUsers, model.getCalculatedAttendeeList(), true);
  //    }
  //    } else {
  //      createEnabledChoices();
  //    }

  final FieldsetPanel fsEMails = gridBuilder.newFieldset(getString("plugins.poll.attendee.emails"));
  //    if (model.isNew() == false && isModified == false) {
  createDisabledChoices(fsEMails, model.getPollAttendeeList(), false);
  //    } else {
  //      createDisabledChoices(fsEMails, model.getCalculatedAttendeeList(), false);
  //    }

  final FieldsetPanel fsEvents = gridBuilder.newFieldset(getString("plugins.poll.attendee.events"));
  createDisabledChoices(fsEvents, model.getAllEvents());
}
 
开发者ID:micromata,项目名称:projectforge-webapp,代码行数:54,代码来源:NewPollOverviewPage.java


注:本文中的org.apache.wicket.markup.html.form.TextArea.setEnabled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。