本文整理了Java中org.apache.wicket.markup.html.basic.Label.setVisible()
方法的一些代码示例,展示了Label.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setVisible()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.basic.Label
类名称:Label
方法名:setVisible
暂无
代码示例来源:origin: org.geoserver.web/web-core
public void setLabelsVisibility(boolean visible) {
minXLabel.setVisible(visible);
minYLabel.setVisible(visible);
maxXLabel.setVisible(visible);
maxYLabel.setVisible(visible);
}
代码示例来源:origin: org.geoserver.web/gs-web-core
public void setLabelsVisibility(boolean visible) {
minXLabel.setVisible(visible);
minYLabel.setVisible(visible);
maxXLabel.setVisible(visible);
maxYLabel.setVisible(visible);
minZLabel.setVisible(visible && is3D());
maxZLabel.setVisible(visible && is3D());
}
代码示例来源:origin: com.norconex.commons/norconex-commons-wicket
protected WebComponent newNavigatorLabel(final String navigatorId,
final DataTable<?, ?> table) {
if (showNavigationLabel) {
return new NavigatorLabel(navigatorId, table);
}
Label label = new Label(navigatorId);
label.setVisible(false);
return label;
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-editor-frontend
protected Component createNrItemsLabel() {
if ((IEditor.Mode.EDIT == mode) && (getMaxItems() > 0)) {
final IModel propertyModel = new StringResourceModel("nrItemsLabel", this, new Model<AbstractFieldPlugin>(this));
return new Label("nrItemsLabel", propertyModel).setOutputMarkupId(true);
}
return new Label("nrItemsLabel").setVisible(false);
}
代码示例来源:origin: org.jabylon/rest.ui
public ControlGroup(final String id, final IModel<String> label, final IModel<String> help) {
super(id, Model.of(""));
this.label = new Label("label", label);
this.help = new Label("help", help);
this.extra = new Label("extra-label", "");
extra.setVisible(false);
this.feedbackLabel = new Label("feedback", Model.of(""));
addToBorder(this.label, this.help, this.feedbackLabel, this.extra);
}
代码示例来源:origin: org.geoserver.web/web-wms
private void updateLinksVisibility() {
List<LayerIdentifierInfo> list = identifiers.getModelObject();
boolean anyLink = list.size() > 0;
table.setVisible(anyLink);
noMetadata.setVisible(!anyLink);
}
代码示例来源:origin: org.geoserver.web/gs-web-core
private void updateLinksVisibility() {
boolean anyLink = metadataLinksModel.getObject().size() > 0;
table.setVisible(anyLink);
noMetadata.setVisible(!anyLink);
}
代码示例来源:origin: org.geoserver.web/gs-web-core
protected void onUpdate(AjaxRequestTarget target) {
refValueValidationMessage.setDefaultModelObject(null);
refValueValidationMessage.setVisible(false);
target.add(referenceValueContainer);
}
代码示例来源:origin: org.wicketstuff.foundation/wicket-foundation-core
public FoundationTopBarMenuContainer(String id, IModel<TopBarMenuLayout> menuLayoutModel,
IModel<String> menuTitleModel) {
super(id);
this.menuLayoutModel = menuLayoutModel;
Label menuTitle = new Label("menuTitle", menuTitleModel);
add(menuTitle);
TopBarMenuLayout layout = menuLayoutModel.getObject();
if (!layout.equals(TopBarMenuLayout.TITLE) && !layout.equals(TopBarMenuLayout.TITLE_AND_ICON)) {
menuTitle.setVisible(false);
}
}
代码示例来源:origin: org.geoserver.web/gs-web-core
private void updateLinksVisibility() {
ResourceInfo ri = (ResourceInfo) getDefaultModelObject();
boolean anyLink = ri.getDataLinks().size() > 0;
table.setVisible(anyLink);
noData.setVisible(!anyLink);
}
代码示例来源:origin: org.geoserver.web/web-core
@Override
protected void populateItem(ListItem<GeoServerHomePageContentProvider> item) {
GeoServerHomePageContentProvider provider = item.getModelObject();
Component extraContent = provider.getPageBodyComponent("contentList");
if(null == extraContent){
Label placeHolder = new Label("contentList");
placeHolder.setVisible(false);
extraContent = placeHolder;
}
item.add(extraContent);
}
};
代码示例来源:origin: org.geoserver.web/gs-web-core
@Override
protected void populateItem(ListItem<GeoServerHomePageContentProvider> item) {
GeoServerHomePageContentProvider provider = item.getModelObject();
Component extraContent = provider.getPageBodyComponent("contentList");
if (null == extraContent) {
Label placeHolder = new Label("contentList");
placeHolder.setVisible(false);
extraContent = placeHolder;
}
item.add(extraContent);
}
};
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
public AbstractWorkflowDialog(IModel<T> model, IModel message, IWorkflowInvoker invoker) {
super(model);
this.invoker = invoker;
Label notification = new Label("notification");
if (message != null) {
notification.setDefaultModel(message);
} else {
notification.setVisible(false);
}
add(notification);
notification.add(CssClass.append("notification"));
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
public WorkflowDialog(final IWorkflowInvoker invoker, final IModel<T> model,
final IModel<String> titleModel) {
super(model);
this.titleModel = titleModel;
this.invoker = invoker;
setCssClass("hippo-workflow-dialog");
notification = new Label("notification");
notification.add(CssClass.append("notification"));
// Hide notification label by default until a model is set by calling #setNotification
notification.setVisible(false);
add(notification);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-console-frontend
@Override
public void onClick(AjaxRequestTarget target) {
setContentIdentity(retrieveJackrabbitContentIdentity());
target.add(contentIdentityValueLabel.setVisible(true));
target.add(this.setVisible(false));
}
};
代码示例来源:origin: org.onehippo.cms7/hippo-addon-publication-workflow-frontend
@Override
protected void handleSubmit() {
setOkVisible(false);
setCancelLabel(new StringResourceModel("done-label", ConfirmDialog.this, null));
onOk();
affectedComponent.setDefaultModel(new Model(Integer.toString(processed)));
affectedComponent.setVisible(true);
AjaxRequestTarget.get().addComponent(this);
}
}
代码示例来源:origin: org.artifactory/artifactory-web-common
protected void populateItem(ListItem<T> item) {
item.add(new AttributeModifier("dndType", getDndValue(item)));
item.add(new CssClass("dojoDndItem"));
String displayValue = renderer.getDisplayValue(item.getModelObject()).toString();
item.add(new Label("value", displayValue));
String sortValue = getSortValue(item);
Label sortLabel = new Label("sortValue", sortValue);
sortLabel.setVisible(sortValue != null);
item.add(sortLabel);
}
代码示例来源:origin: org.geoserver.web/gs-web-core
@Override
protected void onError(AjaxRequestTarget target, RuntimeException e) {
super.onError(target, e);
if (referenceValue.hasErrorMessage()) {
refValueValidationMessage.setDefaultModelObject(
referenceValue.getFeedbackMessages().first());
refValueValidationMessage.setVisible(true);
}
target.add(referenceValueContainer);
}
});
代码示例来源:origin: theonedev/onedev
@Override
protected void onInitialize() {
super.onInitialize();
Link<?> link = newLink("link", tab.getMainPageClass());
link.add(new WebMarkupContainer("icon").add(AttributeAppender.append("class", tab.getIconClass())));
link.add(new Label("text", tab.getTitleModel()));
link.add(new Label("count", tab.getCount()).setVisible(tab.getCount()!=0));
add(link);
}
代码示例来源:origin: net.ontopia/ontopoly-editor
private void createFields(Form<Object> form) {
InstancePanel instancePanel = createInstancePanel("instancePanel");
if (instancePanel.isReadOnly()) setReadOnlyPage(true); // page is readonly if instance panel is
form.add(instancePanel);
// if topic is a topic type then display fields editor
Topic topic = getTopicModel().getTopic();
FieldsView fieldsView = getFieldsViewModel().getFieldsView();
if (fieldsView.isDefaultView() && topic.isTopicType() && isOntologyPage)
form.add(new FieldsEditor("fieldsEditor", new TopicTypeModel(new TopicType(topic.getTopicIF(), topic.getTopicMap())), isReadOnlyPage()));
else
form.add(new Label("fieldsEditor").setVisible(false));
}
内容来源于网络,如有侵权,请联系作者删除!