public class Window extends FloatingDiv
| Constructor and Description |
|---|
Window() |
Window(boolean modal,
boolean resizable,
int width,
int height,
String title)
Full constructor: create a window and be able to set all options at once.
|
Window(boolean modal,
boolean resizable,
String title)
Create a window of default size, with a specified title, modality and resizability.
|
Window(boolean resizable,
String title)
Create a modal window with the specified title and resizable option.
|
Window(int width,
int height,
String title)
Create a modal, resizable window of the given size and with the specified title.
|
Window(String title)
Create a modal, non-resizable window with the specified title.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createFrame()
This creates the title bar frame.
|
protected void |
createTitleBar()
Create the title bar for the floater.
|
Div |
getBottomContent()
Return the div that is the bottom content area.
|
Div |
getTopContent()
Return the div that is the top content area.
|
String |
getWindowTitle()
Return the floater's title bar title string.
|
boolean |
isClosable()
When set to TRUE, the floater will display a close button on it's title bar, and will close
if that thingy is pressed.
|
Window |
modal() |
Window |
modal(boolean yes) |
Window |
resizable() |
void |
setClosable(boolean closable)
When set to TRUE, the floater will display a close button on it's title bar, and will close
if that thingy is pressed.
|
void |
setDimensions(int width,
int height)
Change the width and height for the dialog - only valid before it has been
built!! The minimum size is 250x200 pixels.
|
void |
setIcon(String ico)
Set an icon for the title bar, using the absolute path to a web resource.
|
void |
setWindowTitle(String windowTitle)
Set the floater's title bar string.
|
Window |
size(int width,
int height) |
Window |
title(String set) |
Window |
width(int pxsl) |
beforeCreateContent, callCloseHandler, close, close, closePressed, getBrowserWindowSize, getClientBounds, getOnClose, internalGetHider, internalSetHider, isAutoClose, isModal, isResizable, onClosed, onRemoveFromPage, setAutoClose, setOnClose, setOnSizeAndPositionChange, verticallyAlignToCenterafterCreateContent, componentHandleWebAction, fadeIn, fadeOut, getCustomUpdatesCallJS, getDragHandler, getDropBody, getDropHandler, getDropMode, getReturnPressed, setDragHandler, setDropBody, setDropHandler, setReturnPressed, slideDown, slideUp, tb, visitadd, add, add, addTable, addTableForLayout, addTableForLayout, appendTreeErrors, canContain, delegateTo, disableAllChildControlsDeep, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChildren, getDelegate, getErrorFence, getTextContents, hasError, internalAdd, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalCreateFrame, internalGetNodeCount, internalGetOldChildren, internalOnBeforeRender, internalShelve, internalUnshelve, iterator, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setErrorFence, setErrorFence, setText, setValue, undelegatedAdd, undelegatedGetChild$, acceptRequestParameter, addBinding, addCssClass, addGlobalMessage, addNotificationListener, alignToLeft, alignToLeft, alignToMiddle, alignToMiddle, alignTopToBottom, alignTopToBottom, alignToRight, alignToRight, alignToTop, alignToTop, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, appendJQuerySelector, appendJsCustomUpdatesContributor, appendShowOverflowTextAsTitleJs, appendStatement, bind, bind, bindErrors, build, calcTestID, changed, changedJavascriptState, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, clearMessage, clearValidationFailure, componentHandleWebDataRequest, createContent, createStatement, findComponentBundle, findParent, getActualID, getAllocationTracepoint, getBindingErrors, getBindingList, getCalculatedTestID, getClicked, getComponentBundle, getComponentDataURL, getComponentDataURL, getComponentInfo, getComponentJSONURL, getCreateJS, getCssClass, getErrorList, getErrorLocation, getFocusID, getMessage, getOnClickJS, getOnMouseDownJS, getOnSizeAndPositionChange, getPage, getParent, getParent, getParent, getParentOfTypes, getSharedContext, getSharedContextFactory, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getTestRepeatId, getThemedResourceRURL, getTitle, getUserObject, handleDrop, hasCssClass, hasParent, internalGetOldParent, internalGetParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnClicked, internalOnValueChanged, internalRenderJavascriptDelta, internalRenderJavascriptState, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetLogAllocations, internalSetTag, isAttached, isBuilt, isFocusable, isFocusRequested, isRendersOwnClose, isStretchHeight, lc, notify, notifyParentOrOpenerPage, onAddedToPage, onBeforeFullRender, onBeforeRender, onForceRebuild, onHeaderContributors, onShelve, onUnshelve, refresh, remove, removeBinding, removeCssClass, renderJavascriptDelta, renderJavascriptState, renderJavascriptState, replaceWith, setBrowserWindowSize, setCalculcatedId, setCalculcatedId, setClicked, setClientBounds, setComponentBundle, setCssClass, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setOverrideTitle, setSpecialAttribute, setStretchHeight, setTestID, setTestRepeatID, setTitle, setUserObject, toStringgetBackgroundAttachment, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorderBottomColor, getBorderBottomStyle, getBorderBottomWidth, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderTopColor, getBorderTopStyle, getBorderTopWidth, getBottom, getCachedStyle, getClear, getColor, getDisplay, getFloat, getFontFamily, getFontSize, getFontSizeAdjust, getFontStyle, getFontVariant, getFontWeight, getHeight, getLeft, getLineHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverflow, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getRight, getTextAlign, getTop, getTransform, getVerticalAlign, getVisibility, getWidth, getZIndex, internalSetDisplay, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorder, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBottom, setCachedStyle, setClear, setColor, setDisplay, setFloat, setFontFamily, setFontSize, setFontSizeAdjust, setFontStyle, setFontVariant, setFontWeight, setHeight, setLeft, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Window()
public Window(boolean modal,
boolean resizable,
int width,
int height,
@Nullable
String title)
modal - T for a modal window.resizable - T for a window that can be resized by the user.width - The window width in pixels.height - The window height in pixels.title - The window title (or null if no title is required)public Window(boolean modal,
boolean resizable,
String title)
modal - resizable - title - public Window(boolean resizable,
String title)
resizable - title - public Window(String title)
title - public Window(int width,
int height,
String title)
width - height - title - @Nonnull public Window size(int width, int height)
size in class FloatingDiv@Nonnull public Window resizable()
resizable in class FloatingDiv@Nonnull public Window modal(boolean yes)
modal in class FloatingDiv@Nonnull public Window modal()
modal in class FloatingDiv@Nonnull public Window width(int pxsl)
width in class FloatingDivprotected void createFrame()
throws Exception
createFrame in class NodeContainerExceptionNodeContainer.createFrame()public void setDimensions(int width,
int height)
FloatingDivsetDimensions in class FloatingDivprotected void createTitleBar()
public boolean isClosable()
public void setClosable(boolean closable)
closable - public String getWindowTitle()
public void setWindowTitle(String windowTitle)
windowTitle - public void setIcon(String ico)
ico - public Div getBottomContent()
public Div getTopContent()
Copyright © 2017 etc.to. All rights reserved.