public class FDateChooser extends FTextInputComponent implements de.ipcon.swing.IDateChooserPanelListener, FormElementWithDisplayPropertyI, de.ipcon.swing.PopupListenerI
XMLConfigureInfoinhibitFocusChange, SCROLLING_MODE_ANY, SCROLLING_MODE_HORIZONTAL_ONLY, SCROLLING_MODE_VERTICAL_ONLY, TEXTURE_CENTERED, TEXTURE_REPEATTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTALL_ACTIONS, AVAILABLE_ACTION_KIND, CONTEXTMENU_ACTION_KIND, LOCAL_ACTION_KIND, MENU_ACTION_KIND, NO_LOCAL_ACTION_KIND, NO_TOPMDI_ONLY_ACTION_KIND, NOT_AVAILABLE_ACTION_KIND, REFRESH_FROM_TRANSACTION, REFRESH_FROM_USER, SHORTCUT_ACTION_KIND, TOOLBAR_ACTION_KIND, TOPMDI_ONLY_ACTION_KIND| Constructor and Description |
|---|
FDateChooser(FormContextI _ftx,
electric.xml.Element _confroot) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
action_togglePopup_available() |
boolean |
action_togglePopup_enabled() |
void |
action_togglePopup(java.awt.event.ActionEvent event) |
void |
buildGUI() |
java.lang.Object |
calculateDisplayValue(AsyncRefreshRequestI r)
Calculates a display value for an asynchronous refresh request.
|
void |
close() |
void |
closeDateChooser() |
void |
createIconPanel() |
void |
createTextField() |
void |
dateChanged(java.util.Date d) |
void |
determineTimezone()
Uses the determined property/attribute to fetch the actual timezone to use.
|
void |
determineTimezoneProperty()
Resolve the property which determines the timezone, if available.
|
java.util.HashMap |
getAttributeMap()
Returns the map of attributes supported by this component.
|
de.ipcon.swing.IDateChooserPanel |
getDateChooserPanel(java.util.Date initialDate) |
java.util.LinkedHashMap |
getDefaultActionMap()
Returns the default action map for this component.
|
java.lang.String |
getDisplayFormat() |
java.lang.String |
getDisplayProperty() |
java.util.HashMap |
getElementMap()
Returns the map of elements supported by this component.
|
javax.swing.text.JTextComponent |
getTextComponent() |
void |
handleAutoHideButtonA(electric.xml.Attribute a) |
void |
handleDisplayPropertyA(electric.xml.Attribute a) |
void |
handleEnabledA(electric.xml.Attribute a) |
void |
handleFormatA(electric.xml.Attribute a) |
void |
handleInputFormatE(electric.xml.Element e) |
void |
handlePopupHeightA(electric.xml.Attribute a) |
void |
handlePopupSizeA(electric.xml.Attribute a) |
void |
handlePopupWidthA(electric.xml.Attribute a) |
void |
handleTimeZonePropertyA(electric.xml.Attribute a) |
void |
hidePopup() |
boolean |
isPopupVisible() |
void |
lockDisplayValue()
Locks the UI component that displays the value to prevent concurrent inputs during
async refresh operations.
|
void |
popupAboutToHide(de.ipcon.swing.IResizablePopupWindow _popup) |
void |
popupHidden(de.ipcon.swing.IResizablePopupWindow _popup) |
void |
renderDisplayValue(AsyncRefreshRequestI r,
java.lang.Object displayValue)
Renders the calculated value on the UI.
|
void |
restoreLockstateOfDisplayValue()
Unlocks the UI component that displays the value again.
|
void |
setDisplayFormat(java.lang.String $10) |
void |
showDate() |
void |
showDate(boolean _doSync) |
void |
syncImpl()
Ein Sync wird immer dann ausgeloest, wenn die Komponente den Focus verliert oder
der Benutzer die Speichern-Aktion ausloest (oder halt jemand explizit sync()
aufruft auf einem parent ftx)
Wir muessen halt nur aufpassen, dass der Wert, der im BO steckt, nicht durch
sync()-Aufrufe veraendert wird, wenn der Benutzer keine Aenderung im View
wahrnimmt - das ist ein Problem beim Aendern eines Datums in der GUI.
|
void |
togglePopup(java.awt.event.ActionEvent event) |
_setText, changedUpdate, disable, enable, focusGained, focusLost, getAlign, getBaseline, getColumns, getExplicitNullProperty, getFallbackProperty, getFontSize, getFontStyle, getInitialFocus, getJComponent, getProperty, getSelectedText, getSelectionEnd, getSelectionStart, getText, handleAlignA, handleAttributes, handleColumnsA, handleSelectAllWhenFocusedA, hasFocus, insertUpdate, isSelectAllWhenFocused, postRefresh, postRefresh, refresh, removeUpdate, requestFocusInWindow, selectAll, selectNone, setAlign, setColumns, setEditable, setEditable, setEnabled, setEnabled, setExplicitNullProperty, setFallbackProperty, setFontSize, setFontStyle, setProperty, setSelectAllWhenFocused, setText, setText, updateEditableStatus, updateEditableStatuscalculateMandatory, getAlsoMandatoryIf, handleAlsoMandatoryIfE_refreshActions, action_editForm_available, action_editForm_enabled, action_editForm, action_refreshView_available, action_refreshView, action_reopenView_available, action_reopenView_enabled, action_reopenView, addBeanA, addFormElementListener, addHandleA, addHandleE, afterSave, afterSetValue, assureTransferHandler, beforeSave, beforeSetValue, calculationMightBeExpensive, callLog, cancelPendingRefreshRequests, checkEditable, checkVisible, evalScript, evalScript, evalScript, evalScript, evalScript, fhide, focusNextComponent, focusPreviousComponent, fshow, getActions, getActionsOfKind, getActionsOfKind, getBO, getConfRoot, getCtx, getDebugName, getFormActions, getFtx, getInstrumentedSchema, getLastRefreshRequest, getMaximumSize, getMinimumSize, getMissingPropertiesPolicy, getPreferredSize, getRefreshRequestsPending, getSchema, handleActionE, handleDropAllowedIfE, handleEditableA, handleEditableIfE, handleElement, handleElements, handleElements, handleElements, handleImpliedA, handleMaximumSizeA, handleMaxSizeA, handleMinimumSizeA, handleMinSizeA, handleMissingPropertiesPolicyA, handleNameA, handleNewElement, handleNewElement, handleNewElement, handleOnAfterSaveE, handleOnAfterSetValueE, handleOnBeforeSaveE, handleOnBeforeSetValueE, handleOnConstructionE, handleOnDropE, handleOnFocusGainedE, handleOnFocusLostE, handleOnMDIActivateE, handleOnMDICloseE, handleOnMDIDeactivateE, handleOnMDIOpenE, handleOnRefreshE, handleOnSyncE, handlePreferredSizeA, handlePrefSizeA, handleScriptE, handleVirtualPropertyE, handleVisibleIfE, hasPreferredSizeOverride, invokeAction, invokeAction, isClosed, isDebug, isDefinedEditable, isEditable, isExplicitEditable, isGUIBuilt, isImpliedElement, isInputPossible, isShown, mdiActivate, mdiClose, mdiDeactivate, mdiOpen, postConstructor, postInit, postRefresh, processFocusVeto, processFocusVeto, queueDelayedRefresh, queueDelayedRefresh, reallyHandleVirtualPropertyE, refresh, refreshActions, refreshActions, registerActionImpl, registerFormAction, removeFormElementListener, requestFocus, requestFocusInWindow, runAndDeclare, runAndDeclare, setConfRoot, setDebug, setFtx, setGUIBuilt, setMissingPropertiesPolicy, setShown, shouldShow, sync, waitForAsyncRefreshes, willCareForChildActions, willCareForChildRefreshgetPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollingMode, grabFocus, init, init, init, paintComponent, setScrollingMode, setTexturegetAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddFormElementListener, afterSave, afterSetValue, beforeSave, beforeSetValue, getActions, getActionsOfKind, getConfRoot, getCtx, getDebugName, getFtx, getName, getSchema, handleAttributes, handleElement, handleElements, handleNewElement, isClosed, isDebug, isEditable, isGUIBuilt, isInputPossible, isShown, mdiActivate, mdiClose, mdiDeactivate, mdiOpen, postInit, postRefresh, refresh, refresh, removeFormElementListener, requestFocus, setEditable, sync, toDebugName, willCareForChildActions, willCareForChildRefreshpublic FDateChooser(FormContextI _ftx, electric.xml.Element _confroot)
public javax.swing.text.JTextComponent getTextComponent()
getTextComponent in class FTextInputComponentpublic void close()
close in interface FormElementIclose in class FTextInputComponentpublic java.lang.String getDisplayProperty()
getDisplayProperty in interface FormElementWithDisplayPropertyIpublic void buildGUI()
public void determineTimezoneProperty()
public void determineTimezone()
determineTimezoneProperty()public void handleDisplayPropertyA(electric.xml.Attribute a)
public void handleFormatA(electric.xml.Attribute a)
public void handlePopupHeightA(electric.xml.Attribute a)
public void handlePopupWidthA(electric.xml.Attribute a)
public void handlePopupSizeA(electric.xml.Attribute a)
public void handleInputFormatE(electric.xml.Element e)
public void handleAutoHideButtonA(electric.xml.Attribute a)
public void handleTimeZonePropertyA(electric.xml.Attribute a)
public void handleEnabledA(electric.xml.Attribute a)
public java.util.HashMap getAttributeMap()
FInputPanelgetAttributeMap in interface FormElementIgetAttributeMap in class FInputPanelpublic java.util.HashMap getElementMap()
FInputPanelgetElementMap in interface FormElementIgetElementMap in class FInputPanelpublic java.util.LinkedHashMap getDefaultActionMap()
FInputPanelgetDefaultActionMap in class FInputPanelpublic void createTextField()
public void createIconPanel()
public de.ipcon.swing.IDateChooserPanel getDateChooserPanel(java.util.Date initialDate)
public boolean isPopupVisible()
public void popupHidden(de.ipcon.swing.IResizablePopupWindow _popup)
popupHidden in interface de.ipcon.swing.PopupListenerIpublic void popupAboutToHide(de.ipcon.swing.IResizablePopupWindow _popup)
popupAboutToHide in interface de.ipcon.swing.PopupListenerIpublic void hidePopup()
public void togglePopup(java.awt.event.ActionEvent event)
public java.lang.Object calculateDisplayValue(AsyncRefreshRequestI r)
AsyncRefreshExecutorIcalculateDisplayValue in interface AsyncRefreshExecutorIr - The refresh request containing all necessary
context and data for the calculation.public void renderDisplayValue(AsyncRefreshRequestI r, java.lang.Object displayValue)
AsyncRefreshExecutorIrenderDisplayValue in interface AsyncRefreshExecutorIr - The original refresh request.displayValue - The raw Object value returned by the calculateDisplayValue method,
or a caught Exception.public void lockDisplayValue()
AsyncRefreshExecutorIlockDisplayValue in interface AsyncRefreshExecutorIpublic void restoreLockstateOfDisplayValue()
AsyncRefreshExecutorIrestoreLockstateOfDisplayValue in interface AsyncRefreshExecutorIpublic void showDate()
public void showDate(boolean _doSync)
public void syncImpl()
public void action_togglePopup(java.awt.event.ActionEvent event)
public boolean action_togglePopup_enabled()
public boolean action_togglePopup_available()
public void dateChanged(java.util.Date d)
dateChanged in interface de.ipcon.swing.IDateChooserPanelListenerpublic void closeDateChooser()
closeDateChooser in interface de.ipcon.swing.IDateChooserPanelListenerpublic java.lang.String getDisplayFormat()
public void setDisplayFormat(java.lang.String $10)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.