Module java.desktop

Class BasicTreeUI.TreeTraverseAction

    • Field Detail

      • direction

        protected int direction
        Determines direction to traverse, 1 means expand, -1 means collapse.
    • Constructor Detail

      • TreeTraverseAction

        public TreeTraverseAction​(int direction,
                                  String name)
        Constructs a new instance of TreeTraverseAction.
        Parameters:
        direction - the direction
        name - the name of action
    • Method Detail

      • actionPerformed

        public void actionPerformed​(ActionEvent e)
        Description copied from interface: ActionListener
        Invoked when an action occurs.
        Parameters:
        e - the event to be processed