本文整理汇总了Java中org.apache.wicket.markup.html.form.RequiredTextField.setLabel方法的典型用法代码示例。如果您正苦于以下问题:Java RequiredTextField.setLabel方法的具体用法?Java RequiredTextField.setLabel怎么用?Java RequiredTextField.setLabel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.wicket.markup.html.form.RequiredTextField
的用法示例。
在下文中一共展示了RequiredTextField.setLabel方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initComponents
import org.apache.wicket.markup.html.form.RequiredTextField; //导入方法依赖的package包/类
private void initComponents() {
getServiceForm().add(new CacheActivatedImage("logicalOnlineStorageServicePanelIcon",new ResourceModel("onlineStorage-icon").getObject()));
// Online help link
String completeHelpUrl = "";
try {
completeHelpUrl = new StringResourceModel("portal.designer.logical.service.online_manual.baseUrl", null).getString()
+ new StringResourceModel("portal.designer.logical.service.online_manual." + getLogicalModelType(), null).getString();
} catch (Exception e) {
//do nothing
}
ExternalLink onlineHelpLink = new ExternalLink("onlineHelpLink", completeHelpUrl);
getServiceForm().add(onlineHelpLink);
if (completeHelpUrl.isEmpty()) {
onlineHelpLink.setVisible(false);
}
// FUNCTIONNAL PARAMETERS
RequiredTextField<String> label = new RequiredTextField<String>("label");
label.setLabel(new StringResourceModel("portal.designer.service.storage.label",null));
label.add(new PropertyValidator<>());
getServiceForm().add(label);
TextField<String> serviceName = new TextField<String>("serviceName");
serviceName.setLabel(new StringResourceModel("portal.designer.service.storage.name", null));
serviceName.add(new PropertyValidator<>());
getServiceForm().add(serviceName);
TextField storageCapacityMb = new TextField("storageCapacityMb");
storageCapacityMb.setLabel(new StringResourceModel("portal.designer.service.storage.storageCapacityMb",null));
storageCapacityMb.add(new AttributeModifier("class","small"));
storageCapacityMb.add(new PropertyValidator<>());
getServiceForm().add(storageCapacityMb);
}
示例2: initComponents
import org.apache.wicket.markup.html.form.RequiredTextField; //导入方法依赖的package包/类
private void initComponents() {
getServiceForm().add(new CacheActivatedImage("logicalRelationnalDatabasePanelIcon",new ResourceModel("onlinedatabase.icon").getObject()));
// Online help link
String completeHelpUrl = "";
try {
completeHelpUrl = new StringResourceModel("portal.designer.logical.service.online_manual.baseUrl", null).getString()
+ new StringResourceModel("portal.designer.logical.service.online_manual.relationaldatabase", null).getString();
} catch (Exception e) {
//do nothing
}
ExternalLink onlineHelpLink = new ExternalLink("onlineHelpLink", completeHelpUrl);
getServiceForm().add(onlineHelpLink);
if (completeHelpUrl.isEmpty()) {
onlineHelpLink.setVisible(false);
}
// FUNCTIONNAL PARAMETERS
final RequiredTextField<String> label = new RequiredTextField<String>("label");
label.setLabel(new StringResourceModel("portal.designer.service.reldb.label",null));
label.add(new PropertyValidator<>());
getServiceForm().add(label);
TextField<String> serviceName = new TextField<String>("serviceName");
serviceName.setLabel(new StringResourceModel("portal.designer.service.reldb.serviceName",null));
serviceName.add(new PropertyValidator<>());
getServiceForm().add(serviceName);
DropDownChoice<LogicalRelationalServiceSqlDialectEnum> sqlVersion = new DropDownChoice<LogicalRelationalServiceSqlDialectEnum>("sqlVersion", Arrays.asList(LogicalRelationalServiceSqlDialectEnum.values()));
sqlVersion.setLabel(new StringResourceModel("portal.designer.service.reldb.sqlVersion",null));
sqlVersion.add(new PropertyValidator<>());
getServiceForm().add(sqlVersion);
// SLO
TextField capacityMo = new TextField("capacityMo");
capacityMo.setLabel(new StringResourceModel("portal.designer.service.reldb.capacityMo",null));
capacityMo.add(new AttributeModifier("class","small"));
capacityMo.add(new PropertyValidator<>());
getServiceForm().add(capacityMo);
}
示例3: initComponents
import org.apache.wicket.markup.html.form.RequiredTextField; //导入方法依赖的package包/类
private void initComponents() {
getServiceForm().add(new CacheActivatedImage("logicalRabbitMQPanelIcon",new ResourceModel("rabbitmq.icon").getObject()));
// Online help link
String completeHelpUrl = "";
try {
completeHelpUrl = new StringResourceModel("portal.designer.logical.service.online_manual.baseUrl", null).getString()
+ new StringResourceModel("portal.designer.logical.service.online_manual." + getLogicalModelType(), null).getString();
} catch (Exception e) {
//do nothing
}
ExternalLink onlineHelpLink = new ExternalLink("onlineHelpLink", completeHelpUrl);
getServiceForm().add(onlineHelpLink);
if (completeHelpUrl.isEmpty()) {
onlineHelpLink.setVisible(false);
}
// FUNCTIONNAL PARAMETERS
RequiredTextField<String> serviceLabel = new RequiredTextField<String>("label");
serviceLabel.setLabel(new StringResourceModel("portal.designer.service.rabbitmq.service.label",null));
serviceLabel.add(new PropertyValidator<>());
getServiceForm().add(serviceLabel);
// Cloudfoundry rabbitMQ service name
RequiredTextField<String> serviceName = new RequiredTextField<String>("serviceName");
//add help tooltip
serviceName.add(new AttributeModifier("title", new StringResourceModel("portal.designer.service.rabbitmq.service.name.help",null)));
serviceName.setLabel(new StringResourceModel("portal.designer.service.rabbitmq.service.name",null));
serviceName.add(new PropertyValidator<>());
getServiceForm().add(serviceName);
}
示例4: ScheduleNameStep
import org.apache.wicket.markup.html.form.RequiredTextField; //导入方法依赖的package包/类
public ScheduleNameStep() {
super();
RequiredTextField<String> textField = new RequiredTextField<String>("schedulerJob.name");
textField.setLabel(new Model<String>(getString("name")));
textField.add(new JcrNameValidator());
add(textField);
add(new DuplicationEntityValidator(textField, StorageConstants.SCHEDULER_ROOT));
}
示例5: initComponent
import org.apache.wicket.markup.html.form.RequiredTextField; //导入方法依赖的package包/类
private void initComponent() {
getServiceForm().add(new CacheActivatedImage("logicalSoapConsummerPanelIcon",new ResourceModel("webserviceconsumer.icon").getObject()));
// Online help link
String completeHelpUrl = "";
try {
completeHelpUrl = new StringResourceModel("portal.designer.logical.service.online_manual.baseUrl", null).getString()
+ new StringResourceModel("portal.designer.logical.service.online_manual." + getLogicalModelType(), null).getString();
} catch (Exception e) {
//do nothing
}
ExternalLink onlineHelpLink = new ExternalLink("onlineHelpLink", completeHelpUrl);
getServiceForm().add(onlineHelpLink);
if (completeHelpUrl.isEmpty()) {
onlineHelpLink.setVisible(false);
}
// FUNCTIONNAL PARAMETERS
RequiredTextField<String> label = new RequiredTextField<String>("label");
label.setLabel(new StringResourceModel("portal.designer.service.wsc_soap.label",null));
label.add(new PropertyValidator<>());
getServiceForm().add(label);
TextField<String> jndiPrefix = new TextField<String>("jndiPrefix");
jndiPrefix.setLabel(new StringResourceModel("portal.designer.service.wsc_soap.jndiPrefix",null));
jndiPrefix.add(new PropertyValidator<>());
getServiceForm().add(jndiPrefix);
DropDownChoice<LogicalSoapConsumer.SoapServiceDomainEnum> domain = new DropDownChoice<LogicalSoapConsumer.SoapServiceDomainEnum>("wsDomain", Arrays.asList(LogicalSoapConsumer.SoapServiceDomainEnum.values()));
domain.setLabel(new StringResourceModel("portal.designer.service.wsc_soap.wsdomain",null));
domain.add(new PropertyValidator<>());
getServiceForm().add(domain);
TextField<String> serviceProviderName = new TextField<String>("serviceProviderName");
serviceProviderName.setLabel(new StringResourceModel("portal.designer.service.wsc_soap.serviceProviderName",null));
serviceProviderName.add(new PropertyValidator<>());
getServiceForm().add(serviceProviderName);
TextField<String> serviceName = new TextField<String>("serviceName");
serviceName.setLabel(new StringResourceModel("portal.designer.service.wsc_soap.serviceName",null));
serviceName.add(new PropertyValidator<>());
getServiceForm().add(serviceName);
TextField serviceMinorVersion = new TextField("serviceMinorVersion");
serviceMinorVersion.setLabel(new StringResourceModel("portal.designer.service.wsc_soap.serviceMinorVersion",null));
serviceMinorVersion.add(new AttributeModifier("class","small"));
serviceMinorVersion.add(new PropertyValidator<>());
getServiceForm().add(serviceMinorVersion);
TextField serviceMajorVersion = new TextField("serviceMajorVersion");
serviceMajorVersion.setLabel(new StringResourceModel("portal.designer.service.wsc_soap.serviceMajorVersion",null));
serviceMajorVersion.add(new AttributeModifier("class","small"));
serviceMajorVersion.add(new PropertyValidator<>());
getServiceForm().add(serviceMajorVersion);
}
示例6: initComponents
import org.apache.wicket.markup.html.form.RequiredTextField; //导入方法依赖的package包/类
private void initComponents() {
getServiceForm().add(new CacheActivatedImage("logicalWebGuiPanelIcon",new ResourceModel("webui.icon").getObject()));
// Online help link
String completeHelpUrl = "";
try {
completeHelpUrl = new StringResourceModel("portal.designer.logical.service.online_manual.baseUrl", null).getString()
+ new StringResourceModel("portal.designer.logical.service.online_manual.webgui", null).getString();
} catch (Exception e) {
//do nothing
}
ExternalLink onlineHelpLink = new ExternalLink("onlineHelpLink", completeHelpUrl);
getServiceForm().add(onlineHelpLink);
if (completeHelpUrl.isEmpty()) {
onlineHelpLink.setVisible(false);
}
// FUNCTIONNAL PARAMETERS
// Service label
RequiredTextField<String> label = new RequiredTextField<String>("label");
label.setLabel(new StringResourceModel("portal.designer.service.gui.label",null));
label.add(new PropertyValidator<>());
getServiceForm().add(label);
// Service context root
RequiredTextField<String> contextRoot = new RequiredTextField<String>("contextRoot.value");
contextRoot.setLabel(new StringResourceModel("portal.designer.service.gui.contextroot",null));
contextRoot.add(new PropertyValidator<>());
getServiceForm().add(contextRoot);
// Service stateful state
CheckBox statefulCb = new CheckBox("stateful");
statefulCb.setLabel(new StringResourceModel("portal.designer.service.gui.stateful",null));
statefulCb.add(new PropertyValidator<>());
getServiceForm().add(statefulCb);
// SLO
// Service secure state
CheckBox secureCb = new CheckBox("secure");
// secureCb.setEnabled(false);
secureCb.setLabel(new StringResourceModel("portal.designer.service.gui.secure",null));
secureCb.add(new AttributeAppender("title", new StringResourceModel("portal.designer.service.notAvailable", null), " "));
secureCb.add(new PropertyValidator<>());
getServiceForm().add(secureCb);
// Service max number of sessions
TextField maxNumberSessions = new TextField("maxNumberSessions");
maxNumberSessions.setLabel(new StringResourceModel("portal.designer.service.gui.maxNumberSessions",null));
maxNumberSessions.add(new AttributeModifier("class", "small"));
maxNumberSessions.add(new PropertyValidator<>());
getServiceForm().add(maxNumberSessions);
// Service max request per seconds
final TextField maxReqPerSeconds = new TextField("maxReqPerSeconds");
maxReqPerSeconds.setLabel(new StringResourceModel("portal.designer.service.gui.maxReqPerSeconds",null));
maxReqPerSeconds.add(new AttributeAppender("title", new StringResourceModel("portal.designer.service.notAvailable", null), " "));
maxReqPerSeconds.add(new PropertyValidator<>());
getServiceForm().add(maxReqPerSeconds);
}
示例7: initComponents
import org.apache.wicket.markup.html.form.RequiredTextField; //导入方法依赖的package包/类
private void initComponents() {
getServiceForm().add(new CacheActivatedImage("logicalconfig-icon",new ResourceModel("cfconfigservice.icon").getObject()));
// Online help link
String completeHelpUrl = "";
try {
completeHelpUrl = new StringResourceModel("portal.designer.logical.service.online_manual.baseUrl", null).getString()
+ new StringResourceModel("portal.designer.logical.service.online_manual." + getLogicalModelType(), null).getString();
} catch (Exception e) {
//do nothing
}
ExternalLink onlineHelpLink = new ExternalLink("onlineHelpLink", completeHelpUrl);
ExternalLink onlineHelpLinkOverride = new ExternalLink("onlineHelpLinkOverride", completeHelpUrl);
if (completeHelpUrl.isEmpty()) {
onlineHelpLink.setVisible(false);
onlineHelpLinkOverride.setVisible(false);
}
// Creates 2 blocks only for good displaying : Read more... juste after description (not possible with span wicket:id=descriptionLabel).
WebMarkupContainer descriptionBlock = new WebMarkupContainer("descriptionBlock");
descriptionBlock.add(onlineHelpLink);
getServiceForm().add(descriptionBlock);
WebMarkupContainer overrideDescriptionBlock = new WebMarkupContainer("overrideDescriptionBlock");
overrideDescriptionBlock.add(onlineHelpLinkOverride);
getServiceForm().add(overrideDescriptionBlock);
if (configOverride) {
descriptionBlock.setVisible(false);
} else {
overrideDescriptionBlock.setVisible(false);
}
// FUNCTIONNAL PARAMETERS
RequiredTextField<String> label = new RequiredTextField<>("label");
label.setLabel(new StringResourceModel("portal.designer.service.config.label",null));
label.add(new PropertyValidator<>());
getServiceForm().add(label);
TextField<String> keyPrefix = new TextField<>("keyPrefix", String.class);
keyPrefix.setConvertEmptyInputStringToNull(false);
keyPrefix.setLabel(new StringResourceModel("portal.designer.service.config.keyPrefix", null));
keyPrefix.add(new PropertyValidator<>());
getServiceForm().add(keyPrefix);
configSetContent = new CodeMirrorTextArea<>("configSetContent", readOnly && !configOverride);
configSetContent.setLabel(new StringResourceModel("portal.designer.service.config.configSetContent", null));
configSetContent.add(new PropertyValidator<>());
getServiceForm().add(configSetContent);
configSetContent.add(new ConfigDuplicateKeysValidator());
configSetContent.add(new ConfigMaxSizeValidator());
configSetContent.add(new ConfigMaxNumberKeysValidator());
configSetContent.add(new InvalidCharsetValidator());
}
示例8: LogicalQueueReceiveServicePanel
import org.apache.wicket.markup.html.form.RequiredTextField; //导入方法依赖的package包/类
public LogicalQueueReceiveServicePanel(String id, IModel<LogicalQueueReceiveService> model, Page parentPage,
boolean isNew, boolean readOnly, boolean configOverride) {
super(id, model, parentPage, isNew, readOnly, configOverride);
getServiceForm().add(new CacheActivatedImage("logicalqueuereceiveServicePanelIcon",new ResourceModel("queuereceive.icon").getObject()));
// Online help link
String completeHelpUrl = "";
try {
completeHelpUrl = new StringResourceModel("portal.designer.logical.service.online_manual.baseUrl", null).getString()
+ new StringResourceModel("portal.designer.logical.service.online_manual." + getLogicalModelType(), null).getString();
} catch (Exception e) {
//do nothing
}
ExternalLink onlineHelpLink = new ExternalLink("onlineHelpLink", completeHelpUrl);
getServiceForm().add(onlineHelpLink);
if (completeHelpUrl.isEmpty()) {
onlineHelpLink.setVisible(false);
}
// FUNCTIONNAL PARAMETERS
RequiredTextField<String> label = new RequiredTextField<String>("label");
label.setLabel(new StringResourceModel("portal.designer.service.queue_receive.label",null));
label.add(new PropertyValidator<>());
getServiceForm().add(label);
TextField<String> serviceName = new TextField<String>("serviceName");
serviceName.setLabel(new StringResourceModel("portal.designer.service.queue_receive.serviceName",null));
serviceName.add(new PropertyValidator<>());
getServiceForm().add(serviceName);
TextField serviceVersion = new TextField("serviceVersion");
serviceVersion.setLabel(new StringResourceModel("portal.designer.service.queue_receive.serviceVersion",null));
serviceVersion.add(new PropertyValidator<>());
getServiceForm().add(serviceVersion);
TextField<String> jndiQueueName = new TextField<String>("jndiQueueName");
jndiQueueName.setLabel(new StringResourceModel("portal.designer.service.queue_receive.jndiQueueName",null));
jndiQueueName.add(new AttributeAppender("title", new StringResourceModel("portal.designer.service.queue_receive.preferredJNDI", null), " "));
jndiQueueName.add(new PropertyValidator<>());
getServiceForm().add(jndiQueueName);
DropDownChoice<Long> msgMaxSizeKB = new DropDownChoice<Long>("msgMaxSizeKB", Arrays.asList(maxMsgSizeList));
msgMaxSizeKB.add(defaultDropDownUpdateBehavior());
getServiceForm().add(msgMaxSizeKB);
msgMaxSizeKB.setLabel(new StringResourceModel("portal.designer.service.queue_receive.msgMaxSizeKB",null));
msgMaxSizeKB.add(new PropertyValidator<>());
DropDownChoice<Long> maxNbMsgPerDay = new DropDownChoice<Long>("maxNbMsgPerDay", Arrays.asList(maxNbMsgPerDayList));
maxNbMsgPerDay.add(defaultDropDownUpdateBehavior());
getServiceForm().add(maxNbMsgPerDay);
maxNbMsgPerDay.setLabel(new StringResourceModel("portal.designer.service.queue_receive.maxNbMsgPerDay",null));
maxNbMsgPerDay.add(new PropertyValidator<>());
DropDownChoice<Long> nbRetentionDay = new DropDownChoice<Long>("nbRetentionDay", Arrays.asList(nbRetentionDayList));
nbRetentionDay.add(defaultDropDownUpdateBehavior());
getServiceForm().add(nbRetentionDay);
nbRetentionDay.setLabel(new StringResourceModel("portal.designer.service.queue_receive.nbRetentionDay",null));
nbRetentionDay.add(new PropertyValidator<>());
}