Package Summary  Overview Summary

class:DefaultTreeCellEditor.EditorContainer [NONE]

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Enclosing class:
DefaultTreeCellEditor

public class DefaultTreeCellEditor.EditorContainer
extends Container
Container responsible for placing the editingComponent.

constructor:DefaultTreeCellEditor.EditorContainer() [NONE]

  • EditorContainer

    public EditorContainer()
    Constructs an EditorContainer object.

method:EditorContainer() [NONE]

  • EditorContainer

    public void EditorContainer()
    Do not use.
  • method:paint(java.awt.Graphics) [NONE]

    paint

    public void paint?(Graphics g)
    Overrides Container.paint to paint the node's icon and use the selection color for the background.
    Overrides:
    paint in class Container
    Parameters:
    g - the specified Graphics window
    See Also:
    Component.update(Graphics)

    method:doLayout() [NONE]

    doLayout

    public void doLayout()
    Lays out this Container. If editing, the editor will be placed at offset in the x direction and 0 for y.
    Overrides:
    doLayout in class Container
    See Also:
    LayoutManager.layoutContainer(java.awt.Container), Container.setLayout(java.awt.LayoutManager), Container.validate()

    method:getPreferredSize() [NONE]

    getPreferredSize

    public Dimension getPreferredSize()
    Returns the preferred size for the Container. This will be at least preferred size of the editor plus offset.
    Overrides:
    getPreferredSize in class Container
    Returns:
    a Dimension containing the preferred size for the Container; if editingComponent is null the Dimension returned is 0, 0
    See Also:
    Container.getMinimumSize(), Container.getMaximumSize(), Container.getLayout(), LayoutManager.preferredLayoutSize(Container), Component.getPreferredSize()

    © 2020 Oracle Corporation and/or its affiliates