com.levigo.util.swing.flextree
Class PopupMenuFeature

java.lang.Object
  extended by com.levigo.util.swing.flextree.PopupMenuFeature

public class PopupMenuFeature
extends Object

Author:
hennejg

Method Summary
 List<MenuContributor> getFixedContributors()
           
static PopupMenuFeature install(FlexibleTree flextree)
          Install this feature on the given flextree.
 boolean isDefaultToTreeRoot()
          Return whether popup activations on empty space are treated as activations on the tree root.
 void setDefaultToTreeRoot(boolean defaultToTreeRoot)
          Set whether popup activations on empty space are treated as activations on the tree root.
 void uninstall()
          Uninstall the feature from the flextree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

install

@CallOnEDT
public static PopupMenuFeature install(FlexibleTree flextree)
Install this feature on the given flextree. You may uninstall it lateron by calling uninstall() on the returned instance.

Parameters:
flextree -
Returns:

uninstall

@CallOnEDT
public void uninstall()
Uninstall the feature from the flextree.


getFixedContributors

@CallOnEDT
public List<MenuContributor> getFixedContributors()

isDefaultToTreeRoot

@CallableOffEDT
public boolean isDefaultToTreeRoot()
Return whether popup activations on empty space are treated as activations on the tree root.

Returns:

setDefaultToTreeRoot

@CallableOffEDT
public void setDefaultToTreeRoot(boolean defaultToTreeRoot)
Set whether popup activations on empty space are treated as activations on the tree root. This property defaults to true.

Parameters:
defaultToTreeRoot -


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.