public class EditDialog<T> extends Dialog
| Constructor and Description |
|---|
EditDialog(boolean modal,
boolean resizable,
int width,
int height,
String title) |
EditDialog(boolean modal,
boolean resizable,
String title) |
EditDialog(boolean resizable,
String title) |
EditDialog(int width,
int height,
String title) |
EditDialog(String title) |
EditDialog(T instance,
boolean modal,
boolean resizable,
int width,
int height,
String title) |
EditDialog(T instance,
boolean modal,
boolean resizable,
String title) |
EditDialog(T instance,
boolean resizable,
String title) |
EditDialog(T instance,
int width,
int height,
String title) |
EditDialog(T instance,
String title) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createButtons()
Can be overridden to add extra buttons to the button bar where needed - this default
implementation adds the save and cancel buttons.
|
protected void |
createFrame()
Overridden to create the initial button bar with the "save" button and the
"cancel" buttons in place.
|
ModelBindings |
getBindings()
The bindings as returned by the createEditable call.
|
HorizontalFormBuilder |
getHorizontalFormBuilder()
Get a horizontal form builder using the shared bindings.
|
T |
getInstance()
The data instance being edited.
|
TabularFormBuilder |
getTabularFormBuilder()
Get a tabular form builder using the shared bindings.
|
protected boolean |
onSaveBind()
This uses the bindings created by createContent to move data in controls back
to the instance (the model).
|
void |
setInstance(T instance)
Set the data to change.
|
buttonCancel, buttonSave, createCancelButton, createCancelButton, createCancelButton, createSaveButton, createSaveButton, getButtonBar, getOnSave, modal, modal, onCloseException, onSave, onValidate, resizable, setButtonsOnBottom, setOnSave, size, titlecreateTitleBar, getBottomContent, getTopContent, getWindowTitle, isClosable, setClosable, setDimensions, setIcon, setWindowTitle, widthbeforeCreateContent, 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 EditDialog(boolean modal,
boolean resizable,
int width,
int height,
String title)
public EditDialog(boolean modal,
boolean resizable,
String title)
public EditDialog(boolean resizable,
String title)
public EditDialog(String title)
public EditDialog(int width,
int height,
String title)
public EditDialog(T instance, boolean modal, boolean resizable, int width, int height, String title)
@OverridingMethodsMustInvokeSuper protected void createFrame() throws Exception
createFrame in class WindowExceptionWindow.createFrame()protected void createButtons()
throws Exception
createButtons in class DialogException@OverridingMethodsMustInvokeSuper protected boolean onSaveBind() throws Exception
onSaveBind in class DialogExceptionDialog.onSaveBind()public TabularFormBuilder getTabularFormBuilder() throws Exception
Exceptionpublic HorizontalFormBuilder getHorizontalFormBuilder()
public T getInstance()
public void setInstance(@Nonnull T instance)
instance - @Nonnull public ModelBindings getBindings()
Copyright © 2017 etc.to. All rights reserved.