javax.swing.plaf.basic

Class BasicSplitPaneUI

    • Field Detail

      • NON_CONTINUOUS_DIVIDER

        protected static final String NON_CONTINUOUS_DIVIDER
        The divider used for non-continuous layout is added to the split pane with this object.
        See Also:
        Constant Field Values
      • KEYBOARD_DIVIDER_MOVE_OFFSET

        protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
        How far (relative) the divider does move when it is moved around by the cursor keys on the keyboard.
      • splitPane

        protected JSplitPane splitPane
        JSplitPane instance this instance is providing the look and feel for.
      • propertyChangeListener

        protected PropertyChangeListener propertyChangeListener
        Instance of the PropertyChangeListener for this JSplitPane.
      • focusListener

        protected FocusListener focusListener
        Instance of the FocusListener for this JSplitPane.
      • dividerSize

        protected int dividerSize
        The size of the divider while the dragging session is valid.
      • nonContinuousLayoutDivider

        protected Component nonContinuousLayoutDivider
        Instance for the shadow of the divider when non continuous layout is being used.
      • draggingHW

        protected boolean draggingHW
        Set to true in startDragging if any of the children (not including the nonContinuousLayoutDivider) are heavy weights.
      • beginDragDividerLocation

        protected int beginDragDividerLocation
        Location of the divider when the dragging session began.
      • upKey

        @Deprecated
        protected KeyStroke upKey
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • downKey

        @Deprecated
        protected KeyStroke downKey
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • leftKey

        @Deprecated
        protected KeyStroke leftKey
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • rightKey

        @Deprecated
        protected KeyStroke rightKey
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • homeKey

        @Deprecated
        protected KeyStroke homeKey
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • endKey

        @Deprecated
        protected KeyStroke endKey
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • dividerResizeToggleKey

        @Deprecated
        protected KeyStroke dividerResizeToggleKey
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • keyboardUpLeftListener

        @Deprecated
        protected ActionListener keyboardUpLeftListener
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • keyboardDownRightListener

        @Deprecated
        protected ActionListener keyboardDownRightListener
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • keyboardHomeListener

        @Deprecated
        protected ActionListener keyboardHomeListener
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • keyboardEndListener

        @Deprecated
        protected ActionListener keyboardEndListener
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
      • keyboardResizeToggleListener

        @Deprecated
        protected ActionListener keyboardResizeToggleListener
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
    • Constructor Detail

      • BasicSplitPaneUI

        public BasicSplitPaneUI()
    • Method Detail

      • installDefaults

        protected void installDefaults()
        Installs the UI defaults.
      • installListeners

        protected void installListeners()
        Installs the event listeners for the UI.
      • installKeyboardActions

        protected void installKeyboardActions()
        Installs the keyboard actions for the UI.
      • uninstallDefaults

        protected void uninstallDefaults()
        Uninstalls the UI defaults.
      • uninstallListeners

        protected void uninstallListeners()
        Uninstalls the event listeners for the UI.
      • uninstallKeyboardActions

        protected void uninstallKeyboardActions()
        Uninstalls the keyboard actions for the UI.
      • createPropertyChangeListener

        protected PropertyChangeListener createPropertyChangeListener()
        Creates a PropertyChangeListener for the JSplitPane UI.
      • createFocusListener

        protected FocusListener createFocusListener()
        Creates a FocusListener for the JSplitPane UI.
      • createKeyboardUpLeftListener

        @Deprecated
        protected ActionListener createKeyboardUpLeftListener()
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this method is no longer used. Subclassers previously using this method should instead create an Action wrapping the ActionListener, and register that Action by overriding installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.

        Creates a ActionListener for the JSplitPane UI that listens for specific key presses.

      • createKeyboardDownRightListener

        @Deprecated
        protected ActionListener createKeyboardDownRightListener()
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this method is no longer used. Subclassers previously using this method should instead create an Action wrapping the ActionListener, and register that Action by overriding installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.

        Creates a ActionListener for the JSplitPane UI that listens for specific key presses.

      • createKeyboardHomeListener

        @Deprecated
        protected ActionListener createKeyboardHomeListener()
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this method is no longer used. Subclassers previously using this method should instead create an Action wrapping the ActionListener, and register that Action by overriding installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.

        Creates a ActionListener for the JSplitPane UI that listens for specific key presses.

      • createKeyboardEndListener

        @Deprecated
        protected ActionListener createKeyboardEndListener()
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this method is no longer used. Subclassers previously using this method should instead create an Action wrapping the ActionListener, and register that Action by overriding installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.

        Creates a ActionListener for the JSplitPane UI that listens for specific key presses.

      • createKeyboardResizeToggleListener

        @Deprecated
        protected ActionListener createKeyboardResizeToggleListener()
        Deprecated. As of Java 2 platform v1.3.
        As of Java 2 platform v1.3 this method is no longer used. Subclassers previously using this method should instead create an Action wrapping the ActionListener, and register that Action by overriding installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.

        Creates a ActionListener for the JSplitPane UI that listens for specific key presses.

      • getOrientation

        public int getOrientation()
        Returns the orientation for the JSplitPane.
      • setOrientation

        public void setOrientation(int orientation)
        Set the orientation for the JSplitPane.
      • isContinuousLayout

        public boolean isContinuousLayout()
        Determines wether the JSplitPane is set to use a continuous layout.
      • setContinuousLayout

        public void setContinuousLayout(boolean b)
        Turn continuous layout on/off.
      • getLastDragLocation

        public int getLastDragLocation()
        Returns the last drag location of the JSplitPane.
      • setLastDragLocation

        public void setLastDragLocation(int l)
        Set the last drag location of the JSplitPane.
      • createDefaultNonContinuousLayoutDivider

        protected Component createDefaultNonContinuousLayoutDivider()
        Returns the default non continuous layout divider, which is an instance of Canvas that fills in the background with dark gray.
      • setNonContinuousLayoutDivider

        protected void setNonContinuousLayoutDivider(Component newDivider)
        Sets the divider to use when the splitPane is configured to not continuously layout. This divider will only be used during a dragging session. It is recommended that the passed in component be a heavy weight.
      • setNonContinuousLayoutDivider

        protected void setNonContinuousLayoutDivider(Component newDivider,
                                         boolean rememberSizes)
        Sets the divider to use.
      • getNonContinuousLayoutDivider

        public Component getNonContinuousLayoutDivider()
        Returns the divider to use when the splitPane is configured to not continuously layout. This divider will only be used during a dragging session.
      • getSplitPane

        public JSplitPane getSplitPane()
        Returns the splitpane this instance is currently contained in.
      • createDefaultDivider

        public BasicSplitPaneDivider createDefaultDivider()
        Creates the default divider.
      • getDividerLocation

        public int getDividerLocation(JSplitPane jc)
        Returns the location of the divider, which may differ from what the splitpane thinks the location of the divider is.
        Specified by:
        getDividerLocation in class SplitPaneUI
      • paint

        public void paint(Graphics g,
                 JComponent jc)
        Description copied from class: ComponentUI
        Paints the specified component appropriately for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.
        Overrides:
        paint in class ComponentUI
        Parameters:
        g - the Graphics context in which to paint
        jc - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
        See Also:
        ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
      • getInsets

        public Insets getInsets(JComponent jc)
        Returns the insets. The insets are returned from the border insets of the current border.
      • resetLayoutManager

        protected void resetLayoutManager()
        Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components.
      • startDragging

        protected void startDragging()
        Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize.
      • dragDividerTo

        protected void dragDividerTo(int location)
        Messaged during a dragging session to move the divider to the passed in location. If continuousLayout is true the location is reset and the splitPane validated.
      • finishDraggingTo

        protected void finishDraggingTo(int location)
        Messaged to finish the dragging session. If not continuous display the dividers location will be reset.
      • getDividerBorderSize

        @Deprecated
        protected int getDividerBorderSize()
        Deprecated. As of Java 2 platform v1.3, instead set the border on the divider.
        As of Java 2 platform v1.3 this method is no longer used. Instead you should set the border on the divider.

        Returns the width of one side of the divider border.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/swing/plaf/basic/BasicSplitPaneUI.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut