org.kuali.student.common.ui.client.widgets
Class KSLightBox

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.google.gwt.user.client.ui.PopupPanel
                      extended by com.google.gwt.user.client.ui.DecoratedPopupPanel
                          extended by com.google.gwt.user.client.ui.DialogBox
                              extended by org.kuali.student.common.ui.client.widgets.KSLightBox
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasHTML, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.MouseListener, com.google.gwt.user.client.ui.SourcesPopupEvents, Iterable<com.google.gwt.user.client.ui.Widget>
Direct Known Subclasses:
CategoryManagement.CreateCategoryDialog, CategoryManagement.DeleteConfirmationDialog, CategoryManagement.UpdateCategoryDialog

public class KSLightBox
extends com.google.gwt.user.client.ui.DialogBox


Nested Class Summary
(package private)  class KSLightBox.KSDialogResizeHandler
           
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.DialogBox
com.google.gwt.user.client.ui.DialogBox.Caption
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
private  com.google.gwt.user.client.ui.HorizontalPanel buttonPanel
           
private  com.google.gwt.user.client.ui.Anchor closeLink
           
private static List<String> FOCUSABLE_TAGS
           
private  com.google.gwt.user.client.ui.FlowPanel mainPanel
           
private  int maxHeight
           
private  int maxWidth
           
private  int minHeight
           
private  int minWidth
           
private  int permHeight
           
private  int permWidth
           
private  KSLightBox.KSDialogResizeHandler resizeHandler
           
private  com.google.gwt.event.shared.HandlerRegistration resizeHandlerRegistrater
           
private  com.google.gwt.user.client.ui.ScrollPanel scrollPanel
           
private  com.google.gwt.user.client.ui.FlowPanel titlePanel
           
private  com.google.gwt.user.client.ui.FlexTable verticalPanel
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
KSLightBox()
           
KSLightBox(boolean addCloseLink)
           
KSLightBox(String title)
           
 
Method Summary
 void addButton(com.google.gwt.user.client.ui.Widget button)
           
 void addButtonGroup(ButtonGroup group)
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
private  void grabFocus()
           
 void hide()
           
private  void init()
           
 void installResizeHandler()
           
protected  void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent preview)
           
 void removeCloseLink()
           
private  void resizeDialog()
           
 void setCloseLinkVisible(boolean visible)
           
 void setMaxHeight(int height)
           
 void setMaxWidth(int width)
           
 void setSize(int width, int height)
           
 void setWidget(com.google.gwt.user.client.ui.Widget content)
           
 void show()
           
 void showButtons(boolean show)
           
 void uninstallResizeHandler()
           
 
Methods inherited from class com.google.gwt.user.client.ui.DialogBox
beginDragging, continueDragging, doAttachChildren, doDetachChildren, endDragging, getCaption, getHTML, getText, onBrowserEvent, onEnsureDebugId, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp, setHTML, setText
 
Methods inherited from class com.google.gwt.user.client.ui.DecoratedPopupPanel
clear, getCellElement, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, 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, showRelativeTo
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, disown, onLoad, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

FOCUSABLE_TAGS

private static final List<String> FOCUSABLE_TAGS

maxWidth

private int maxWidth

maxHeight

private int maxHeight

minWidth

private int minWidth

minHeight

private int minHeight

permWidth

private int permWidth

permHeight

private int permHeight

mainPanel

private com.google.gwt.user.client.ui.FlowPanel mainPanel

titlePanel

private com.google.gwt.user.client.ui.FlowPanel titlePanel

scrollPanel

private com.google.gwt.user.client.ui.ScrollPanel scrollPanel

closeLink

private com.google.gwt.user.client.ui.Anchor closeLink

resizeHandler

private KSLightBox.KSDialogResizeHandler resizeHandler

resizeHandlerRegistrater

private com.google.gwt.event.shared.HandlerRegistration resizeHandlerRegistrater

verticalPanel

private com.google.gwt.user.client.ui.FlexTable verticalPanel

buttonPanel

private com.google.gwt.user.client.ui.HorizontalPanel buttonPanel
Constructor Detail

KSLightBox

public KSLightBox()

KSLightBox

public KSLightBox(boolean addCloseLink)

KSLightBox

public KSLightBox(String title)
Method Detail

init

private void init()

uninstallResizeHandler

public void uninstallResizeHandler()

installResizeHandler

public void installResizeHandler()

setCloseLinkVisible

public void setCloseLinkVisible(boolean visible)

addButton

public void addButton(com.google.gwt.user.client.ui.Widget button)

addButtonGroup

public void addButtonGroup(ButtonGroup group)

setWidget

public void setWidget(com.google.gwt.user.client.ui.Widget content)
Overrides:
setWidget in class com.google.gwt.user.client.ui.DecoratedPopupPanel

setMaxWidth

public void setMaxWidth(int width)

setMaxHeight

public void setMaxHeight(int height)

setSize

public void setSize(int width,
                    int height)

showButtons

public void showButtons(boolean show)

hide

public void hide()
Overrides:
hide in class com.google.gwt.user.client.ui.DialogBox

show

public void show()
Overrides:
show in class com.google.gwt.user.client.ui.DialogBox

grabFocus

private void grabFocus()

onPreviewNativeEvent

protected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent preview)
Overrides:
onPreviewNativeEvent in class com.google.gwt.user.client.ui.DialogBox

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()
Overrides:
getWidget in class com.google.gwt.user.client.ui.DecoratedPopupPanel

removeCloseLink

public void removeCloseLink()

resizeDialog

private void resizeDialog()


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.