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

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.KSDialog
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>

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


Nested Class Summary
(package private)  class KSDialog.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  com.google.gwt.event.shared.HandlerManager handlers
           
private  com.google.gwt.user.client.ui.FlowPanel mainPanel
           
private  int maxHeight
           
private  int maxWidth
           
private  KSDialog.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
KSDialog()
           
 
Method Summary
 void addButton(com.google.gwt.user.client.ui.Widget button)
           
 void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
           
 void hide()
           
 void installResizeHandler()
           
protected  void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent preview)
           
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 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, getWidget, 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, 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
 

Field Detail

handlers

private final com.google.gwt.event.shared.HandlerManager handlers

maxWidth

private int maxWidth

maxHeight

private int maxHeight

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 KSDialog.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

KSDialog

public KSDialog()
Method Detail

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)

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)

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

onPreviewNativeEvent

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

resizeDialog

private void resizeDialog()

fireEvent

public void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
Specified by:
fireEvent in interface com.google.gwt.event.shared.HasHandlers
Overrides:
fireEvent in class com.google.gwt.user.client.ui.Widget


Copyright © 2010 The Kuali Foundation. All rights reserved.