本文整理了Java中com.google.gwt.user.client.ui.Widget.setVisible()
方法的一些代码示例,展示了Widget.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Widget.setVisible()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Widget
类名称:Widget
方法名:setVisible
暂无
代码示例来源:origin: kaaproject/kaa
private void setWidgetVisible(Widget widget, Layer layer, boolean visible) {
layer.setVisible(visible);
/*
* Set the visibility of the widget. This is used by lazy panel to
* initialize the widget.
*/
widget.setVisible(visible);
}
代码示例来源:origin: kaaproject/kaa
@Override
public void setBackEnabled(boolean enabled) {
getBackButtonPanelWidget().setVisible(!create && enabled);
}
代码示例来源:origin: kaaproject/kaa
/**
* Instantiates a new BaseRecordViewImpl.
*/
public BaseRecordViewImpl(boolean create) {
super(create);
getSaveButtonWidget().setVisible(false);
getCancelButtonWidget().setVisible(false);
getBackButtonPanelWidget().setVisible(true);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Hide the old widget when the animation completes.
*/
private void hideOldWidget() {
// Issue 2510: Hiding the widget isn't necessary because we hide its
// wrapper, but its in here for legacy support.
oldWidget.setVisible(false);
oldWidget = null;
}
代码示例来源:origin: com.google.gwt/gwt-servlet
private void setWidgetVisible(Widget w, Layer layer, boolean visible) {
layer.setVisible(visible);
/*
* Set the visibility of the widget. This is used by lazy panel to
* initialize the widget.
*/
w.setVisible(visible);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Reset the dimensions of the widget when it is removed.
*/
private void resetChildWidget(Widget w) {
w.setSize("", "");
w.setVisible(true);
}
}
代码示例来源:origin: kaaproject/kaa
detailsView.getUserExternalId().setValue(entity.getUserExternalId());
for (Widget widget : detailsView.getUserInfoList()) {
widget.setVisible(true);
widget.setVisible(false);
代码示例来源:origin: com.google.gwt/gwt-servlet
private void setStackContentVisible(int index, boolean visible) {
Element tr = DOM.getChild(body, (index * 2) + 1);
UIObject.setVisible(tr, visible);
getWidget(index).setVisible(visible);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
protected void onStart() {
super.onStart();
if (opening) {
curPanel.contentWrapper.setVisible(true);
// Special treatment on the visible case to ensure LazyPanel works
curPanel.getContent().setVisible(true);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Shows or hides the given widget and its layer. This method explicitly
* calls {@link UIObject#setVisible(boolean)} on the child widget and ensures
* that its associated layer is shown/hidden.
*
* @param child
* @param visible
*/
public void setWidgetVisible(Widget child, boolean visible) {
assertIsChild(child);
getLayer(child).setVisible(visible);
child.setVisible(visible);
animate(0);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Open or close the content.
*
* @param panel the panel to open or close
* @param animate true to animate, false to open instantly
*/
public void setOpen(DisclosurePanel panel, boolean animate) {
// Immediately complete previous open
cancel();
// Open the new item
if (animate) {
curPanel = panel;
opening = panel.isOpen;
run(ANIMATION_DURATION);
} else {
panel.contentWrapper.setVisible(panel.isOpen);
if (panel.isOpen) {
// Special treatment on the visible case to ensure LazyPanel works
panel.getContent().setVisible(true);
}
}
}
代码示例来源:origin: kaaproject/kaa
} else {
getTitileLabelWidget().setText(getViewTitle());
getBackButtonPanelWidget().setVisible(true);
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Setup the container around the widget.
*/
private void finishWidgetInitialization(Element container, Widget w) {
UIObject.setVisible(container, false);
container.getStyle().setProperty("height", "100%");
// Set 100% by default.
Element element = w.getElement();
if (element.getStyle().getProperty("width").equals("")) {
w.setWidth("100%");
}
if (element.getStyle().getProperty("height").equals("")) {
w.setHeight("100%");
}
// Issue 2510: Hiding the widget isn't necessary because we hide its
// wrapper, but it's in here for legacy support.
w.setVisible(false);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Hide the old widget when the animation completes.
*/
private void hideOldWidget() {
// Issue 2510: Hiding the widget isn't necessary because we hide its
// wrapper, but its in here for legacy support.
oldWidget.setVisible(false);
oldWidget = null;
}
代码示例来源:origin: com.google.gwt/gwt-servlet
newWidget.setVisible(true);
return;
newWidget.setVisible(true);
代码示例来源:origin: net.wetheinter/gwt-user
private void setWidgetVisible(Widget w, Layer layer, boolean visible) {
layer.setVisible(visible);
/*
* Set the visibility of the widget. This is used by lazy panel to
* initialize the widget.
*/
w.setVisible(visible);
}
}
代码示例来源:origin: org.uberfire/uberfire-widgets-commons
public void setAttributeVisibility(final int index,
final boolean b) {
try {
final IsWidget widget = getWidget(index);
if (widget != null) {
getWidget(index).setVisible(b);
}
} catch (final IndexOutOfBoundsException ignore) {
}
}
}
代码示例来源:origin: geogebra/geogebra
/**
* Hide all keyboard panels.
*/
public void hideTabs() {
for (int i = 0; i < tabs.getWidgetCount(); i++) {
tabs.getWidget(i).setVisible(false);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
protected void onStart() {
super.onStart();
if (opening) {
curPanel.contentWrapper.setVisible(true);
// Special treatment on the visible case to ensure LazyPanel works
curPanel.getContent().setVisible(true);
}
}
代码示例来源:origin: org.kuali.student.lum/ks-lum-program
private TableSection createDatesSection() {
TableSection section = new TableSection(SectionTitle.generateH4Title(getLabel(ProgramMsgConstants.PROGRAMINFORMATION_DATES)));
//Add this field and hide it so it is available for cross field validation
FieldDescriptor fd = configurer.addField(section,ProgramConstants.PREV_START_TERM, generateMessageInfo(ProgramMsgConstants.MAJORDISCIPLINE_PREVSTARTTERM));
fd.getFieldWidget().setVisible(false);
fd.hideLabel();
configurer.addReadOnlyField(section, ProgramConstants.START_TERM, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_STARTTERM));
configurer.addReadOnlyField(section, ProgramConstants.END_PROGRAM_ENTRY_TERM, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_ENTRYTERM));
configurer.addReadOnlyField(section, ProgramConstants.END_PROGRAM_ENROLL_TERM, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_ENROLLTERM));
configurer.addReadOnlyField(section, ProgramConstants.PROGRAM_APPROVAL_DATE, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_APPROVALDATE));
return section;
}
内容来源于网络,如有侵权,请联系作者删除!