/** Set the short description of the node. Fires a property change event. * <p>This description may be used for tool tips, etc. * @param s the new description */ @Override public void setShortDescription(String s) { String descr = super.getShortDescription(); if ((descr == null) || !descr.equals(s)) { super.setShortDescription(s); fireShortDescriptionChange(descr, s); } }
/** * Returns the FeatureDescriptor's shortDescription or "" if the * shortDescription is the same as the displayName. */ public String getDescription(FeatureDescriptor feature) { String description = feature.getShortDescription(); if (description == null || description.equals(feature.getDisplayName())) { description = ""; } 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; } }
/** Set the short description of the node. Fires a property change event. * <p>This description may be used for tool tips, etc. * @param s the new description */ public void setShortDescription (String s) { String descr = super.getShortDescription (); if (descr == null || !descr.equals (s)) { super.setShortDescription (s); fireShortDescriptionChange (descr, s); } }
/** Set the short description of the node. Fires a property change event. * <p>This description may be used for tool tips, etc. * @param s the new description */ public void setShortDescription (String s) { String descr = super.getShortDescription (); if (descr == null || !descr.equals (s)) { super.setShortDescription (s); fireShortDescriptionChange (descr, s); } }
public static String describeFD(FeatureDescriptor fd) { return fd.getName() + " " + fd.getShortDescription() + " " + fd.getClass().getSimpleName() + " " + Debuggable.toInfoStringF(fd); }
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; } }
System.out.printf( "Bean display name = '%s', description = '%s'\n", beanDescriptor.getDisplayName(), beanDescriptor.getShortDescription()); System.out.printf("Property field name = '%s', display name = '%s', description = '%s'\n", propertyName, propertyDescriptor.getDisplayName(), propertyDescriptor.getShortDescription());
private void handleLabel(URI uri, FeatureDescriptor desc) throws RDFHandlerException { String prefix = prefixes.get(uri.getNamespace()); String label = removePrefix(prefix, desc.getDisplayName()); String comment = removePrefix(prefix, desc.getShortDescription()); handleStatement(uri, RDFS.LABEL, label); if (!label.equals(comment)) { handleStatement(uri, RDFS.COMMENT, comment); } }
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() } ); } }
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() }); } }
@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 static boolean equals(FeatureDescriptor descriptor1, FeatureDescriptor descriptor2) { // TODO: check attribute names return nullEquals(descriptor1.getName(), descriptor2.getName()) && nullEquals(descriptor1.getDisplayName(), descriptor2.getDisplayName()) && descriptor1.isExpert() == descriptor2.isExpert() && descriptor1.isHidden() == descriptor2.isHidden() && descriptor1.isPreferred() == descriptor2.isPreferred() && nullEquals(descriptor1.getShortDescription(), descriptor2.getShortDescription()); }
protected Descriptor doGetDescriptor(FeatureDescriptor info, String descriptorType) { Descriptor descriptor = new DescriptorSupport(); descriptor.setField("name", info.getName()); descriptor.setField("displayName", info.getDisplayName()); descriptor.setField("description", info.getShortDescription()); descriptor.setField("descriptorType", descriptorType); return descriptor; }
JDialog jd = (JDialog) w; jd.getAccessibleContext().setAccessibleName(title); if (fd.getShortDescription() != null) { jd.getAccessibleContext().setAccessibleDescription( fd.getShortDescription());
String desc = fd.getShortDescription(); psheet.setDescription(ttl, desc); } else {
String desc = fd.getShortDescription(); psheet.setDescription(ttl, desc); } else {
String desc = fd.getShortDescription(); psheet.setDescription(ttl, desc); } else {