public class FView extends FRootPane
Modifier and Type | Field and Description |
---|---|
static java.util.LinkedHashMap |
myActions |
static java.util.HashMap |
myAttributes |
static java.util.HashMap |
myElements |
XMLConfigureInfo
inhibitFocusChange, SCROLLING_MODE_ANY, SCROLLING_MODE_HORIZONTAL_ONLY, SCROLLING_MODE_VERTICAL_ONLY, TEXTURE_CENTERED, TEXTURE_REPEAT
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ALL_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 |
---|
FView(FormContextI _ftx,
electric.xml.Element _confroot) |
Modifier and Type | Method and Description |
---|---|
FElement |
appendElement(java.lang.String src)
Dynamically builds an element from the passed source, sets the BO of its new sub-
form-context to the passed BO and appends the element dynamically to this FView.
|
FElement |
appendElement(java.lang.String src,
BO bo) |
FElement |
appendElement(java.lang.String src,
BO bo,
boolean instantRefresh) |
void |
buildGUI() |
double |
calculateDefaultRightFill() |
void |
close() |
void |
dumpContainer() |
void |
dumpContainer(java.awt.Container c) |
void |
dumpContents(java.awt.Container c,
int indent) |
void |
dumpSingleComponent(java.awt.Component c,
int indent) |
void |
fhide()
Executes custom actions when the component becomes hidden.
|
java.util.LinkedHashMap |
getActions()
Retrieves a list of all actions associated with this MDI root element.
|
java.util.HashMap |
getAttributeMap()
Returns the map of attributes supported by this FPanel.
|
int |
getBaseline(int width,
int height) |
java.lang.String |
getBottomGridAlign() |
int |
getColumns() |
java.util.LinkedHashMap |
getDefaultActionMap()
Returns the default action map for this FPanel.
|
double |
getDefaultHSpaceDist() |
double |
getDefaultRightFill() |
FView |
getDelegatableParent() |
FView |
getDelegatorView() |
java.util.HashMap |
getElementMap()
Returns the map of elements supported by this FPanel.
|
java.lang.Integer |
getExternalHGap() |
java.lang.Integer |
getExternalVGap() |
de.ipcon.swing.layout.FormPanel |
getFormPanel() |
java.lang.Integer |
getInternalHGap() |
java.lang.Integer |
getInternalVGap() |
FElement |
getLastFElement() |
java.awt.Dimension |
getMinimumSize() |
int |
getScrollingMode() |
java.awt.Color |
getTint() |
java.lang.String |
getTopGridAlign() |
void |
handleBorderA(electric.xml.Attribute a) |
void |
handleDefaultHSpaceDistA(electric.xml.Attribute a) |
void |
handleDefaultRightFillA(electric.xml.Attribute a) |
FormElementI |
handleElementE(electric.xml.Element e) |
void |
handleExternalHGapA(electric.xml.Attribute a) |
void |
handleExternalVGapA(electric.xml.Attribute a) |
void |
handleInternalHGapA(electric.xml.Attribute a) |
void |
handleInternalVGapA(electric.xml.Attribute a) |
void |
handleScrollableA(electric.xml.Attribute a) |
void |
handleTintA(electric.xml.Attribute a) |
void |
invalidate() |
boolean |
isAnyElementVisible() |
boolean |
isAutoHideElements() |
boolean |
isBuildRowsFirst() |
boolean |
isChildOfAnotherView() |
boolean |
isDelegateToParent() |
boolean |
isHideElementsForNullBO() |
boolean |
isScrollable() |
void |
refresh() |
void |
refresh(int from) |
void |
refreshActions()
Schedules or immediately executes a refresh of the form actions associated with this panel.
|
void |
removeAllElements() |
boolean |
removeElement(FElement _el) |
boolean |
requestFocusInWindow()
Requests that this component gets the keyboard focus, specifically within its own window.
|
void |
setAutoHideElements(boolean $27) |
void |
setBottomGridAlign(java.lang.String $32) |
void |
setBuildRowsFirst(boolean $26) |
void |
setColumns(int $25) |
void |
setDefaultHSpaceDist(double $22) |
void |
setDefaultRightFill(double $21) |
void |
setDelegateToParent(boolean $29) |
void |
setExternalHGap(java.lang.Integer $17) |
void |
setExternalVGap(java.lang.Integer $18) |
void |
setFormPanel(de.ipcon.swing.layout.FormPanel $16) |
void |
setHideElementsForNullBO(boolean $28) |
void |
setInternalHGap(java.lang.Integer $19) |
void |
setInternalVGap(java.lang.Integer $20) |
void |
setScrollable(boolean $23) |
void |
setScrollingMode(int $24) |
void |
setTint(java.awt.Color $30) |
void |
setTopGridAlign(java.lang.String $31) |
action_allowPrebuiltModification_available, action_allowPrebuiltModification, action_close, action_copyId_available, action_copyId_enabled, action_copyId, action_copyXmlExport_available, action_copyXmlExport, action_delete_enabled, action_delete, action_enter_available, action_enter, action_ok_enabled, action_ok, action_print_available, action_print, action_save_enabled, action_save, checkPoint, closeSelfAndView, confirmDelete, confirmDelete, confirmSave, getCurrentlyFocusedFormElement, getCurrentlyFocusedFormElementIfChildOf, getDefaultButton, getExplicitIFC, getL10nBundle, getMDIHeight, getMDIWidth, handleCloseVetoE, handleConflictPolicyA, handleHeightA, handleIgnoreOtherLocalTransactionSavesA, handleL10nBundleA, handleOnBeforeMandatoryCheckE, handleOnCloseE, handleUseMaximumHeightA, handleUseMaximumWidthA, handleWidthA, hasDefaultButton, hasUnfullfilledMandatories, isIgnoreOtherLocalTransactionSaves, isInitialCdeFocus, isPrintingPossible, isUseMaximumHeight, isUseMaximumWidth, mdiActivate, newProcs, postInit, processFocusVeto, putIntoClipboard, save, save, save, setExplicitIFC, setIgnoreOtherLocalTransactionSaves, setInitialCdeFocus, setL10nBundle, setMDIHeight, setMDIWidth, setUseMaximumHeight, setUseMaximumWidth, syncCurrentlyFocusedFormElement
_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, focusNextComponent, focusPreviousComponent, fshow, getActions, getActionsOfKind, getActionsOfKind, getBO, getConfRoot, getCtx, getDebugName, getFormActions, getFtx, getInstrumentedSchema, getLastRefreshRequest, getMaximumSize, getMissingPropertiesPolicy, getPreferredSize, getRefreshRequestsPending, getSchema, handleActionE, handleAttributes, 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, mdiClose, mdiDeactivate, mdiOpen, postConstructor, postRefresh, postRefresh, postRefresh, processFocusVeto, queueDelayedRefresh, queueDelayedRefresh, reallyHandleVirtualPropertyE, refreshActions, registerActionImpl, registerFormAction, removeFormElementListener, requestFocus, requestFocusInWindow, runAndDeclare, runAndDeclare, setConfRoot, setDebug, setEditable, setFtx, setGUIBuilt, setMissingPropertiesPolicy, setShown, shouldShow, sync, syncImpl, waitForAsyncRefreshes, willCareForChildActions, willCareForChildRefresh
getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, grabFocus, init, init, init, paintComponent, setTexture
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, 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, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, 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, transferFocusUpCycle
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, toDebugName
public static java.util.HashMap myAttributes
public static java.util.HashMap myElements
public static java.util.LinkedHashMap myActions
public FView(FormContextI _ftx, electric.xml.Element _confroot)
public void close()
close
in interface FormElementI
close
in class FRootPane
public void fhide()
FPanel
This method is a placeholder for any cleanup or state changes that need to occur when the component is no longer visible. The current implementation does nothing. Subclasses may override this.
public void removeAllElements()
public FElement appendElement(java.lang.String src)
src
- the xml-source code to build the element frombo
- the BO to bind to the sub-form-context of the new elementinstantRefresh
- a boolean indicating if a refreshForms() should be
called on the form-context of the new elementIRuntimeException
- if the xml-code of the passed source is malformedpublic boolean removeElement(FElement _el)
public void buildGUI()
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class FPanel
public void invalidate()
invalidate
in class java.awt.Container
public boolean isChildOfAnotherView()
public double calculateDefaultRightFill()
public FView getDelegatorView()
public FView getDelegatableParent()
public de.ipcon.swing.layout.FormPanel getFormPanel()
public int getBaseline(int width, int height)
getBaseline
in class javax.swing.JComponent
public void handleBorderA(electric.xml.Attribute a)
public void handleExternalHGapA(electric.xml.Attribute a)
public void handleExternalVGapA(electric.xml.Attribute a)
public void handleInternalHGapA(electric.xml.Attribute a)
public void handleInternalVGapA(electric.xml.Attribute a)
public void handleDefaultRightFillA(electric.xml.Attribute a)
public void handleDefaultHSpaceDistA(electric.xml.Attribute a)
public void handleScrollableA(electric.xml.Attribute a)
public void handleTintA(electric.xml.Attribute a)
public FormElementI handleElementE(electric.xml.Element e)
public java.util.HashMap getAttributeMap()
FPanel
Subclasses can and should override this method to provide their own attribute map.
getAttributeMap
in interface FormElementI
getAttributeMap
in class FRootPane
public java.util.HashMap getElementMap()
FPanel
Subclasses can and should override this method to provide their own element map.
getElementMap
in interface FormElementI
getElementMap
in class FRootPane
public java.util.LinkedHashMap getDefaultActionMap()
FPanel
Subclasses can and should override this method to provide their own default action map.
getDefaultActionMap
in class FRootPane
public boolean requestFocusInWindow()
FPanel
This method overrides JComponent.requestFocusInWindow()
and delegates
to the more specific FPanel.requestFocusInWindow(boolean)
with "temporary" set to false
.
requestFocusInWindow
in class FPanel
true
if the focus request is likely to be granted, false
otherwise.public void refresh()
refresh
in interface FormElementI
refresh
in class FPanel
public void refresh(int from)
refresh
in interface FormElementI
refresh
in class FPanel
public void dumpContainer()
public void dumpContainer(java.awt.Container c)
public void dumpContents(java.awt.Container c, int indent)
public void dumpSingleComponent(java.awt.Component c, int indent)
public FElement getLastFElement()
public void refreshActions()
FPanel
This method ensures that the "_refreshActions()" logic is executed only once per refresh request. It uses an AtomicBoolean ("scheduledUpdate") to prevent multiple simultaneous or redundant refresh operations from being scheduled.
The refresh can be performed either synchronously (blocking the calling thread until completion) or asynchronously (executing on the Event Dispatch Thread without blocking), depending on the "sync" parameter.
refreshActions
in class FPanel
public boolean isAnyElementVisible()
public void setFormPanel(de.ipcon.swing.layout.FormPanel $16)
public java.lang.Integer getExternalHGap()
public void setExternalHGap(java.lang.Integer $17)
public java.lang.Integer getExternalVGap()
public void setExternalVGap(java.lang.Integer $18)
public java.lang.Integer getInternalHGap()
public void setInternalHGap(java.lang.Integer $19)
public java.lang.Integer getInternalVGap()
public void setInternalVGap(java.lang.Integer $20)
public double getDefaultRightFill()
public void setDefaultRightFill(double $21)
public double getDefaultHSpaceDist()
public void setDefaultHSpaceDist(double $22)
public boolean isScrollable()
public void setScrollable(boolean $23)
public int getScrollingMode()
getScrollingMode
in class de.ipcon.swing.IPanel
public void setScrollingMode(int $24)
setScrollingMode
in class de.ipcon.swing.IPanel
public int getColumns()
public void setColumns(int $25)
public boolean isBuildRowsFirst()
public void setBuildRowsFirst(boolean $26)
public boolean isAutoHideElements()
public void setAutoHideElements(boolean $27)
public boolean isHideElementsForNullBO()
public void setHideElementsForNullBO(boolean $28)
public boolean isDelegateToParent()
public void setDelegateToParent(boolean $29)
public java.awt.Color getTint()
public void setTint(java.awt.Color $30)
public java.lang.String getTopGridAlign()
public void setTopGridAlign(java.lang.String $31)
public java.lang.String getBottomGridAlign()
public void setBottomGridAlign(java.lang.String $32)
public java.util.LinkedHashMap getActions()
The returned LinkedHashMap
ensures that the order of actions is
maintained, typically reflecting their insertion order. This is important
for consistent display in menus or toolbars.
LinkedHashMap
where keys are action identifiers (e.g. String
)
and values are the corresponding action objects (e.g. Action
,
or a custom action type (e.g. FormAction
).
The map should contain all top-level actions of this MDI root element, preferably in a sorted order.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.