Package org.openide.nodes

Examples of org.openide.nodes.PropertySupport


                    } else {
                        // So that there is at least some kind of representation.
                        Object obj = getTable().getValueAt(getTable().getSelectedRow(), getTable().getSelectedColumn());
                       
                        if (obj instanceof PropertySupport) {
                            PropertySupport prop = (PropertySupport) o;
                            String name = prop.getDisplayName();
                            try {
                                Object value = prop.getValue();
                                text = value + ", " + name;
                                readColumns = 1;
                            } catch (IllegalAccessException ex) {
                                Exceptions.printStackTrace(ex);
                            } catch (InvocationTargetException ex) {
                                Exceptions.printStackTrace(ex);
                            }
                        }
                        else
                        {
                            text = getTable().getColumnName(getTable().getSelectedColumn()) + ", " + obj.toString();
                            readColumns = 1;
                        }
                    }
                }
            }
        }
        else if (o != null) {
            //text = o.toString() + " " + getTable().getColumnName(getTable().getSelectedColumn()) + " selected.";
            for (int i = 0; i < getTable().getColumnCount(); i++) {
                readColumns++;
                o = getTable().getValueAt(getTable().getSelectedRow(), i);
                TableCellRenderer renderer = getTable().getCellRenderer(getTable().getSelectedRow(), i);
               
                if(o instanceof PropertySupport) {
                    PropertySupport prop = (PropertySupport) o;
                    String name = prop.getDisplayName();
                    try {
                        Object value = prop.getValue();
                        text += ", " + value + ", " + name;
                    } catch (IllegalAccessException ex) {
                        Exceptions.printStackTrace(ex);
                    } catch (InvocationTargetException ex) {
                        Exceptions.printStackTrace(ex);
View Full Code Here

TOP

Related Classes of org.openide.nodes.PropertySupport

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.