Whole document tree
Java 2 Platform SE v1.3.1: Class DefaultTreeCellEditor.DefaultTextField
javax.swing.tree
Class DefaultTreeCellEditor.DefaultTextField
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.text.JTextComponent
|
+--javax.swing.JTextField
|
+--javax.swing.tree.DefaultTreeCellEditor.DefaultTextField
All Implemented Interfaces: Accessible , ImageObserver , MenuContainer , Scrollable , Serializable , SwingConstants
Enclosing class: DefaultTreeCellEditor
public class DefaultTreeCellEditor.DefaultTextField extends JTextField
TextField used when no editor is supplied. This textfield locks into
the border it is constructed with. It also prefers its parents
font over its font. And if the renderer is not null and no font
has been specified the preferred height is that of the renderer.
See Also: Serialized Form
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
Method Summary
Border
getBorder ()
Overrides JComponent.getBorder
to
returns the current border.
Font
getFont ()
Gets the font of this component.
Dimension
getPreferredSize ()
Overrides JTextField.getPreferredSize
to
return the preferred size based on current font, if set,
or else use renderer's font.
Methods inherited from class javax.swing.JTextField
addActionListener , configurePropertiesFromAction , createActionPropertyChangeListener , createDefaultModel , fireActionPerformed , getAccessibleContext , getAction , getActions , getColumns , getColumnWidth , getHorizontalAlignment , getHorizontalVisibility , getScrollOffset , getUIClassID , isValidateRoot , paramString , postActionEvent , removeActionListener , scrollRectToVisible , setAction , setActionCommand , setColumns , setFont , setHorizontalAlignment , setScrollOffset
Methods inherited from class javax.swing.text.JTextComponent
addCaretListener , addInputMethodListener , addKeymap , copy , cut , fireCaretUpdate , 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 , processInputMethodEvent , 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 , firePropertyChange , fireVetoableChange , getActionForKeyStroke , getActionMap , getAlignmentX , getAlignmentY , getAutoscrolls , getBounds , getClientProperty , getComponentGraphics , 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 , paintBorder , paintChildren , paintComponent , paintImmediately , paintImmediately , print , printAll , printBorder , printChildren , printComponent , processComponentKeyEvent , processFocusEvent , processKeyBinding , processKeyEvent , processMouseMotionEvent , 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 , setUI , setVerifyInputWhenFocusTarget , setVisible , unregisterKeyboardAction , update
Methods inherited from class java.awt.Container
add , add , add , add , add , addContainerListener , addImpl , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getLayout , insets , invalidate , isAncestorOf , layout , list , list , locate , minimumSize , paintComponents , preferredSize , printComponents , processContainerEvent , processEvent , remove , remove , removeAll , removeContainerListener , setLayout , validate , validateTree
Methods inherited from class java.awt.Component
action , add , addComponentListener , addFocusListener , addHierarchyBoundsListener , addHierarchyListener , addKeyListener , addMouseListener , addMouseMotionListener , bounds , checkImage , checkImage , coalesceEvents , contains , createImage , createImage , disableEvents , dispatchEvent , enable , enableEvents , enableInputMethods , getBackground , getBounds , getColorModel , getComponentOrientation , getCursor , getDropTarget , 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 , processComponentEvent , processHierarchyBoundsEvent , processHierarchyEvent , processMouseEvent , 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
border
protected Border border
Border to use.
DefaultTreeCellEditor.DefaultTextField
public DefaultTreeCellEditor.DefaultTextField (Border border)
Constructs a DefaultTreeCellEditor$DefaultTextField object.
Parameters: border
- a Border object
getBorder
public Border getBorder ()
Overrides JComponent.getBorder
to
returns the current border.
Overrides: getBorder
in class JComponent
Following copied from class: javax.swing.JComponent
Returns: the border object for this component See Also: JComponent.setBorder(javax.swing.border.Border)
getFont
public Font getFont ()
Description copied from class: Component
Gets the font of this component.
Overrides: getFont
in class Component
Following copied from class: java.awt.Component
Returns: This component's font. If a font has not been set
for this component, the font of its parent is returned. See Also: Component.setFont(java.awt.Font)
getPreferredSize
public Dimension getPreferredSize ()
Overrides JTextField.getPreferredSize
to
return the preferred size based on current font, if set,
or else use renderer's font.
Overrides: getPreferredSize
in class JTextField
Following copied from class: javax.swing.JTextField
Returns: the dimensions
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation . That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.