@Test public void test_registersToContainerOnceWhenShowingMultipleTimes() { window.show(); window.show(); verify(container, times(1)).register(window); }
public void show() { if (registrationEntry == null) { registrationEntry = container.register(this); } }
Window extends Layout implements HasCloseClickHandlers { public void show() { if (registrationEntry == null) { registrationEntry = container.register(this); } } }
Window extends Layout implements HasCloseClickHandlers { public void show() { if (registrationEntry == null) { registrationEntry = container.register(this); } } Window(MasterContainer container); }
Window extends Layout implements HasCloseClickHandlers { public void show() { if (registrationEntry == null) { registrationEntry = container.register(this); } } Window(MasterContainer container); void setAnimateMinimize(Boolean animateMinimize); Boolean getAnimateMinimize(); void setAutoCenter(Boolean autoCenter); Boolean getAutoCenter(); void setAutoSize(Boolean autoSize); Boolean getAutoSize(); void setBodyColor(String bodyColor); String getBodyColor(); void setBodyStyle(String bodyStyle); String getBodyStyle(); @Override void setCanDragReposition(Boolean canDragReposition); @Override Boolean getCanDragReposition(); @Override void setCanDragResize(Boolean canDragResize); @Override Boolean getCanDragResize(); void setCanFocusInHeaderButtons(Boolean canFocusInHeaderButtons); Boolean getCanFocusInHeaderButtons(); void setContentLayout(String contentLayout); String getContentLayout(); void setContentsType(String contentsType); String getContentsType(); void setDefaultMinimizeHeight(int defaultMinimizeHeight); int getDefaultMinimizeHeight(); void setDismissOnEscape(Boolean dismissOnEscape); Boolean getDismissOnEscape(); void setDismissOnOutsideClick(Boolean dismissOnOutsideClick); Boolean getDismissOnOutsideClick(); void setFooterHeight(int footerHeight); int getFooterHeight(); void setHeaderSrc(String headerSrc); String getHeaderSrc(); void setHeaderStyle(String headerStyle); String getHeaderStyle(); void setHiliteBodyColor(String hiliteBodyColor); String getHiliteBodyColor(); void setHiliteHeaderSrc(String hiliteHeaderSrc); String getHiliteHeaderSrc(); void setHiliteHeaderStyle(String hiliteHeaderStyle); String getHiliteHeaderStyle(); void setIsModal(Boolean isModal); Boolean getIsModal(); void setMaximized(Boolean maximized); Boolean getMaximized(); void setMinimizeAcceleration(AnimationAcceleration minimizeAcceleration); AnimationAcceleration getMinimizeAcceleration(); void setMinimized(Boolean minimized); Boolean getMinimized(); void setMinimizeHeight(Integer minimizeHeight); Integer getMinimizeHeight(); void setMinimizeTime(Integer minimizeTime); Integer getMinimizeTime(); void setModalMaskOpacity(int modalMaskOpacity); int getModalMaskOpacity(); void setModalMaskStyle(String modalMaskStyle); String getModalMaskStyle(); void setShowBody(Boolean showBody); Boolean getShowBody(); void setShowCloseButton(Boolean showCloseButton); Boolean getShowCloseButton(); void setShowFooter(Boolean showFooter); Boolean getShowFooter(); void setShowHeader(Boolean showHeader); Boolean getShowHeader(); void setShowHeaderBackground(Boolean showHeaderBackground); Boolean getShowHeaderBackground(); void setShowHeaderIcon(Boolean showHeaderIcon); Boolean getShowHeaderIcon(); void setShowMaximizeButton(Boolean showMaximizeButton); Boolean getShowMaximizeButton(); void setShowMinimizeButton(Boolean showMinimizeButton); Boolean getShowMinimizeButton(); void setShowModalMask(Boolean showModalMask); Boolean getShowModalMask(); void setShowResizer(Boolean showResizer); Boolean getShowResizer(); void setShowStatusBar(Boolean showStatusBar); Boolean getShowStatusBar(); void setShowTitle(Boolean showTitle); Boolean getShowTitle(); void setSrc(String src); String getSrc(); void setStatus(String status); String getStatus(); @Override void setTitle(String title); @Override String getTitle(); @Override void setKeepInParentRect(Boolean keepInParentRect); void setBodyDefaults(Map bodyDefaults); void setHeaderIconDefaults(Map headerIconDefaults); void setHeaderIconProperties(Map headerIconProperties); void setHeaderIcon(String imgSrc); void setHeaderIcon(String imgSrc, int width, int height); void setHeaderControls(Object... headerControls); void setFooterControls(Object... footerControls); void show(); void dispose(); @Override HandlerRegistration addCloseClickHandler(final CloseClickHandler handler); void addItem(Canvas component); @Override void paintContent(PaintTarget target); @Override void changeVariables(Object source, Map<String, Object> variables); }
Window extends Layout implements HasCloseClickHandlers { public void show() { if (registrationEntry == null) { registrationEntry = container.register(this); } } Window(MasterContainer container); void setAnimateMinimize(Boolean animateMinimize); Boolean getAnimateMinimize(); void setAutoCenter(Boolean autoCenter); Boolean getAutoCenter(); void setAutoSize(Boolean autoSize); Boolean getAutoSize(); void setBodyColor(String bodyColor); String getBodyColor(); void setBodyStyle(String bodyStyle); String getBodyStyle(); @Override void setCanDragReposition(Boolean canDragReposition); @Override Boolean getCanDragReposition(); @Override void setCanDragResize(Boolean canDragResize); @Override Boolean getCanDragResize(); void setCanFocusInHeaderButtons(Boolean canFocusInHeaderButtons); Boolean getCanFocusInHeaderButtons(); void setContentLayout(String contentLayout); String getContentLayout(); void setContentsType(String contentsType); String getContentsType(); void setDefaultMinimizeHeight(int defaultMinimizeHeight); int getDefaultMinimizeHeight(); void setDismissOnEscape(Boolean dismissOnEscape); Boolean getDismissOnEscape(); void setDismissOnOutsideClick(Boolean dismissOnOutsideClick); Boolean getDismissOnOutsideClick(); void setFooterHeight(int footerHeight); int getFooterHeight(); void setHeaderSrc(String headerSrc); String getHeaderSrc(); void setHeaderStyle(String headerStyle); String getHeaderStyle(); void setHiliteBodyColor(String hiliteBodyColor); String getHiliteBodyColor(); void setHiliteHeaderSrc(String hiliteHeaderSrc); String getHiliteHeaderSrc(); void setHiliteHeaderStyle(String hiliteHeaderStyle); String getHiliteHeaderStyle(); void setIsModal(Boolean isModal); Boolean getIsModal(); void setMaximized(Boolean maximized); Boolean getMaximized(); void setMinimizeAcceleration(AnimationAcceleration minimizeAcceleration); AnimationAcceleration getMinimizeAcceleration(); void setMinimized(Boolean minimized); Boolean getMinimized(); void setMinimizeHeight(Integer minimizeHeight); Integer getMinimizeHeight(); void setMinimizeTime(Integer minimizeTime); Integer getMinimizeTime(); void setModalMaskOpacity(int modalMaskOpacity); int getModalMaskOpacity(); void setModalMaskStyle(String modalMaskStyle); String getModalMaskStyle(); void setShowBody(Boolean showBody); Boolean getShowBody(); void setShowCloseButton(Boolean showCloseButton); Boolean getShowCloseButton(); void setShowFooter(Boolean showFooter); Boolean getShowFooter(); void setShowHeader(Boolean showHeader); Boolean getShowHeader(); void setShowHeaderBackground(Boolean showHeaderBackground); Boolean getShowHeaderBackground(); void setShowHeaderIcon(Boolean showHeaderIcon); Boolean getShowHeaderIcon(); void setShowMaximizeButton(Boolean showMaximizeButton); Boolean getShowMaximizeButton(); void setShowMinimizeButton(Boolean showMinimizeButton); Boolean getShowMinimizeButton(); void setShowModalMask(Boolean showModalMask); Boolean getShowModalMask(); void setShowResizer(Boolean showResizer); Boolean getShowResizer(); void setShowStatusBar(Boolean showStatusBar); Boolean getShowStatusBar(); void setShowTitle(Boolean showTitle); Boolean getShowTitle(); void setSrc(String src); String getSrc(); void setStatus(String status); String getStatus(); @Override void setTitle(String title); @Override String getTitle(); @Override void setKeepInParentRect(Boolean keepInParentRect); void setBodyDefaults(Map bodyDefaults); void setHeaderIconDefaults(Map headerIconDefaults); void setHeaderIconProperties(Map headerIconProperties); void setHeaderIcon(String imgSrc); void setHeaderIcon(String imgSrc, int width, int height); void setHeaderControls(Object... headerControls); void setFooterControls(Object... footerControls); void show(); void dispose(); @Override HandlerRegistration addCloseClickHandler(final CloseClickHandler handler); void addItem(Canvas component); @Override void paintContent(PaintTarget target); @Override void changeVariables(Object source, Map<String, Object> variables);  }