public class CmsFormDialog extends CmsPopup
com.google.gwt.user.client.ui.PopupPanel.PositionCallback| 限定符和类型 | 字段和说明 |
|---|---|
protected CmsForm |
m_form
The widget containing the form fields.
|
protected I_CmsFormHandler |
m_formHandler
The form handler for this dialog.
|
static int |
MAX_DIALOG_WIDTH
The maximum dialog width.
|
static int |
STANDARD_DIALOG_WIDTH
The dialog width.
|
m_closeCommand, m_notificationWidgetInstalled, m_windowWidth| 构造器和说明 |
|---|
CmsFormDialog(java.lang.String title,
CmsForm form)
Constructs a new form dialog with a given title.
|
CmsFormDialog(java.lang.String title,
CmsForm form,
int dialogWidth)
Constructs a new form dialog with a given title.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
center() |
CmsForm |
getForm()
Gets the form of this dialog.
|
CmsPushButton |
getOkButton()
Returns the 'OK' button.
|
protected void |
initContent()
Initializes the form content.
|
protected void |
onClickOk()
The method which should be called when the user clicks on the OK button of the dialog.
|
void |
setFormHandler(I_CmsFormHandler formHandler)
Sets the form handler for this form dialog.
|
void |
setOkButtonEnabled(boolean enabled)
Enables/disables the OK button.
|
void |
show() |
add, add, addButton, addButton, addDialogClose, adjustIndex, beginDragging, catchNotifications, centerHorizontally, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, clear, continueDragging, createDialogNotificationWidget, doAttachChildren, doDetachChildren, endDragging, getAvailableHeight, getCaption, getChildren, getContainerElement, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, getWidth, hasCaption, hide, insert, insert, insertFront, installNotificationWidget, iterator, onBrowserEvent, onDetach, onPreviewNativeEvent, remove, remove, removeAllButtons, removeButton, removePadding, setBackgroundColor, setCaption, setHeight, setHeight, setMainContent, setPixelSize, setPositionFixed, setSize, setSpecialBackgroundClass, setUseAnimation, setWidget, setWidth, setWidth, showArrow, wrapWithBorderPaddingaddAutoHidePartner, addCloseHandler, addPopupListener, 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, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, showRelativeToaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabledpublic static final int MAX_DIALOG_WIDTH
public static final int STANDARD_DIALOG_WIDTH
protected CmsForm m_form
protected I_CmsFormHandler m_formHandler
public CmsFormDialog(java.lang.String title,
CmsForm form)
title - the title of the form dialogform - the form to usepublic CmsFormDialog(java.lang.String title,
CmsForm form,
int dialogWidth)
title - the title of the form dialogform - the form to usedialogWidth - the dialog widthpublic void center()
center 在类中 CmsPopupCmsPopup.center()public CmsForm getForm()
public CmsPushButton getOkButton()
public void setFormHandler(I_CmsFormHandler formHandler)
formHandler - the new form handlerpublic void setOkButtonEnabled(boolean enabled)
enabled - if true, enables the OK button, else disables itpublic void show()
show 在类中 CmsPopupCmsPopup.show()protected void initContent()
protected void onClickOk()