public abstract class EntityEditView
extends javafx.scene.layout.BorderPane
Constructor and Description |
---|
EntityEditView(FXEntityEditModel editModel)
Instantiates a new
EntityEditView instance |
Modifier and Type | Method and Description |
---|---|
protected javafx.scene.control.DatePicker |
createDatePicker(java.lang.String propertyId)
Creates a
DatePicker for the given property, assuming the property is date based |
protected javafx.scene.control.ComboBox<Entity> |
createForeignKeyComboBox(java.lang.String foreignKeyPropertyId)
Creates a
ComboBox based on the entities referenced by the given foreign key property |
protected EntityLookupField |
createForeignKeyLookupField(java.lang.String foreignKeyPropertyId)
Creates a
EntityLookupField based on the entities referenced by the given foreign key property |
protected javafx.scene.control.Label |
createLabel(java.lang.String propertyId)
Creates a
Label with caption associated with the given property |
protected javafx.scene.layout.BorderPane |
createPropertyPanel(java.lang.String propertyId) |
protected javafx.scene.control.TextField |
createTextField(java.lang.String propertyId)
Creates a
TextField for the given property |
protected javafx.scene.control.ComboBox<Item> |
createValueListComboBox(java.lang.String propertyId)
Creates a
ComboBox based on the values of the given property |
javafx.scene.Node |
getButtonPanel() |
FXEntityEditModel |
getEditModel() |
protected abstract javafx.scene.Node |
initializeEditPanel() |
EntityEditView |
initializePanel()
Initializes this edit view
|
void |
requestInitialFocus()
Transfers focus to the component associated with the initial focus property
|
void |
selectInputControl()
Displays a dialog for choosing a input component to receive focus
|
void |
setAfterInsertFocusProperty(java.lang.String afterInsertFocusPropertyId)
Sets the given property as the property which component should receive focus after an insert has been performed
|
void |
setInitialFocusProperty(java.lang.String initialFocusPropertyId)
Sets the given property as the property which component should receive focus when this edit view is initialized
|
void |
setRequestFocusAfterInsert(boolean requestFocusAfterInsert) |
protected void |
validateData()
for overriding, called before insert/update
|
bottomProperty, centerProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getAlignment, getBottom, getCenter, getContentBias, getLeft, getMargin, getRight, getTop, layoutChildren, leftProperty, rightProperty, setAlignment, setBottom, setCenter, setLeft, setMargin, setRight, setTop, topProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthProperty
getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBounds
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
public EntityEditView(FXEntityEditModel editModel)
EntityEditView
instanceeditModel
- the edit model to base this edit view onpublic final EntityEditView initializePanel()
public final FXEntityEditModel getEditModel()
public final void requestInitialFocus()
setInitialFocusProperty(String)
public final javafx.scene.Node getButtonPanel()
public void selectInputControl()
public final void setInitialFocusProperty(java.lang.String initialFocusPropertyId)
initialFocusPropertyId
- the propertyIdpublic final void setAfterInsertFocusProperty(java.lang.String afterInsertFocusPropertyId)
afterInsertFocusPropertyId
- the propertyIdpublic void setRequestFocusAfterInsert(boolean requestFocusAfterInsert)
requestFocusAfterInsert
- if true then the input focus is set after insertsetInitialFocusProperty(String)
protected abstract javafx.scene.Node initializeEditPanel()
protected void validateData() throws ValidationException
ValidationException
- in case of a validation failureprotected final EntityLookupField createForeignKeyLookupField(java.lang.String foreignKeyPropertyId)
EntityLookupField
based on the entities referenced by the given foreign key propertyforeignKeyPropertyId
- the foreign key propertyIdEntityLookupField
based on the given propertyprotected final javafx.scene.control.ComboBox<Entity> createForeignKeyComboBox(java.lang.String foreignKeyPropertyId)
ComboBox
based on the entities referenced by the given foreign key propertyforeignKeyPropertyId
- the foreign key propertyIdComboBox
based on the given propertyprotected final javafx.scene.control.ComboBox<Item> createValueListComboBox(java.lang.String propertyId)
ComboBox
based on the values of the given propertypropertyId
- the propertyIdComboBox
for the given propertyprotected final javafx.scene.control.TextField createTextField(java.lang.String propertyId)
TextField
for the given propertypropertyId
- the propertyIdTextField
for the given propertyprotected final javafx.scene.control.DatePicker createDatePicker(java.lang.String propertyId)
DatePicker
for the given property, assuming the property is date basedpropertyId
- the propertyIdDatePicker
based on the given propertyprotected final javafx.scene.control.Label createLabel(java.lang.String propertyId)
Label
with caption associated with the given propertypropertyId
- the propertyIdLabel
for the given propertyprotected final javafx.scene.layout.BorderPane createPropertyPanel(java.lang.String propertyId)