/** Used by EditablePropertyDisplayer to provide access to the real * feature descriptor. Some property editors will cast the result of * env.getFeatureDescriptor() as Property or PropertyDescriptor, so we * need to return the original */ FeatureDescriptor getFeatureDescriptor() { if (mdl instanceof ExPropertyModel) { return ((ExPropertyModel) mdl).getFeatureDescriptor(); } else { return this; } }
/** Used by EditablePropertyDisplayer to provide access to the real * feature descriptor. Some property editors will cast the result of * env.getFeatureDescriptor() as Property or PropertyDescriptor, so we * need to return the original */ FeatureDescriptor getFeatureDescriptor() { if (mdl instanceof ExPropertyModel) { return ((ExPropertyModel) mdl).getFeatureDescriptor(); } else { return this; } }
/** Used by EditablePropertyDisplayer to provide access to the real * feature descriptor. Some property editors will cast the result of * env.getFeatureDescriptor() as Property or PropertyDescriptor, so we * need to return the original */ FeatureDescriptor getFeatureDescriptor() { if (mdl instanceof ExPropertyModel) { return ((ExPropertyModel) mdl).getFeatureDescriptor(); } else { return this; } }
public String getAccessibleDescription() { String description = super.getAccessibleDescription(); if ((description == null) && model instanceof ExPropertyModel) { FeatureDescriptor fd = ((ExPropertyModel) model).getFeatureDescriptor(); description = NbBundle.getMessage(PropertyPanel.class, "ACSD_PropertyPanel", fd.getShortDescription()); //NOI18N } return description; } }
public String getAccessibleName() { String name = super.getAccessibleName(); if ((name == null) && model instanceof ExPropertyModel) { FeatureDescriptor fd = ((ExPropertyModel) model).getFeatureDescriptor(); name = NbBundle.getMessage(PropertyPanel.class, "ACS_PropertyPanel", fd.getDisplayName()); //NOI18N } return name; }
public String getAccessibleName() { String name = super.getAccessibleName(); if (name == null && model instanceof ExPropertyModel) { FeatureDescriptor fd = ((ExPropertyModel)model).getFeatureDescriptor(); name = NbBundle.getMessage(PropertyPanel.class, "ACS_PropertyPanel", fd.getDisplayName()); //NOI18N } return name; }
public String getAccessibleDescription() { String description = super.getAccessibleDescription(); if (description == null && model instanceof ExPropertyModel) { FeatureDescriptor fd = ((ExPropertyModel)model).getFeatureDescriptor(); description = NbBundle.getMessage(PropertyPanel.class, "ACSD_PropertyPanel", fd.getShortDescription()); //NOI18N } return description; } }
public String getAccessibleDescription() { String description = super.getAccessibleDescription(); if (description == null && model instanceof ExPropertyModel) { FeatureDescriptor fd = ((ExPropertyModel)model).getFeatureDescriptor(); description = NbBundle.getMessage(PropertyPanel.class, "ACSD_PropertyPanel", fd.getShortDescription()); //NOI18N } return description; } }
public String getAccessibleName() { String name = super.getAccessibleName(); if (name == null && model instanceof ExPropertyModel) { FeatureDescriptor fd = ((ExPropertyModel)model).getFeatureDescriptor(); name = NbBundle.getMessage(PropertyPanel.class, "ACS_PropertyPanel", fd.getDisplayName()); //NOI18N } return name; }
/** Allow a post-set hook */ void tryPostSetAction(PropertyModel mdl) { if (mdl instanceof ExPropertyModel) { FeatureDescriptor fd=((ExPropertyModel) mdl).getFeatureDescriptor(); if (fd != null) { Action a = (Action) fd.getValue("postSetAction"); //NOI18N if (a != null) { if (PropUtils.isLoggable(SheetCellEditor.class)) { PropUtils.log (SheetCellEditor.class, " Running post-set action " + a); //NOI18N } ActionEvent ae=new ActionEvent (this, ActionEvent.ACTION_PERFORMED, InplaceEditor.COMMAND_SUCCESS); a.actionPerformed(ae); } } } }
/** Allow a post-set hook */ void tryPostSetAction(PropertyModel mdl) { if (mdl instanceof ExPropertyModel) { FeatureDescriptor fd = ((ExPropertyModel) mdl).getFeatureDescriptor(); if (fd != null) { Action a = (Action) fd.getValue("postSetAction"); //NOI18N if (a != null) { if (PropUtils.isLoggable(SheetCellEditor.class)) { PropUtils.log(SheetCellEditor.class, " Running post-set action " + a); //NOI18N } ActionEvent ae = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, InplaceEditor.COMMAND_SUCCESS); a.actionPerformed(ae); } } } }
public String getAccessibleName() { FeatureDescriptor fd = ((ExPropertyModel)getModel()).getFeatureDescriptor(); PropertyEditor editor = getPropertyEditor(); return MessageFormat.format( getString("ACS_PropertyPanelRenderer"), new Object[] { fd.getDisplayName(), (editor == null) ? getString("CTL_No_value") : editor.getAsText() } ); }
public String getAccessibleName() { FeatureDescriptor fd = ((ExPropertyModel)getModel()).getFeatureDescriptor(); PropertyEditor editor = getPropertyEditor(); return MessageFormat.format( getString("ACS_PropertyPanelRenderer"), new Object[] { fd.getDisplayName(), (editor == null) ? getString("CTL_No_value") : editor.getAsText() } ); }
@Override public String getAccessibleName() { @SuppressWarnings("deprecation") FeatureDescriptor fd = ((org.openide.explorer.propertysheet.ExPropertyModel) getModel()).getFeatureDescriptor(); @SuppressWarnings("deprecation") PropertyEditor editor = getPropertyEditor(); return MessageFormat.format( getString("ACS_PropertyPanelRenderer"), // NOI18N new Object[]{ fd.getDisplayName(), (editor == null) ? getString("CTL_No_value") : editor.getAsText() // NOI18N }); }
/** Creates a new instance of ModelProperty */ private ModelProperty(PropertyModel pm) { super(pm.getPropertyType()); this.mdl = pm; if (mdl instanceof ExPropertyModel) { FeatureDescriptor fd = ((ExPropertyModel) mdl).getFeatureDescriptor(); Boolean result = (Boolean) fd.getValue("canEditAsText"); // NOI18N if (result != null) { this.setValue("canEditAsText", result); } } //System.err.println( //"Created ModelProperty wrapper for mystery PropertyModel " + pm); }
@Override public String getAccessibleName() { @SuppressWarnings("deprecation") FeatureDescriptor fd = ((ExPropertyModel)getModel()).getFeatureDescriptor(); @SuppressWarnings("deprecation") PropertyEditor editor = getPropertyEditor(); return MessageFormat.format( getString("ACS_PropertyPanelRenderer"), new Object[] { fd.getDisplayName(), (editor == null) ? getString("CTL_No_value") : editor.getAsText() } ); }
public String getAccessibleDescription() { FeatureDescriptor fd = ((ExPropertyModel)getModel()).getFeatureDescriptor(); Node node = (Node)((ExPropertyModel)getModel()).getBeans()[0]; Class clazz = getModel().getPropertyType(); return MessageFormat.format( getString("ACSD_PropertyPanelRenderer"), new Object[] { fd.getShortDescription(), clazz == null ? getString("CTL_No_type") : clazz.getName(), node.getDisplayName() } ); } }
@Override public String getAccessibleDescription() { @SuppressWarnings("deprecation") FeatureDescriptor fd = ((ExPropertyModel)getModel()).getFeatureDescriptor(); @SuppressWarnings("deprecation") Node node = (Node)((ExPropertyModel)getModel()).getBeans()[0]; Class clazz = getModel().getPropertyType(); return MessageFormat.format( getString("ACSD_PropertyPanelRenderer"), new Object[] { fd.getShortDescription(), clazz == null ? getString("CTL_No_type") : clazz.getName(), node.getDisplayName() } ); } }
public String getAccessibleDescription() { FeatureDescriptor fd = ((ExPropertyModel)getModel()).getFeatureDescriptor(); Node node = (Node)((ExPropertyModel)getModel()).getBeans()[0]; Class clazz = getModel().getPropertyType(); return MessageFormat.format( getString("ACSD_PropertyPanelRenderer"), new Object[] { fd.getShortDescription(), clazz == null ? getString("CTL_No_type") : clazz.getName(), node.getDisplayName() } ); } }
@Override public String getAccessibleDescription() { @SuppressWarnings("deprecation") FeatureDescriptor fd = ((org.openide.explorer.propertysheet.ExPropertyModel) getModel()).getFeatureDescriptor(); @SuppressWarnings("deprecation") Node node = (Node) ((org.openide.explorer.propertysheet.ExPropertyModel) getModel()).getBeans()[0]; Class<?> clazz = getModel().getPropertyType(); return MessageFormat.format( getString("ACSD_PropertyPanelRenderer"), // NOI18N new Object[]{ fd.getShortDescription(), clazz == null ? getString("CTL_No_type") : clazz.getName(), // NOI18N node.getDisplayName() }); } }