Package ca.nengo.config.ui.ConfigurationTreeModel

Examples of ca.nengo.config.ui.ConfigurationTreeModel.Value


  public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) {
    Component result = super.getTreeCellEditorComponent(tree, value, isSelected, expanded, leaf, row);
   
    TreePath path = tree.getPathForRow(row);
    if (path.getParentPath().getLastPathComponent() instanceof Property && value instanceof Value) {
      Value node = (Value) value;
      Object o = node.getObject();
     
      if (o instanceof NullValue) {
        Class<?> type = ((Property) path.getParentPath().getLastPathComponent()).getType();
        o = MainHandler.getInstance().getDefaultValue(type);
      }
View Full Code Here

TOP

Related Classes of ca.nengo.config.ui.ConfigurationTreeModel.Value

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.