本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
}
示例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());
}