|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
oracle.dacf.control.swing.TextAreaControl
A data aware control to display and text in multiple lines. TextAreaControl can be bound to an ImmediateAccess dataitem.
TextAreaControl is a composite control comprising of a JTextArea and a JScrollPane.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface oracle.dacf.control.Control |
DEFAULT_INFOBUS_NAME, EVENT_PROPERTY_ROW, EVENT_PROPERTY_ROW_CHANGE, EVENT_PROPERTY_ROW_COUNT, EVENT_PROPERTY_VIEW_CHANGE, EVENT_PROPERTY_VIEW_REFRESHED, EVENT_PROPERTY_VIEW_SCROLLED, EXCLUDE, HIDE, SHOW |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
TextAreaControl()
Constructs a default TextAreaControl |
|
TextAreaControl(javax.swing.text.Document doc)
Constructs a new TextAreaControl with the given document model, and defaults for all of the other arguments. |
|
TextAreaControl(javax.swing.text.Document doc,
java.lang.String text,
int rows,
int columns)
Constructs a new TextAreaControl with the specified number of rows and columns, and the given model. |
|
TextAreaControl(int rows,
int columns)
Constructs a new empty TextAreaControl with the specified number of rows and columns. |
|
TextAreaControl(java.lang.String text)
Constructs a new TextAreaControl with the specified text displayed. |
|
TextAreaControl(java.lang.String text,
int rows,
int columns)
Constructs a new TextAreaControl with the specified text and number of rows and columns. |
Method Summary | |
void |
addNavigatedListener(NavigatedListener listener)
Adds a navigated listener to this control. |
void |
addNavigatingListener(NavigatingListener listener)
Adds a navigating listener to this control. |
void |
applyEdits()
|
void |
cancelEdits()
|
void |
dataItemAdded(javax.infobus.DataItemAddedEvent event)
Indicates that a new item was added to the bound aggregate data item (e.g. |
void |
dataItemChanged(java.lang.Object oldDataItem,
java.lang.Object newDataItem)
Notifies the control that the bound InfoBus DataItem has changed. |
void |
dataItemDeleted(javax.infobus.DataItemDeletedEvent event)
Indicates that an item was deleted from the bound aggregate data item (e. |
void |
dataItemRevoked(javax.infobus.DataItemRevokedEvent event)
Indicates that the bound data item (and its sub-items, if any) has been revoked, and is temporarily unavailable. |
void |
dataItemValueChanged(javax.infobus.DataItemValueChangedEvent event)
Indicates a changed value in the bound data item. |
void |
enabledChanged(boolean b)
|
void |
focusGained(java.awt.event.FocusEvent event)
This method is an implementaion side effect |
void |
focusLost(java.awt.event.FocusEvent event)
This method is an implementaion side effect |
javax.swing.text.Caret |
getCaret()
Fetches the caret that allows text-oriented navigation over the view. |
java.awt.Color |
getCaretColor()
Fetches the current color used to render the caret. |
int |
getCaretPosition()
Returns the position of the text insertion caret for the text component. |
int |
getColumns()
Gets the number of columns to displayed in the underlying JTextArea |
java.awt.Component |
getComponent()
Returns the AWT component associated with this control. |
javax.swing.border.Border |
getControlBorder()
Returns the border of this component or null if no border is currently set. |
java.awt.Cursor |
getCursor()
Get the Cursor of this object. |
java.lang.Object |
getDataItem()
Returns the InfoBus DataItem this control is bound to. |
java.lang.String |
getDataItemName()
Returns the name of the InfoBus DataItem this control is bound to. |
java.awt.Color |
getDisabledTextColor()
Fetches the current color used to render the selected text. |
javax.swing.text.Document |
getDocument()
Fetches the model associated with the editor. |
char |
getFocusAccelerator()
Returns the key accelerator that will cause the receiving text component to get the focus. |
javax.swing.text.Highlighter |
getHighlighter()
Fetches the object responsible for making highlights. |
java.lang.String |
getInfoBusName()
Returns the name of the InfoBus this control is connected to. |
javax.swing.text.Keymap |
getKeymap()
Fetches the keymap currently active in this text component. |
java.awt.LayoutManager |
getLayout()
Gets the layout manager for this container. |
boolean |
getLineWrap()
Gets the line-wrapping policy of the text area. |
java.awt.Insets |
getMargin()
Returns the margin between the text component's border and its text. |
java.awt.Dimension |
getMaximumSize()
If the maximumSize has been set to a non-null value just return it. |
java.awt.Dimension |
getMinimumSize()
If the minimumSize has been set to a non-null value just return it. |
java.awt.Component |
getNextFocusableComponent()
Return the next focusable component or null if the focus manager should choose the next focusable component automatically |
java.awt.Dimension |
getPreferredSize()
If the preferredSize has been set to a non-null value just return it. |
java.lang.String |
getPresentationString(java.util.Locale locale)
Gets the entered text as an String. |
boolean |
getRevertValueOnError()
Returns the value for the RevertValueOnError property When this property is set to true then the TextFieldControl will revert to the value displayed prior to being edited. |
int |
getRows()
Gets the number of rows to displayed in the underlying JTextArea |
javax.swing.JScrollPane |
getScrollPane()
Returns the scrollpane used by the textarea control |
java.awt.Color |
getSelectedTextColor()
Fetches the current color used to render the selected text. |
java.awt.Color |
getSelectionColor()
Fetches the current color used to render the selection. |
int |
getSelectionEnd()
Returns the selected text's end position. |
int |
getSelectionStart()
Returns the selected text's start position. |
int |
getTabSize()
Gets the number of characters used to expand tabs. |
java.lang.String |
getText()
Returns the text contained in this TextAreaControl. |
javax.swing.JTextArea |
getTextArea()
Gets the underlying JTextArea used by this control |
java.lang.Object |
getValueAsObject()
Gets the entered text as an Object. |
java.lang.String |
getValueAsString()
Gets the entered text as a String. |
boolean |
getWrapStyleWord()
Get the style of wrapping used if the text area is wrapping lines. |
boolean |
isEditable()
Returns the boolean indicating whether this TextComponent is editable or not. |
boolean |
isEnabled()
Determine if the object is enabled. |
boolean |
isFocusValidated()
Determines whether focus into this control causes validation to occur. |
boolean |
isRequestFocusEnabled()
Return whether the receiving component can obtain the focus by calling requestFocus |
boolean |
isVisible()
Determine if the object is visible. |
void |
processNavigatedEvent(NavigatedEvent event)
Processes a navigated event for this control. |
void |
processNavigatingEvent(NavigatingEvent event)
Processes a navigating event for this control. |
void |
releaseResources(InfoBusManagerReleaseEvent e)
A signalling method used to indicate the the control should free all resources and unregister any listeners that it has registered. |
void |
removeNavigatedListener(NavigatedListener listener)
Removes a navigated listener from this control. |
void |
removeNavigatingListener(NavigatingListener listener)
Removes a previusly added navigating listener |
void |
rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent event)
Indicates that the cursor for the bound RowsetAccess data item has changed rows. |
void |
setCaret(javax.swing.text.Caret c)
Sets the caret to be used. |
void |
setCaretColor(java.awt.Color c)
Sets the current color used to render the caret. |
void |
setCaretPosition(int position)
Sets the position of the text insertion caret for the TextComponent. |
void |
setColumns(int columns)
Sets the number of columns to be displayed in the underlying JTextArea |
void |
setControlBorder(javax.swing.border.Border border)
Sets the border of this component. |
void |
setCursor(java.awt.Cursor cursor)
Set the Cursor of this object. |
void |
setDataItemName(java.lang.String dataItemName)
Sets the name of the InfoBus DataItem this control is bound to. |
void |
setDisabledTextColor(java.awt.Color c)
Sets the current color used to render the disabled text. |
void |
setDocument(javax.swing.text.Document doc)
Associates the editor with a text document. |
void |
setEditable(boolean b)
Sets the specified boolean to indicate whether or not this TextComponent should be editable. |
void |
setEnabled(boolean b)
Set the enabled state of the object. |
void |
setFocusAccelerator(char aKey)
Sets the key accelerator that will cause the receiving text component to get the focus. |
void |
setFocusValidated(boolean focusValidated)
Sets whether focus into this control causes validation to occur. |
void |
setHighlighter(javax.swing.text.Highlighter h)
Sets the highlighter to be used. |
void |
setInfoBusName(java.lang.String infoBusName)
Sets the name of the InfoBus this control is connected to. |
void |
setKeymap(javax.swing.text.Keymap map)
Sets the keymap to use for binding events to actions. |
void |
setLineWrap(boolean wrap)
Sets the line-wrapping policy of the text area. |
void |
setMargin(java.awt.Insets m)
Sets margin space between the text component's border and its text. |
void |
setMaximumSize(java.awt.Dimension maximumSize)
Sets the maximumSize of this component to a constant value. |
void |
setMinimumSize(java.awt.Dimension minimumSize)
Sets the minimumSize of this component to a constant value. |
void |
setNextFocusableComponent(java.awt.Component aComponent)
Specifies the next component to get the focus after this one, for example, when the tab key is pressed. |
void |
setOpaque(boolean isOpaque)
|
void |
setPreferredSize(java.awt.Dimension preferredSize)
Set the preferred size of the receiving component. |
void |
setRequestFocusEnabled(boolean aFlag)
Set whether the receiving component can obtain the focus by calling requestFocus. |
void |
setRevertValueOnError(boolean revertIt)
Sets the value for the RevertValueOnError property When this property is set to true then the TextFieldControl will revert to the value displayed prior to being edited. |
void |
setRows(int rows)
Sets the number of rows to be displayed in the underlying JTextArea |
void |
setSelectedTextColor(java.awt.Color c)
Sets the current color used to render the selected text. |
void |
setSelectionColor(java.awt.Color c)
Sets the current color used to render the selection. |
void |
setSelectionEnd(int selectionEnd)
Sets the selection end to the specified position. |
void |
setSelectionStart(int selectionStart)
Sets the selection start to the specified position. |
void |
setTabSize(int size)
Sets the number of characters to expand tabs to. |
void |
setText(java.lang.String t)
Sets the text of this TextAreaControl to the specified text. |
void |
setToolTipText(java.lang.String text)
Registers the text to display in a tool tip. |
void |
setValue(java.lang.Object newValue)
This method is not supported and always throws an exception |
void |
setVisible(boolean b)
Set the visible state of the object. |
void |
setWrapStyleWord(boolean word)
Set the style of wrapping used if the text area is wrapping lines. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TextAreaControl()
public TextAreaControl(java.lang.String text)
text
- the text to be displayedpublic TextAreaControl(int rows, int columns)
rows
- the number of rowscolumns
- the number of columnspublic TextAreaControl(java.lang.String text, int rows, int columns)
text
- the text to be displayedrows
- the number of rowscolumns
- the number of columnspublic TextAreaControl(javax.swing.text.Document doc)
doc
- the model to usepublic TextAreaControl(javax.swing.text.Document doc, java.lang.String text, int rows, int columns)
doc
- the model to usetext
- the text to be displayedrows
- the number of rowscolumns
- the number of columnsMethod Detail |
public void setRevertValueOnError(boolean revertIt)
revertIt
- the value for the RevertValueOnError property#()
,
public boolean getRevertValueOnError()
#()
,
public java.awt.Cursor getCursor()
public void setCursor(java.awt.Cursor cursor)
public void releaseResources(InfoBusManagerReleaseEvent e)
InfoBusManagerListener
releaseResources
in interface InfoBusManagerListener
public boolean isEnabled()
public void setEnabled(boolean b)
setEnabled
in interface Control
b
- if true, enables this object; otherwise, disables itpublic void enabledChanged(boolean b)
enabledChanged
in interface ControlEnabledListener
public boolean isVisible()
public void setVisible(boolean b)
b
- if true, shows this object; otherwise, hides itpublic java.awt.LayoutManager getLayout()
Container.setLayout(java.awt.LayoutManager)
public void setMaximumSize(java.awt.Dimension maximumSize)
getMaximumSize()
public java.awt.Dimension getMaximumSize()
setMaximumSize(java.awt.Dimension)
public void setMinimumSize(java.awt.Dimension minimumSize)
getMinimumSize()
public java.awt.Dimension getMinimumSize()
setMinimumSize(java.awt.Dimension)
public void setNextFocusableComponent(java.awt.Component aComponent)
public java.awt.Component getNextFocusableComponent()
public void setPreferredSize(java.awt.Dimension preferredSize)
preferredSize
is null, the UI will
be asked for the preferred size
public java.awt.Dimension getPreferredSize()
setPreferredSize(java.awt.Dimension)
public void setRequestFocusEnabled(boolean aFlag)
public boolean isRequestFocusEnabled()
#setRequestFocusEnabled()
public void setControlBorder(javax.swing.border.Border border)
This is a bound property.
border
- the border to be rendered for this componentpublic javax.swing.border.Border getControlBorder()
setBorder
public javax.swing.JTextArea getTextArea()
public void setOpaque(boolean isOpaque)
public void setToolTipText(java.lang.String text)
See How to Use Tool Tips in The Java Tutorial for further documentation.
text
- The string to display. If the text is null,
the tool tip is turned off for this component.JComponent.TOOL_TIP_TEXT_KEY
public javax.swing.text.Caret getCaret()
public void setCaret(javax.swing.text.Caret c)
c
- the caretgetCaret()
public java.awt.Color getCaretColor()
public void setCaretColor(java.awt.Color c)
c
- the colorgetCaretColor()
public void setCaretPosition(int position)
position
- the positionpublic int getCaretPosition()
public void setColumns(int columns)
columns
- the new rowcountjavax.swing.JTextArea#setColumns()
public int getColumns()
JTextArea.getColumns()
public java.awt.Color getDisabledTextColor()
public void setDisabledTextColor(java.awt.Color c)
c
- the colorgetDisabledTextColor()
public void setDocument(javax.swing.text.Document doc)
doc
- the document to display/editgetDocument()
public javax.swing.text.Document getDocument()
public boolean isEditable()
setEditable(boolean)
public void setEditable(boolean b)
b
- the boolean to be setisEditable()
public void setFocusAccelerator(char aKey)
aKey
- the keypublic char getFocusAccelerator()
public javax.swing.text.Highlighter getHighlighter()
public void setHighlighter(javax.swing.text.Highlighter h)
h
- the highlightergetHighlighter()
public void setKeymap(javax.swing.text.Keymap map)
map
- the keymapgetKeymap()
public javax.swing.text.Keymap getKeymap()
public void setLineWrap(boolean wrap)
wrap
- indicates if lines should be wrapped.getLineWrap()
public boolean getLineWrap()
public void setMargin(java.awt.Insets m)
m
- the space between the border and the textpublic java.awt.Insets getMargin()
public int getRows()
JTextArea.getRows()
public void setRows(int rows)
rows
- the new rowcountjavax.swing.JTextArea#setRows()
public java.awt.Color getSelectedTextColor()
public void setSelectedTextColor(java.awt.Color c)
c
- the colorgetSelectedTextColor()
public java.awt.Color getSelectionColor()
public void setSelectionColor(java.awt.Color c)
c
- the colorgetSelectionColor()
public int getSelectionEnd()
public void setSelectionEnd(int selectionEnd)
This is available for backward compatiblitity to code that called this method on java.awt.TextComponent. This is implemented to forward to the Caret implementation which is where the actual selection is maintained.
selectionEnd
- the end position of the text >= 0public int getSelectionStart()
public void setSelectionStart(int selectionStart)
This is available for backward compatiblitity to code that called this method on java.awt.TextComponent. This is implemented to forward to the Caret implementation which is where the actual selection is maintained.
selectionStart
- the start position of the text >= 0public void setTabSize(int size)
size
- number of characters to expand togetTabSize()
public int getTabSize()
public void setText(java.lang.String t)
t
- the new text to be setgetText()
public java.lang.String getText()
setText(java.lang.String)
public void setWrapStyleWord(boolean word)
word
- indicates if word boundries should be used
for line wrapping.#getWrapStyle
public boolean getWrapStyleWord()
public final java.lang.String getInfoBusName()
Most controls should delegate this method to ControlSupport.
getInfoBusName
in interface Control
ControlSupport.getInfoBusName()
public final void setInfoBusName(java.lang.String infoBusName)
If the named InfoBus does not exist, it is created automatically.
If the control is already connected to an InfoBus, it is disconnected first.
Most controls should delegate this method to ControlSupport.
setInfoBusName
in interface Control
infoBusName
- The name of the InfoBus to connect to.ControlSupport.setInfoBusName(java.lang.String)
public final java.lang.String getDataItemName()
Most controls should delegate this method to ControlSupport.
getDataItemName
in interface Control
getDataItem()
,
ControlSupport.getDataItemName()
public final void setDataItemName(java.lang.String dataItemName)
The DataItem with the given name is searched for on the InfoBus, and if found, is bound to this control.
If the control is already bound to a DataItem, it is unbound first.
Most controls should delegate this method to ControlSupport.
setDataItemName
in interface Control
dataItemName
- The name of the DataItem to bind to.getDataItem()
,
ControlSupport.setDataItemName(java.lang.String)
public final java.lang.Object getDataItem()
getDataItem
in interface Control
ControlSupport.getDataItem()
public final void dataItemChanged(java.lang.Object oldDataItem, java.lang.Object newDataItem)
The control can safely ignore this notification.
dataItemChanged
in interface Control
oldDataItem
- The formerly bound DataItem (can be null).newDataItem
- The newly bound DataItem (can be null).public final java.awt.Component getComponent()
getComponent
in interface Control
public final javax.swing.JScrollPane getScrollPane()
public final boolean isFocusValidated()
Most controls should delegate this method to ControlSupport.
isFocusValidated
in interface Control
ControlSupport.isFocusValidated()
public final void setFocusValidated(boolean focusValidated)
Delegates to ControlSupport.
setFocusValidated
in interface Control
focusValidated
- If true, focus into this control will
cause validation to occur.ControlSupport.setFocusValidated(boolean)
public final void addNavigatedListener(NavigatedListener listener)
The listener will be notified of NavigateIn and NavigateOut events.
Delegates to ControlSupport.
addNavigatedListener
in interface Control
listener
- The listener to add.ControlSupport.addNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void removeNavigatedListener(NavigatedListener listener)
removeNavigatedListener
in interface Control
listener
- The listener to remove.ControlSupport.removeNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void processNavigatedEvent(NavigatedEvent event)
This method is for use by the NavigationManager only.
processNavigatedEvent
in interface Control
event
- The navigated event.ControlSupport.processNavigatedEvent(oracle.dacf.control.NavigatedEvent)
public final void addNavigatingListener(NavigatingListener listener)
The listener will be notified of NavigatingEvents.
addNavigatingListener
in interface Control
listener
- The listener to add.ControlSupport.addNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void removeNavigatingListener(NavigatingListener listener)
removeNavigatingListener
in interface Control
listener
- The listener to remove.ControlSupport.removeNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void processNavigatingEvent(NavigatingEvent event) throws NavigatingException
This method is for use by the NavigationManager only.
processNavigatingEvent
in interface Control
event
- The navigating event.
NavigatingException
- Indicates navigation was rejected.ControlSupport.processNavigatedEvent(oracle.dacf.control.NavigatedEvent)
public final void dataItemValueChanged(javax.infobus.DataItemValueChangedEvent event)
A reference to the data item that changed can be obtained from the event.
dataItemValueChanged
in interface javax.infobus.DataItemChangeListener
event
- Contains change information.DataItemChangeListener.dataItemValueChanged(javax.infobus.DataItemValueChangedEvent)
public final void dataItemAdded(javax.infobus.DataItemAddedEvent event)
A reference to the data item that was added, and a reference to the one that gained it, can be obtained from the event.
dataItemAdded
in interface javax.infobus.DataItemChangeListener
event
- Contains details of the addition.DataItemChangeListener.dataItemAdded(javax.infobus.DataItemAddedEvent)
public final void dataItemDeleted(javax.infobus.DataItemDeletedEvent event)
A reference to the data item that was deleted, and a reference to the one that lost it, can be obtained from the event.
dataItemDeleted
in interface javax.infobus.DataItemChangeListener
event
- Contains details of the deletion.DataItemChangeListener.dataItemDeleted(javax.infobus.DataItemDeletedEvent)
public final void dataItemRevoked(javax.infobus.DataItemRevokedEvent event)
A reference to the data item that was revoked can be obtained from the event.
dataItemRevoked
in interface javax.infobus.DataItemChangeListener
event
- Contains details of the revoked data.DataItemChangeListener.dataItemRevoked(javax.infobus.DataItemRevokedEvent)
public final void rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent event)
A reference to the rowset data item can be obtained from the event.
rowsetCursorMoved
in interface javax.infobus.DataItemChangeListener
event
- Contains details of the cursor move.DataItemChangeListener.rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent)
public java.lang.String getValueAsString()
getValueAsString
in interface javax.infobus.ImmediateAccess
public java.lang.Object getValueAsObject()
getValueAsObject
in interface javax.infobus.ImmediateAccess
public java.lang.String getPresentationString(java.util.Locale locale)
getPresentationString
in interface javax.infobus.ImmediateAccess
public void setValue(java.lang.Object newValue) throws javax.infobus.InvalidDataException
setValue
in interface javax.infobus.ImmediateAccess
javax.infobus.InvalidDataException
- Always thrownpublic void focusLost(java.awt.event.FocusEvent event)
focusLost
in interface java.awt.event.FocusListener
public void focusGained(java.awt.event.FocusEvent event)
focusGained
in interface java.awt.event.FocusListener
public void applyEdits()
applyEdits
in interface ApplyEditsListener
public void cancelEdits()
cancelEdits
in interface ApplyEditsListener
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.