Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Kommentar: Migrated to Confluence 5.3


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
themeEclipse
languagejava
linenumberstrue
public class OwnTreePopUpMenu extends AbstractPopUpMenu {

...


public OwnTreePopUpMenu(NavigationTree tree, com.jaxfront.core.ui.TreeNode treeNode) {

...


super(tree, treeNode);

...


initialize();

...


}

...


private void initialize() {

...


OwnSwingTestAction testAction = new OwnSwingTestAction("test");

...


testAction.putValue(XUITypes.VALUE_DOM, getTreeNode().getType().getDOM());

...


testAction.putValue(XUITypes.VALUE_SOURCE, getTreeNode().getType());

...

 
add(testAction);

...


}

...


}