public abstract class FTextInputComponent extends FInputPanel implements java.awt.event.FocusListener, javax.swing.event.DocumentListener, AsyncRefreshExecutorI, InitialFocusCandidateI
myActions, myAttributes, myElementsXMLConfigureInfoinhibitFocusChange, 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_ALIGNMENT$0ALL_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 |
|---|
FTextInputComponent(FormContextI ftx,
electric.xml.Element confRoot) |
| Modifier and Type | Method and Description |
|---|---|
void |
changedUpdate(javax.swing.event.DocumentEvent e) |
void |
close() |
void |
disable() |
void |
enable() |
void |
focusGained(java.awt.event.FocusEvent fe)
implementation for FocusListener: call of method selectAll()
|
void |
focusLost(java.awt.event.FocusEvent fe)
implementation for FocusListener: call of method selectNone()
|
java.lang.Integer |
getAlign() |
int |
getBaseline(int width,
int height)
Returns the baseline of the component.
|
java.lang.Integer |
getColumns() |
java.lang.String |
getExplicitNullProperty() |
java.lang.String |
getFallbackProperty() |
java.lang.String |
getFontSize() |
java.lang.String |
getFontStyle() |
javax.swing.JComponent |
getInitialFocus() |
javax.swing.JComponent |
getJComponent()
Returns the "JComponent" associated with this form element.
|
java.lang.String |
getProperty() |
java.lang.String |
getSelectedText() |
int |
getSelectionEnd() |
int |
getSelectionStart() |
java.lang.String |
getText() |
abstract javax.swing.text.JTextComponent |
getTextComponent() |
boolean |
hasFocus() |
void |
insertUpdate(javax.swing.event.DocumentEvent e) |
boolean |
isSelectAllWhenFocused() |
void |
performAdditionalFormElementDefinitionChecks() |
void |
postRefresh() |
void |
postRefresh(int from) |
void |
refresh(int from) |
void |
removeUpdate(javax.swing.event.DocumentEvent e) |
boolean |
requestFocusInWindow()
Requests that this component gets the keyboard focus, specifically within its own window.
|
void |
selectAll()
Selects complete text of getTextComponent().
|
void |
selectNone()
Removes text selection of getTextComponent().
|
void |
setAlign(java.lang.Integer align) |
void |
setColumns(java.lang.Integer columns) |
boolean |
setEditable() |
boolean |
setEditable(boolean editable)
Added to toggle the textbox's enabled property.
|
void |
setEnabled() |
void |
setEnabled(boolean enabled) |
void |
setExplicitNullProperty(java.lang.String explicitNullProperty) |
void |
setFallbackProperty(java.lang.String fallbackProperty) |
void |
setFontSize(java.lang.String fontSize) |
void |
setFontStyle(java.lang.String fontStyle) |
void |
setProperty(java.lang.String property) |
void |
setSelectAllWhenFocused(boolean selectAllWhenFocused) |
void |
setText(java.lang.String str) |
void |
setText(java.lang.String str,
boolean doSync) |
boolean |
updateEditableStatus() |
boolean |
updateEditableStatus(boolean otherConstraint) |
calculateMandatory, getAlsoMandatoryIf, getAttributeMap, getDefaultActionMap, getElementMap, handleAlsoMandatoryIfE_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, processFocusVeto, processFocusVeto, queueDelayedRefresh, queueDelayedRefresh, reallyHandleVirtualPropertyE, refresh, refreshActions, refreshActions, registerActionImpl, registerDefinitionErrorHandler, registerFormAction, removeFormElementListener, requestFocus, requestFocusInWindow, runAndDeclare, runAndDeclare, setConfRoot, setDebug, 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, 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, waitcalculateDisplayValue, lockDisplayValue, renderDisplayValue, restoreLockstateOfDisplayValueaddBeanA, addBeanA, addHandleA, addHandleA, addHandleE, addHandleE, applyL10n, getElementConsideringIgnored, getName, handleAttributes, handleElement, handleElements, handleElements, handleElements, handleElements, handleError, handleNewElement, handleNewElement, handleNewElement, isIgnored, showError, showError, toDebugNamepublic FTextInputComponent(FormContextI ftx, electric.xml.Element confRoot)
public java.lang.String getProperty()
public void setProperty(java.lang.String property)
public java.lang.String getFontStyle()
public void setFontStyle(java.lang.String fontStyle)
public java.lang.String getFontSize()
public void setFontSize(java.lang.String fontSize)
public java.lang.Integer getColumns()
public void setColumns(java.lang.Integer columns)
public java.lang.Integer getAlign()
public void setAlign(java.lang.Integer align)
public boolean isSelectAllWhenFocused()
public void setSelectAllWhenFocused(boolean selectAllWhenFocused)
public java.lang.String getFallbackProperty()
public void setFallbackProperty(java.lang.String fallbackProperty)
public java.lang.String getExplicitNullProperty()
public void setExplicitNullProperty(java.lang.String explicitNullProperty)
public abstract javax.swing.text.JTextComponent getTextComponent()
public void performAdditionalFormElementDefinitionChecks()
performAdditionalFormElementDefinitionChecks in interface FormElementIpublic void close()
close in interface FormElementIclose in class FPanelpublic void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate in interface javax.swing.event.DocumentListenerpublic void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate in interface javax.swing.event.DocumentListenerpublic void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate in interface javax.swing.event.DocumentListenerpublic void setText(java.lang.String str)
public void setText(java.lang.String str,
boolean doSync)
public java.lang.String getText()
public java.lang.String getSelectedText()
public int getSelectionStart()
public int getSelectionEnd()
public void selectAll()
public void selectNone()
public boolean setEditable()
public boolean setEditable(boolean editable)
setEditable in interface FormElementIsetEditable in class FPanelpublic boolean updateEditableStatus()
public boolean updateEditableStatus(boolean otherConstraint)
public void setEnabled()
public void setEnabled(boolean enabled)
setEnabled in class javax.swing.JComponentpublic void disable()
disable in class javax.swing.JComponentpublic void enable()
enable in class javax.swing.JComponentpublic boolean requestFocusInWindow()
FPanelThis method overrides JComponent.requestFocusInWindow() and delegates
to the more specific FPanel.requestFocusInWindow(boolean) with "temporary" set to false.
requestFocusInWindow in class FPaneltrue if the focus request is likely to be granted, false otherwise.public javax.swing.JComponent getInitialFocus()
getInitialFocus in interface InitialFocusCandidateIpublic javax.swing.JComponent getJComponent()
FInputPanelgetJComponent in class FInputPanelpublic boolean hasFocus()
hasFocus in class java.awt.Componentpublic void focusGained(java.awt.event.FocusEvent fe)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent fe)
focusLost in interface java.awt.event.FocusListenerpublic int getBaseline(int width,
int height)
FInputPanelgetBaseline in class FInputPanelwidth - The width to get the baseline for.height - The height to get the baseline for.public void refresh(int from)
refresh in interface FormElementIrefresh in class FPanelpublic void postRefresh()
postRefresh in class FPanelpublic void postRefresh(int from)
postRefresh in interface FormElementIpostRefresh in class FPanelCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.