Package org.openide.nodes.Node

Examples of org.openide.nodes.Node.Property


     * to make Java reflexion working.
     * @return the created property
     * @throws NoSuchMethodException if the getter or setter methods cannot be found
     */
    public static LayoutProperty createProperty(Layout layout, Class valueType, String propertyName, String propertyCategory, String propertyDescription, String getMethod, String setMethod) throws NoSuchMethodException {
        Property property = new PropertySupport.Reflection(
                layout, valueType, getMethod, setMethod);

        property.setName(propertyName);
        property.setShortDescription(propertyDescription);

        return new LayoutProperty(property, propertyCategory);
    }
View Full Code Here


     * @param propertyDescription A description string for the property
     * @return the created property
     * @throws NoSuchMethodException if the getter or setter methods cannot be found
     */
    public static SupervisorPropery createProperty(Supervisor supervisor, Class valueType, String propertyName, String propertyCategory, String propertyDescription) throws NoSuchMethodException {
        Property property = new PropertySupport.Reflection(
                supervisor, valueType, propertyName);

        property.setName(propertyName);
        property.setDisplayName(propertyDescription);
        property.setShortDescription(propertyDescription);

        return new SupervisorPropery(property, propertyCategory);
    }
View Full Code Here

                        if (ratio) {
                            visibilityRatio = Float.parseFloat(reader.getText());
                        } else if (bgColor) {
                            backgroundColor = new Color(Integer.parseInt(reader.getText()));
                        } else if (propName != null) {
                            Property p = propertiesMap.get(propName);
                            if (p != null) {
                                PropertyEditor editor = p.getPropertyEditor();
                                if (editor == null) {
                                    editor = PropertyEditorManager.findEditor(p.getValueType());
                                }
                                if (editor != null) {
                                    editor.setAsText(reader.getText());
                                    if (editor.getValue() != null) {
                                        try {
                                            p.setValue(editor.getValue());
                                        } catch (Exception e) {
                                            e.printStackTrace();
                                        }
                                    }
                                }
View Full Code Here

     * to make Java reflexion working.
     * @return the created property
     * @throws NoSuchMethodException if the getter or setter methods cannot be found
     */
    public static LayoutProperty createProperty(Layout layout, Class valueType, String propertyName, String propertyCategory, String propertyDescription, String getMethod, String setMethod) throws NoSuchMethodException {
        Property property = new PropertySupport.Reflection(
                layout, valueType, getMethod, setMethod);

        property.setName(propertyName);
        property.setShortDescription(propertyDescription);

        return new LayoutProperty(property, propertyCategory, propertyName);
    }
View Full Code Here

     * to make Java reflexion working.
     * @return the created property
     * @throws NoSuchMethodException if the getter or setter methods cannot be found
     */
    public static LayoutProperty createProperty(Layout layout, Class valueType, String propertyName, String propertyCategory, String propertyCanonicalName, String propertyDescription, String getMethod, String setMethod) throws NoSuchMethodException {
        Property property = new PropertySupport.Reflection(
                layout, valueType, getMethod, setMethod);

        property.setName(propertyName);
        property.setShortDescription(propertyDescription);

        return new LayoutProperty(property, propertyCategory, propertyCanonicalName);
    }
View Full Code Here

TOP

Related Classes of org.openide.nodes.Node.Property

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.