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); }
@Override public void setBackEnabled(boolean enabled) { getBackButtonPanelWidget().setVisible(!create && enabled); }
/** * Instantiates a new BaseRecordViewImpl. */ public BaseRecordViewImpl(boolean create) { super(create); getSaveButtonWidget().setVisible(false); getCancelButtonWidget().setVisible(false); getBackButtonPanelWidget().setVisible(true); }
/** * 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; }
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); } }
/** * Reset the dimensions of the widget when it is removed. */ private void resetChildWidget(Widget w) { w.setSize("", ""); w.setVisible(true); } }
detailsView.getUserExternalId().setValue(entity.getUserExternalId()); for (Widget widget : detailsView.getUserInfoList()) { widget.setVisible(true); widget.setVisible(false);
private void setStackContentVisible(int index, boolean visible) { Element tr = DOM.getChild(body, (index * 2) + 1); UIObject.setVisible(tr, visible); getWidget(index).setVisible(visible); }
@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); } }
/** * 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); }
/** * 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); } } }
} else { getTitileLabelWidget().setText(getViewTitle()); getBackButtonPanelWidget().setVisible(true);
/** * 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); }
/** * 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; }
newWidget.setVisible(true); return; newWidget.setVisible(true);
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); } }
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) { } } }
/** * Hide all keyboard panels. */ public void hideTabs() { for (int i = 0; i < tabs.getWidgetCount(); i++) { tabs.getWidget(i).setVisible(false); } }
@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); } }
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; }