To implement your own tree popUp menu for any tree node, one need to extend from class "com.jaxfront.swing.ui.editor.AbstractPopUpMenu".
Image Removed
Image Removed
Image Added
Hinweis |
---|
See class com.jaxfront.demo.api.OwnTreePopUpMenu |
Codeblock |
---|
theme | Eclipse |
---|
language | java |
---|
linenumbers | true |
---|
|
public class OwnTreePopUpMenu extends AbstractPopUpMenu { |
...
public OwnTreePopUpMenu(NavigationTree tree, com.jaxfront.core.ui.TreeNode treeNode) { |
...
...
...
...
private void initialize() { |
...
OwnSwingTestAction testAction = new OwnSwingTestAction("test"); |
...
testAction.putValue(XUITypes.VALUE_DOM, getTreeNode().getType().getDOM()); |
...
testAction.putValue(XUITypes.VALUE_SOURCE, getTreeNode().getType()); |
...
...
...