public class FScheduler extends FPanel implements AsyncRefreshExecutorI, FormElementListenerI, DetailViewOwnerI
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BORDER_ATT_PREFIX |
static java.lang.String |
VIEW_TYPE_RESOURCES |
static java.lang.String |
VIEW_TYPE_SINGLEMONTH |
static java.lang.String |
VIEW_TYPE_TIMETABLE |
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_SHOW_POPUP, REFRESH_FROM_TRANSACTION, REFRESH_FROM_USER, SHORTCUT_ACTION_KIND, TOOLBAR_ACTION_KIND, TOPMDI_ONLY_ACTION_KIND| Constructor and Description |
|---|
FScheduler(FormContextI _ftx,
electric.xml.Element _confRoot) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
action_deleteSelected_available() |
boolean |
action_deleteSelected_enabled() |
void |
action_deleteSelected() |
boolean |
action_newElement_available() |
void |
action_newElement() |
boolean |
action_zoomIn_enabled() |
void |
action_zoomIn() |
boolean |
action_zoomOut_enabled() |
void |
action_zoomOut() |
void |
afterSavePerformed(FormElementI fe)
Invoked immediately after the form data has been successfully saved.
|
void |
afterSetValuePerformed(FormElementI fe,
java.lang.Object old,
java.lang.Object o)
Invoked after a value has been modified on the form element.
|
void |
beforeSavePerformed(FormElementI fe)
Invoked immediately before the form data persistence process begins.
|
void |
beforeSetValuePerformed(FormElementI fe,
java.lang.Object old,
java.lang.Object o)
Invoked before a value is modified on the form element.
|
void |
buildGUI() |
java.lang.Object |
calculateDisplayValue(AsyncRefreshRequestI r)
Calculates a display value for an asynchronous refresh request.
|
void |
close() |
java.util.HashMap<java.lang.String,MethodLocalizationWrapper> |
getAttributeMap()
Returns the map of attributes supported by this FPanel.
|
java.util.LinkedHashMap |
getDefaultActionMap()
Returns the default action map for this FPanel.
|
FDetailView |
getDetailView()
Retrieves the specific detail view instance managed by this owner.
|
java.util.HashMap |
getElementMap()
Returns the map of elements supported by this FPanel.
|
java.lang.Class<?> |
getGroupClass() |
java.util.Date |
getInitialDate() |
java.lang.Class<? extends BO> |
getItemClass() |
java.util.Set<BO> |
getKnownBOs()
Returns the set of all Business Objects (BOs) currently loaded or managed by this component.
|
java.lang.String |
getProperty() |
java.lang.String |
getRange() |
java.util.Set<? extends BO> |
getSelectedItems() |
java.lang.String |
getSnapUnit() |
int |
getSnapUnitCount() |
void |
handleAllowOverlapsA(java.lang.String value) |
void |
handleAutoRefreshA(java.lang.String value) |
void |
handleBackgroundA(java.lang.String value) |
void |
handleDataMapperE(electric.xml.Element e) |
void |
handleDatatipFormatA(java.lang.String value) |
void |
handleDetailViewE(electric.xml.Element e) |
void |
handleForegroundA(java.lang.String value) |
void |
handleGridColorA(java.lang.String value) |
void |
handleGroupClassA(java.lang.String value) |
void |
handleHeaderColorA(java.lang.String value) |
void |
handleItemClassA(java.lang.String value) |
void |
handleNewItemE(electric.xml.Element e) |
void |
handleNoNavigationA(java.lang.String value) |
void |
handleOnAfterSelectValueE(electric.xml.Element e) |
void |
handleOnContactClickE(electric.xml.Element e) |
void |
handleOnItemClickE(electric.xml.Element e) |
void |
handlePropertyA(java.lang.String value) |
void |
handleRangeA(java.lang.String value) |
void |
handleSnapUnitA(java.lang.String value) |
void |
handleTypeA(java.lang.String value) |
void |
handleValidIfE(electric.xml.Element e) |
void |
handleViewOnlyA(java.lang.String value) |
void |
handleWorkHoursA(java.lang.String value) |
boolean |
isViewOnly() |
void |
lockDisplayValue()
Locks the UI component that displays the value to prevent concurrent inputs during
async refresh operations.
|
void |
refresh(int i) |
void |
refreshDetailView()
updates the content shown in the detail view or resets the detail view to show nothing
|
void |
refreshPerformed(FormElementI fe)
Invoked when a refresh is performed on the form element.
|
void |
reload()
re-executes the query function in the item mapper (and triggers a refresh of the detail view).
|
void |
renderDisplayValue(AsyncRefreshRequestI r,
java.lang.Object value)
Renders the calculated value on the UI.
|
void |
replaceDetailViewBO(BO bo)
Updates the Detail View associated with this Scheduler to display a new Business Object.
|
void |
restoreLockstateOfDisplayValue()
Unlocks the UI component that displays the value again.
|
void |
selectBO(BO toSelect)
Instructs the owner to select or highlight a specific Business Object.
|
void |
selectItem(java.lang.Object bo) |
void |
setGroupClass(java.lang.Class<?> clazz) |
void |
setInitialDate(java.util.Date d) |
void |
setItemClass(java.lang.Class<? extends BO> itemClass) |
void |
setProperty(java.lang.String property) |
void |
setRange(java.lang.String range) |
void |
setSnapUnit(java.lang.String minItemUnit) |
void |
setSnapUnitCount(int minItemUnitCount) |
void |
setType(java.lang.String type) |
void |
setViewOnly(boolean viewOnly) |
void |
showDate(java.util.Date d) |
void |
syncPerformed(FormElementI fe)
Invoked when a synchronization action is performed on the form element.
|
static void |
wrapSchedulerWithBorder(electric.xml.Elements elements)
looks through the collection of xml elements for Scheduler elements
and adds a "default" Border around any Scheduler without border that are found
|
_refreshActions, action_editForm_available, action_editForm_enabled, action_editForm, action_refreshView_available, action_refreshView, action_reopenView_available, action_reopenView_enabled, action_reopenView, addFormElementListener, 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, getDefinitionErrorHandler, getFormActions, getFtx, getInstrumentedSchema, getLastRefreshRequest, getMaximumSize, getMinimumSize, getMissingPropertiesPolicy, getPreferredSize, getRefreshRequestsPending, getSchema, handleActionE, handleDropAllowedIfE, handleEditableA, handleEditableIfE, handleImpliedA, handleMaximumSizeA, handleMaxSizeA, handleMinimumSizeA, handleMinSizeA, handleMissingPropertiesPolicyA, handleNameA, 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, postRefresh, postRefresh, processFocusVeto, processFocusVeto, queueDelayedRefresh, queueDelayedRefresh, reallyHandleVirtualPropertyE, refresh, refreshActions, registerActionImpl, registerDefinitionErrorHandler, registerFormAction, removeFormElementListener, requestFocus, requestFocusInWindow, requestFocusInWindow, runAndDeclare, runAndDeclare, setConfRoot, setDebug, setEditable, setFtx, setGUIBuilt, setMissingPropertiesPolicy, setShown, shouldShow, sync, syncImpl, waitForAsyncRefreshes, willCareForChildActions, willCareForChildRefreshgetPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollingMode, grabFocus, init, init, init, paintComponent, setScrollingMode, setTexturegetAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, 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, setEnabled, 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, hasFocus, 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, waitgetInvolvedBOsForMandatoryCheckaddBeanA, addBeanA, addFormElementListener, addHandleA, addHandleA, addHandleE, addHandleE, afterSave, afterSetValue, applyL10n, beforeSave, beforeSetValue, getActions, getActionsOfKind, getConfRoot, getCtx, getDebugName, getDefinitionErrorHandler, getElementConsideringIgnored, getFtx, getName, getSchema, handleAttributes, handleElement, handleElements, handleElements, handleElements, handleElements, handleError, handleNewElement, handleNewElement, handleNewElement, isClosed, isDebug, isEditable, isGUIBuilt, isIgnored, isInputPossible, isShown, mdiActivate, mdiClose, mdiDeactivate, mdiOpen, performAdditionalFormElementDefinitionChecks, postInit, postRefresh, refresh, removeFormElementListener, requestFocus, setEditable, showError, showError, sync, toDebugName, willCareForChildActions, willCareForChildRefreshpublic static final java.lang.String BORDER_ATT_PREFIX
public static final java.lang.String VIEW_TYPE_TIMETABLE
public static final java.lang.String VIEW_TYPE_RESOURCES
public static final java.lang.String VIEW_TYPE_SINGLEMONTH
public FScheduler(FormContextI _ftx, electric.xml.Element _confRoot)
public static void wrapSchedulerWithBorder(electric.xml.Elements elements)
elements - list of subelements (e.g. of a View) to searchpublic java.util.HashMap<java.lang.String,MethodLocalizationWrapper> getAttributeMap()
FPanelSubclasses can and should override this method to provide their own attribute map.
getAttributeMap in interface FormElementIgetAttributeMap in class FPanelpublic java.util.HashMap getElementMap()
FPanelSubclasses can and should override this method to provide their own element map.
getElementMap in interface FormElementIgetElementMap in class FPanelpublic java.util.LinkedHashMap getDefaultActionMap()
FPanelSubclasses can and should override this method to provide their own default action map.
getDefaultActionMap in class FPanelpublic void buildGUI()
public void close()
close in interface FormElementIclose in class FPanelpublic boolean action_zoomIn_enabled()
public void action_zoomIn()
public boolean action_zoomOut_enabled()
public void action_zoomOut()
public boolean action_newElement_available()
public void action_newElement()
public boolean action_deleteSelected_available()
public boolean action_deleteSelected_enabled()
public void action_deleteSelected()
public java.util.Set<? extends BO> getSelectedItems()
public void selectItem(java.lang.Object bo)
public void showDate(java.util.Date d)
public void refresh(int i)
refresh in interface FormElementIrefresh in class FPanelpublic void refreshDetailView()
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 value)
AsyncRefreshExecutorIrenderDisplayValue in interface AsyncRefreshExecutorIr - The original refresh request.value - The raw Object value returned by the calculateDisplayValue method,
or a caught Exception.public void reload()
public void restoreLockstateOfDisplayValue()
AsyncRefreshExecutorIrestoreLockstateOfDisplayValue in interface AsyncRefreshExecutorIpublic void lockDisplayValue()
AsyncRefreshExecutorIlockDisplayValue in interface AsyncRefreshExecutorIpublic void handlePropertyA(java.lang.String value)
public void handleItemClassA(java.lang.String value)
public void handleGroupClassA(java.lang.String value)
public void handleAutoRefreshA(java.lang.String value)
public void handleViewOnlyA(java.lang.String value)
public void handleRangeA(java.lang.String value)
public void handleBackgroundA(java.lang.String value)
public void handleForegroundA(java.lang.String value)
public void handleGridColorA(java.lang.String value)
public void handleHeaderColorA(java.lang.String value)
public void handleSnapUnitA(java.lang.String value)
public void handleTypeA(java.lang.String value)
public void handleNoNavigationA(java.lang.String value)
public void handleAllowOverlapsA(java.lang.String value)
public void handleDatatipFormatA(java.lang.String value)
public void handleWorkHoursA(java.lang.String value)
public void handleDataMapperE(electric.xml.Element e)
public void handleNewItemE(electric.xml.Element e)
public void handleOnItemClickE(electric.xml.Element e)
public void handleOnContactClickE(electric.xml.Element e)
public void handleOnAfterSelectValueE(electric.xml.Element e)
public void handleValidIfE(electric.xml.Element e)
public void handleDetailViewE(electric.xml.Element e)
public java.lang.String getProperty()
public void setProperty(java.lang.String property)
public java.lang.Class<? extends BO> getItemClass()
public void setItemClass(java.lang.Class<? extends BO> itemClass)
public java.lang.Class<?> getGroupClass()
public void setGroupClass(java.lang.Class<?> clazz)
public boolean isViewOnly()
public void setViewOnly(boolean viewOnly)
public java.lang.String getRange()
public void setRange(java.lang.String range)
public void setType(java.lang.String type)
public java.util.Date getInitialDate()
public void setInitialDate(java.util.Date d)
public java.lang.String getSnapUnit()
public void setSnapUnit(java.lang.String minItemUnit)
public int getSnapUnitCount()
public void setSnapUnitCount(int minItemUnitCount)
public FDetailView getDetailView()
DetailViewOwnerIgetDetailView in interface DetailViewOwnerIFDetailView, or null if not initialized.public java.util.Set<BO> getKnownBOs()
DetailViewOwnerIThis usually includes BOs that have been loaded into the model, regardless of whether they have been modified or are currently visible.
getKnownBOs in interface DetailViewOwnerInull (return an empty set instead).public void selectBO(BO toSelect)
DetailViewOwnerIIf the BO is part of the current model, it should be highlighted. Implementations should define behavior for BOs not currently loaded (e.g. ignoring the request or triggering a lazy load).
selectBO in interface DetailViewOwnerItoSelect - the Business Object to select.public void replaceDetailViewBO(BO bo)
This implementation includes an **equality check optimization**:
bo with the one currently held by the detail view.This prevents expensive and unnecessary re-rendering of the scheduler interface when the data context hasn't actually changed.
replaceDetailViewBO in interface DetailViewOwnerIbo - the new Business Object to display.public void syncPerformed(FormElementI fe)
FormElementListenerIsyncPerformed in interface FormElementListenerIfe - The form element triggering the synchronization event.public void beforeSavePerformed(FormElementI fe)
FormElementListenerIbeforeSavePerformed in interface FormElementListenerIfe - The form element that initiated the save operation.public void afterSavePerformed(FormElementI fe)
FormElementListenerIafterSavePerformed in interface FormElementListenerIfe - The form element that initiated the save operation.public void refreshPerformed(FormElementI fe)
FormElementListenerIrefreshPerformed in interface FormElementListenerIfe - The form element being refreshed.public void beforeSetValuePerformed(FormElementI fe, java.lang.Object old, java.lang.Object o)
FormElementListenerIThis method allows listeners to inspect the proposed change before it is applied.
beforeSetValuePerformed in interface FormElementListenerIfe - The form element targeting the value change.old - The current value held by the element.o - The new value proposed to be set.public void afterSetValuePerformed(FormElementI fe, java.lang.Object old, java.lang.Object o)
FormElementListenerIafterSetValuePerformed in interface FormElementListenerIfe - The form element where the value change occurred.old - The value of the element prior to the change.o - The new value that has been set.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.