public class KSLightBox extends com.google.gwt.user.client.ui.DialogBox
DockLayoutPanel:| Modifier and Type | Class and Description |
|---|---|
static class |
KSLightBox.Size
An enum that specifies predefined width and height values (in pixels) for the
lightbox.
|
com.google.gwt.user.client.ui.DialogBox.Caption, com.google.gwt.user.client.ui.DialogBox.CaptionImplcom.google.gwt.user.client.ui.PopupPanel.PositionCallback| Constructor and Description |
|---|
KSLightBox() |
KSLightBox(boolean addCloseLink) |
KSLightBox(String title) |
KSLightBox(String title,
KSLightBox.Size size) |
| Modifier and Type | Method and Description |
|---|---|
void |
addButton(com.google.gwt.user.client.ui.Widget button)
Adds a button to the bottom of the lightbox.
|
void |
addButtonGroup(ButtonGroup group)
Adds a
ButtonGroup to the button panel at the bottom of the lightbox. |
void |
addButtonGroup(ButtonGroup group)
Adds a
ButtonGroup to the button panel at the bottom of the lightbox. |
com.google.gwt.event.shared.HandlerRegistration |
addCloseLinkClickHandler(com.google.gwt.event.dom.client.ClickHandler clickHandler) |
void |
clearButtons()
Removes all the buttons at the bottom of the lightbox.
|
com.google.gwt.user.client.ui.Widget |
getWidget() |
void |
hide() |
void |
installResizeHandler() |
protected void |
onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent preview) |
void |
removeCloseLink() |
void |
setCloseLinkVisible(boolean visible) |
void |
setMaxHeight(int height)
Set the maximum height in pixels that this dialog will grow to.
Please note: If the lightbox's size was set explicitly, this call will have no effect. |
void |
setMaxWidth(int width)
Set the maximum width in pixels that this dialog will grow to.
Please note: If the lightbox's size was set explicitly, this call will have no effect. |
void |
setNonCaptionHeader(com.google.gwt.user.client.ui.Widget widget)
Sets the header that will be displayed at the top of the lightbox.
Please note: This header will not be displayed in the caption, but in the actual lightbox content area. |
void |
setSize(int width,
int height)
Set the width and height of the lightbox in pixels.
Please note: These values will not be affected by resizing. |
void |
setSize(KSLightBox.Size size)
Set the width and height of the lightbox in pixels using the
KSLightBox.Size enum. |
void |
setText(String text) |
void |
setWidget(com.google.gwt.user.client.ui.Widget content) |
void |
show() |
void |
showButtons(boolean show) |
void |
uninstallResizeHandler() |
beginDragging, continueDragging, doAttachChildren, doDetachChildren, endDragging, getCaption, getHTML, getText, onBrowserEvent, onEnsureDebugId, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp, setHTML, setHTMLclear, getCellElement, iterator, removeaddAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidth, showRelativeToadd, adopt, adopt, disown, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString, unsinkEventspublic KSLightBox()
public KSLightBox(boolean addCloseLink)
public KSLightBox(String title)
public KSLightBox(String title, KSLightBox.Size size)
public void setCloseLinkVisible(boolean visible)
public void removeCloseLink()
public com.google.gwt.event.shared.HandlerRegistration addCloseLinkClickHandler(com.google.gwt.event.dom.client.ClickHandler clickHandler)
public void setNonCaptionHeader(com.google.gwt.user.client.ui.Widget widget)
widget - The header widget.public void setText(String text)
setText in interface com.google.gwt.user.client.ui.HasTextsetText in class com.google.gwt.user.client.ui.DialogBoxpublic void clearButtons()
public void addButton(com.google.gwt.user.client.ui.Widget button)
public void addButtonGroup(ButtonGroup group)
ButtonGroup to the button panel at the bottom of the lightbox.group - public void addButtonGroup(ButtonGroup group)
ButtonGroup to the button panel at the bottom of the lightbox.group - public void showButtons(boolean show)
public void setMaxWidth(int width)
width - The dialog's maximum width in pixels.public void setMaxHeight(int height)
height - The dialog's maximum height in pixels.public void setSize(int width, int height)
width - The specified width in pixels.height - The specified height in pixels.public void setSize(KSLightBox.Size size)
KSLightBox.Size enum.size - A predefined dialog size.public void setWidget(com.google.gwt.user.client.ui.Widget content)
setWidget in interface com.google.gwt.user.client.ui.HasOneWidgetsetWidget in class com.google.gwt.user.client.ui.DecoratedPopupPanelpublic com.google.gwt.user.client.ui.Widget getWidget()
getWidget in interface com.google.gwt.user.client.ui.HasOneWidgetgetWidget in class com.google.gwt.user.client.ui.DecoratedPopupPanelpublic void hide()
hide in class com.google.gwt.user.client.ui.DialogBoxpublic void show()
show in class com.google.gwt.user.client.ui.DialogBoxprotected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent preview)
onPreviewNativeEvent in class com.google.gwt.user.client.ui.DialogBoxpublic void uninstallResizeHandler()
public void installResizeHandler()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.