當前位置: 首頁>>代碼示例>>Java>>正文


Java TextField.setOutputMarkupId方法代碼示例

本文整理匯總了Java中org.apache.wicket.markup.html.form.TextField.setOutputMarkupId方法的典型用法代碼示例。如果您正苦於以下問題:Java TextField.setOutputMarkupId方法的具體用法?Java TextField.setOutputMarkupId怎麽用?Java TextField.setOutputMarkupId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.wicket.markup.html.form.TextField的用法示例。


在下文中一共展示了TextField.setOutputMarkupId方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initLayout

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
private void initLayout() {
    final TextField input = initTextField();

    input.add(new AjaxFormComponentUpdatingBehavior("blur") {

        @Override
        protected void onUpdate(AjaxRequestTarget target) {
            //nothing to do, just update model data
        }
    });
    input.add(new Behavior() {

        @Override
        public void bind(Component component) {
            super.bind(component);

            component.add(AttributeModifier.replace("onkeydown",
                    Model.of("if(event.keyCode == 13) {event.preventDefault();}")));
        }
    });
    input.setOutputMarkupId(true);
    add(input);
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:24,代碼來源:TextPopupPanel.java

示例2: buildEventTypeAliasInput

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
private void buildEventTypeAliasInput() {
	final TextField<String> eventTypeAliasInput = new TextField<String>("eventTypeAliasInput", new PropertyModel<String>(this, "alias"));
	eventTypeAliasInput.setOutputMarkupId(true);

	final OnChangeAjaxBehavior onChangeAjaxBehavior = new OnChangeAjaxBehavior() {
		private static final long serialVersionUID = -1427433442511094442L;

		@Override
		protected void onUpdate(final AjaxRequestTarget target) {
			// TODO: make sure that alias does not already exist somewhere
			EventTypeAliasPanel.this.element.setAlias(EventTypeAliasPanel.this.alias);
			target.add(EventTypeAliasPanel.this.panel.getAttributeTreePanel().getAttributeTreeTable());
		}
	};
	eventTypeAliasInput.add(onChangeAjaxBehavior);

	this.layoutForm.add(eventTypeAliasInput);
}
 
開發者ID:bptlab,項目名稱:Unicorn,代碼行數:19,代碼來源:EventTypeAliasPanel.java

示例3: addCacheFields

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
private void addCacheFields() {
    WebMarkupContainer cacheBorder = new WebMarkupContainer("cacheBorder");
    cacheBorder.add(new TitledBorderBehavior("fieldset-border", "Cache"));
    add(cacheBorder);

    // unusedArtifactsCleanupPeriodHours
    final TextField<Integer> unusedCleanupTextField = new TextField<>("unusedArtifactsCleanupPeriodHours",
            Integer.class);
    unusedCleanupTextField.add(new MinimumValidator<>(0)).setRequired(true);
    unusedCleanupTextField.setOutputMarkupId(true);
    cacheBorder.add(unusedCleanupTextField);
    cacheBorder.add(new SchemaHelpBubble("unusedArtifactsCleanupPeriodHours.help"));

    addDurationField(cacheBorder, "retrievalCachePeriodSecs");
    addDurationField(cacheBorder, "assumedOfflinePeriodSecs");
    addDurationField(cacheBorder, "missedRetrievalCachePeriodSecs");
}
 
開發者ID:alancnet,項目名稱:artifactory,代碼行數:18,代碼來源:HttpRepoAdvancedPanel.java

示例4: addGroupDetailFields

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
private void addGroupDetailFields()
{
    add( new Label( "groupAssignmentsLabel", "Group Detail" ) );
    TextField name = new TextField( "name" );
    add( name );
    name.setRequired( false );
    TextField protocol = new TextField( "protocol" );
    add( protocol );
    TextField description = new TextField( "description" );
    description.setRequired( false );
    add( description );
    protocol.setRequired( true );
    memberPropsCB = new ComboBox<>( "memberProps", new PropertyModel<String>( this,
        "memberPropsSelection" ), new ArrayList<String>() );
    memberPropsCB.setOutputMarkupId( true );
    add( memberPropsCB );
    memberAssignTF = new TextField( "memberAssign", new PropertyModel( this, "memberAssign" ) );
    memberAssignTF.setOutputMarkupId( true );
    add( memberAssignTF );
    addUserSearchModal();
    createDataTable( null );
}
 
開發者ID:apache,項目名稱:directory-fortress-commander,代碼行數:23,代碼來源:GroupDetailPanel.java

示例5: initLayout

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
public void initLayout() {
	// final Label question = new Label (F_QUESTION, mod.getPwdQuestion());
	final Label question = new Label(F_QUESTION, new PropertyModel<PasswordQuestionsDto>(mod,
			PasswordQuestionsDto.F_MY_QUESTIONS__QUESTIONITSELF));
	question.setOutputMarkupId(true);
	add(question);

	final TextField<String> answer = new TextField<String>(F_ANSWER, new PropertyModel(mod,
			SecurityQuestionAnswerDTO.F_PASSWORD_QUESTION_ANSWER));
	answer.setRequired(true);
	answer.setOutputMarkupId(true);
	add(answer);

}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:15,代碼來源:MyPasswordQuestionsPanel.java

示例6: addCategoryTextField

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
private void addCategoryTextField() {
	final TextField<String> categoryTextField = new TextField<String>("categoryTextField", new Model<String>());
	categoryTextField.setOutputMarkupId(true);
	categoryTextField.add(new AjaxFormComponentUpdatingBehavior("onchange") {
		private static final long serialVersionUID = 1L;

		@Override
		protected void onUpdate(final AjaxRequestTarget target) {
			category = categoryTextField.getModelObject();
		}
	});
	layoutForm.add(categoryTextField);
}
 
開發者ID:bptlab,項目名稱:Unicorn,代碼行數:14,代碼來源:UploadPanel.java

示例7: addNameTextField

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
private void addNameTextField() {
	final TextField<String> nameTextField = new TextField<String>("nameTextField", new Model<String>());
	nameTextField.setOutputMarkupId(true);
	nameTextField.add(new AjaxFormComponentUpdatingBehavior("onchange") {
		private static final long serialVersionUID = 1L;

		@Override
		protected void onUpdate(final AjaxRequestTarget target) {
			name = nameTextField.getModelObject();
		}
	});
	layoutForm.add(nameTextField);
}
 
開發者ID:bptlab,項目名稱:Unicorn,代碼行數:14,代碼來源:UploadPanel.java

示例8: addResolverFields

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
private void addResolverFields(RepoType repoType) {
    add(new Label("resolverNameLabel", getResolverLabel(repoType)));
    TextField<String> resolverTextField =
            new TextField<>("resolverName", new PropertyModel<String>(this, "resolverName"));
    resolverTextField.setOutputMarkupId(true);
    add(resolverTextField);
    add(new HelpBubble("resolverName.help", new ResourceModel("resolverName.help")));
}
 
開發者ID:alancnet,項目名稱:artifactory,代碼行數:9,代碼來源:IvySettingsRepoSelectorPanel.java

示例9: addSearchComponents

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
@Override
protected void addSearchComponents(Form form) {
    searchControls = new ArchiveSearchControls();
    searchControls.setPath("*"); //default to any path
    getDataProvider().setGroupParam(new SortParam("searchResult.entryName", true));

    TextField pathText = new TextField("path", new PropertyModel<String>(searchControls, "path"));
    pathText.setOutputMarkupId(true);
    setPersistent(pathText);
    form.add(pathText);
    form.add(new HelpBubble("path.help", new ResourceModel("path.help")));

    TextField nameText = new TextField("name", new PropertyModel<String>(searchControls, "name"));
    nameText.setOutputMarkupId(true);
    setPersistent(nameText);
    form.add(nameText);
    form.add(new HelpBubble("name.help", new ResourceModel("name.help")));

    form.add(new StyledCheckbox("searchClassResourcesOnly",
            new PropertyModel<Boolean>(this, "searchClassResourcesOnly")));
    form.add(new HelpBubble("searchClassResourcesOnly.help", new ResourceModel("searchClassResourcesOnly.help")));

    form.add(new StyledCheckbox("excludeInnerClasses",
            new PropertyModel<Boolean>(this, "excludeInnerClasses")));
    form.add(new HelpBubble("excludeInnerClassesHelp", "Mark to exclude inner classes from the list of results."));

    //Group entry names which are similar but have different character cases
    getDataProvider().setGroupRenderer("searchResult.entry",
            new ChoiceRenderer<ActionableSearchResult<ArchiveSearchResult>>("searchResult.entryName",
                    "searchResult.lowerCaseEntryName"));
}
 
開發者ID:alancnet,項目名稱:artifactory,代碼行數:32,代碼來源:ArchiveSearchPanel.java

示例10: addSearchComponents

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
@Override
protected void addSearchComponents(Form form) {
    add(new CssClass("gavc-panel"));
    searchControls = new GavcSearchControls();

    TextField groupIdField = new TextField<>("groupIdField",
            new PropertyModel<String>(searchControls, "groupId"));
    groupIdField.setOutputMarkupId(true);
    setPersistent(groupIdField);
    form.add(groupIdField);
    form.add(new HelpBubble("groupIdHelp", "The Group ID of the artifact. * and ? are accepted."));

    TextField artifactIdField = new TextField<>("artifactIdField",
            new PropertyModel<String>(searchControls, "artifactId"));
    artifactIdField.setOutputMarkupId(true);
    setPersistent(artifactIdField);
    form.add(artifactIdField);
    form.add(new HelpBubble("artifactIdHelp", "The Artifact ID of the artifact. * and ? are accepted."));

    TextField versionField = new TextField<>("versionField",
            new PropertyModel<String>(searchControls, "version"));
    setPersistent(versionField);
    versionField.setOutputMarkupId(true);
    form.add(versionField);
    form.add(new HelpBubble("versionHelp", "The version of the artifact. * and ? are accepted."));

    TextField classifierField = new TextField<>("classifierField",
            new PropertyModel<String>(searchControls, "classifier"));
    classifierField.setOutputMarkupId(true);
    setPersistent(classifierField);
    form.add(classifierField);
    form.add(new HelpBubble("classifierHelp", "The classifier of the artifact. * and ? are accepted."));
}
 
開發者ID:alancnet,項目名稱:artifactory,代碼行數:34,代碼來源:GavcSearchPanel.java

示例11: addSearchControl

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
private void addSearchControl(Form form) {
    TextField<String> searchControl = new TextField<>("query",
            new PropertyModel<String>(searchControls, "query"));
    searchControl.setOutputMarkupId(true);
    form.add(searchControl);

}
 
開發者ID:alancnet,項目名稱:artifactory,代碼行數:8,代碼來源:BintraySearchPanel.java

示例12: addSearchComponents

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
@Override
protected void addSearchComponents(Form form) {
    searchControls = new ArtifactSearchControls();

    TextField searchControl = new TextField<>("query", new PropertyModel<String>(searchControls, "query"));
    searchControl.setOutputMarkupId(true);
    form.add(searchControl);

    form.add(new HelpBubble("searchHelp", "Artifact name. * and ? are accepted."));
}
 
開發者ID:alancnet,項目名稱:artifactory,代碼行數:11,代碼來源:ArtifactSearchPanel.java

示例13: addSearchComponents

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
@Override
protected void addSearchComponents(Form form) {
    searchControls = new ChecksumSearchControls();

    TextField searchControl = new TextField<>("query", new PropertyModel<String>(this, "query"));
    searchControl.setOutputMarkupId(true);
    form.add(searchControl);
    form.add(new HelpBubble("searchHelp", "Artifact SHA-1 or MD5 checksum."));
}
 
開發者ID:alancnet,項目名稱:artifactory,代碼行數:10,代碼來源:ChecksumSearchPanel.java

示例14: CustomizingPanel

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
public CustomizingPanel(String id, IModel model) {
    super(id, model);
    add(new CssClass("general-settings-panel"));

    fileUploadLogo = new LogoFileUploadForm("logoPath", this);
    add(fileUploadLogo);

    TextField<String> urlLogo = new TextField<>("logo");
    urlLogo.add(new UriValidator("http", "https"));
    urlLogo.add(new UrlChangedBehavior());
    urlLogo.setOutputMarkupId(true);
    fileUploadLogo.add(urlLogo);

    TextField<String> footer = new TextField<>("footer");

    fileUploadLogo.add(new ResetLink("reset", fileUploadLogo));
    footer.add(StringValidator.maximumLength(MAX_FOOTER_LENGTH));
    footer.add(new AttributeModifier("maxlength", MAX_FOOTER_LENGTH));
    footer.setOutputMarkupId(true);
    add(footer);

    fileUploadLogo.add(new SchemaHelpBubble(("logo.help")));
    fileUploadLogo.add(new HelpBubble("logoFile.help", "Upload a logo image file."));
    add(new SchemaHelpBubble("footer.help"));

    fileUploadLogo.add(new PreviewLogoPanel("logoPreview"));
}
 
開發者ID:alancnet,項目名稱:artifactory,代碼行數:28,代碼來源:CustomizingPanel.java

示例15: MoveAndCopyPathPanel

import org.apache.wicket.markup.html.form.TextField; //導入方法依賴的package包/類
public MoveAndCopyPathPanel(String id, IModel targetRepoModel, final MoveAndCopyBasePanel.OperationType opType) {
    super(id);
    this.opType = opType;
    init();
    add(new CssClass("advanced-search-panel"));

    TextField targetPathField = new TextField<>("targetPath", targetRepoModel);
    targetPathField.setOutputMarkupId(true);
    setPersistent(targetPathField);
    targetPathField.setEnabled(true);
    add(targetPathField);

    setVisible(false);
}
 
開發者ID:alancnet,項目名稱:artifactory,代碼行數:15,代碼來源:MoveAndCopyPathPanel.java


注:本文中的org.apache.wicket.markup.html.form.TextField.setOutputMarkupId方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。