Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.util.gui
Class ViewTextField

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.text.JTextComponent
                          |
                          +--javax.swing.JTextField
                                |
                                +--oracle.dss.util.gui.ViewTextField
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.Scrollable, java.io.Serializable, javax.swing.SwingConstants

public class ViewTextField
extends javax.swing.JTextField

ViewTextField that supports underline, double underline, and strike through font.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.text.JTextComponent
javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.KeyBinding

 

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent

 

Fields inherited from class javax.swing.JTextField
notifyAction

 

Fields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY

 

Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST

 

Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH

 

Constructor Summary
ViewTextField()
          Default constructor.
ViewTextField(javax.swing.text.Document doc, java.lang.String text, int columns)
          Constructor that sets a text storage, the text, and the number of columns.
ViewTextField(int columns)
          Constructor that sets the number of columns.
ViewTextField(java.lang.String text)
          Constructor that sets the text.
ViewTextField(java.lang.String text, int columns)
          Constructor that sets the text and the number of columns.

 

Method Summary
 boolean isDoubleUnderline()
          Indicates whether the text field has a double underline.
 boolean isStrikeThrough()
          Indicates whether the label has a line through it.
 boolean isUnderline()
          Indicates whether the text field is underlined.
 void paintComponent(java.awt.Graphics g)
          Paints the text field.
 void setDoubleUnderline(boolean b)
          Specifies whether to double-underline the text.
 void setStrikeThrough(boolean b)
          Specifies whether to strike through the text.
 void setUnderline(boolean b)
          Specifies whether to underline the text.

 

Methods inherited from class javax.swing.JTextField
addActionListener, getAccessibleContext, getAction, getActions, getColumns, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setFont, setHorizontalAlignment, setScrollOffset

 

Methods inherited from class javax.swing.text.JTextComponent
addCaretListener, addInputMethodListener, addKeymap, copy, cut, getCaret, getCaretColor, getCaretPosition, getDisabledTextColor, getDocument, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getUI, isEditable, isFocusTraversable, loadKeymap, modelToView, moveCaretPosition, paste, read, removeCaretListener, removeKeymap, removeNotify, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setDisabledTextColor, setDocument, setEditable, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText, setUI, updateUI, viewToModel, write

 

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, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update

 

Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate

 

Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, 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, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ViewTextField

public ViewTextField()
Default constructor. The initial string is set to null, and the number of columns is set to 0.

ViewTextField

public ViewTextField(java.lang.String text)
Constructor that sets the text. The number of columns is set to 0.
Parameters:
text - The text to display, or null.

ViewTextField

public ViewTextField(int columns)
Constructor that sets the number of columns. The initial string is set to null.
Parameters:
columns - The number of columns to use to calculate the preferred width. If columns is set to 0, the preferred width will be whatever naturally results from the component implementation.

ViewTextField

public ViewTextField(java.lang.String text,
                     int columns)
Constructor that sets the text and the number of columns.
Parameters:
text - The text to display, or null.
columns - The number of columns to use to calculate the preferred width. If columns is set to 0, the preferred width will be whatever naturally results from the component implementation.

ViewTextField

public ViewTextField(javax.swing.text.Document doc,
                     java.lang.String text,
                     int columns)
Constructor that sets a text storage, the text, and the number of columns. This is the constructor through which the other constructors feed. If the document is null, a default model is created.
Parameters:
doc - The text storage to use. If this is null, a default will be provided by calling the createDefaultModel method.
text - The initial string to display, or null.
columns - The number of columns to use to calculate the preferred width >= 0. If columns is set to 0, the preferred width will be whatever naturally results from the component implementation.
Throws:
java.lang.IllegalArgumentException - if columns < 0.
Method Detail

paintComponent

public void paintComponent(java.awt.Graphics g)
Paints the text field.
Parameters:
g - The graphics context.

isUnderline

public boolean isUnderline()
Indicates whether the text field is underlined.
Returns:
true if the label is underlined, false if it is not underlined. The default is false.

isDoubleUnderline

public boolean isDoubleUnderline()
Indicates whether the text field has a double underline.
Returns:
true if the label has a double underline, false if it not. The default is false.

isStrikeThrough

public boolean isStrikeThrough()
Indicates whether the label has a line through it.
Returns:
true if the label has a line throught it false if it not. The default is false.

setUnderline

public void setUnderline(boolean b)
Specifies whether to underline the text.
Parameters:
b - true to underline the text, false to remove underlining.

setDoubleUnderline

public void setDoubleUnderline(boolean b)
Specifies whether to double-underline the text.
Parameters:
b - true to double-underline the text, false to remove underlining.

setStrikeThrough

public void setStrikeThrough(boolean b)
Specifies whether to strike through the text.
Parameters:
b - true to place a line through the text, false to remove the line.

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.