public String getShortDescription (int column) { assert column < prop.length : column + " must be bellow " + prop.length; if (descs [column] == null) { String n = prop[column].getShortDescription (); JLabel l = new JLabel (); Mnemonics.setLocalizedText (l, n); descs [column] = l.getText (); } return descs [column]; }
void makeAccessibleCheckBox(JCheckBox box, Property p) { box.getAccessibleContext().setAccessibleName(p.getDisplayName()); box.getAccessibleContext().setAccessibleDescription(p.getShortDescription()); Object mnemonicChar = p.getValue(ATTR_MNEMONIC_CHAR); if ((null != mnemonicChar) && (mnemonicChar.toString().length() > 0)) { box.setMnemonic(mnemonicChar.toString().charAt(0)); } }
void makeAccessibleCheckBox(JCheckBox box, Property p) { box.getAccessibleContext().setAccessibleName(p.getDisplayName()); box.getAccessibleContext().setAccessibleDescription(p.getShortDescription()); Object mnemonicChar = p.getValue(ATTR_MNEMONIC_CHAR); if ((null != mnemonicChar) && (mnemonicChar.toString().length() > 0)) { box.setMnemonic(mnemonicChar.toString().charAt(0)); } }
PropertyEditor propEd = property.getPropertyEditor(); Object propertyToolTipShortDescription = table.getClientProperty("PropertyToolTipShortDescription"); if (Boolean.TRUE.equals(propertyToolTipShortDescription) && property.getShortDescription() != null) { toolT = property.getShortDescription(); } else if (propEd != null) { try {
table, value, isSelected, hasFocus, row, column); if (comp instanceof JComponent) { String tip = column > 0 ? tableModel.propertyForColumn(column).getShortDescription() : table.getColumnName( 0 ); ((JComponent) comp).setToolTipText(tip); FocusedPropertyPanel propPanel = getRenderer (prop, node); propPanel.setFocused(hasFocus); propPanel.setToolTipText(prop.getShortDescription()); propPanel.setOpaque(true); if (isSelected){
table, value, isSelected, hasFocus, row, column); if (comp instanceof JComponent) { String tip = column > 0 ? tableModel.propertyForColumn(column).getShortDescription() : table.getColumnName( 0 ); ((JComponent) comp).setToolTipText(tip); FocusedPropertyPanel propPanel = getRenderer (prop, node); propPanel.setFocused(hasFocus); propPanel.setToolTipText(prop.getShortDescription()); propPanel.setOpaque(true); if (isSelected){
String tip = (column > 0) ? tableModel.propertyForColumn(column).getShortDescription() : table.getColumnName(0); ((JComponent) comp).setToolTipText(tip);
boxtext = getDisplayNameWithMnemonic( allPropertyColumns[i].getProperty() ) + ": " + allPropertyColumns[i].getProperty().getShortDescription(); // NOI18N sort.put(boxtext, Integer.valueOf(i));
result = p.getShortDescription(); } else { PropertyEditor ped = PropUtils.getPropertyEditor (p); result = (column == 0) ? p.getShortDescription() : e.toString();
result = p.getShortDescription(); } else { result = column==0 ? p.getShortDescription() : e.toString();
result = p.getShortDescription(); } else { result = column==0 ? p.getShortDescription() : e.toString();
if (value instanceof Node.Property) { Node.Property property = (Node.Property)value; toolTip = property.getShortDescription(); try { value = property.getValue();
public void attachEnv(PropertyEnv env) { FeatureDescriptor desc = env.getFeatureDescriptor(); if (desc instanceof Node.Property) { Node.Property prop = (Node.Property)desc; editable = prop.canWrite(); //enh 29294 - support one-line editor & suppression of custom editor if (useOriginalShortDescriptionForInstructions()) { instructions = (String)prop.getValue("originalShortDescription"); // NOI18N if (instructions == null) { instructions = prop.getShortDescription(); } } else { instructions = (String)prop.getValue("instructions"); //NOI18N } if (forceOneline()) { oneline = true; } else { oneline = Boolean.TRUE.equals(prop.getValue("oneline")); //NOI18N } customEd = !Boolean.TRUE.equals(prop.getValue ("suppressCustomEditor")); //NOI18N } }
public java.lang.String getShortDescription() { return del.getShortDescription(); }
final String getShortDescription (String defaultValue) { TableModel model = getModel(); if (model.getRowCount() <= 0) { return null; } if (0 == getModelIndex()) { // 1st column return defaultValue; } if (model instanceof NodeTableModel) { NodeTableModel ntm = (NodeTableModel)model; Node.Property propertyForColumn = ntm.propertyForColumn(getModelIndex()); return propertyForColumn.getShortDescription(); } return defaultValue; }
@Override public String getShortDescription() { return original.getShortDescription(); }
public String getShortDescription(int column) { return tableModel.propertyForColumn(column).getShortDescription(); } public void propertyChange(PropertyChangeEvent evt) {
/** It sets name, displayName and short description. * Remembers original. */ public ProxyProperty(Node.Property[] original) { super(original[0].getValueType()); this.original = original; setName(original[0].getName()); setDisplayName(original[0].getDisplayName()); setShortDescription(original[0].getShortDescription()); }
/** It sets name, displayName and short description. * Remembers original. */ public ProxyProperty(Node.Property[] original) { super(original[0].getValueType()); this.original = original; setName(original[0].getName()); setDisplayName(original[0].getDisplayName()); setShortDescription(original[0].getShortDescription()); }
/** It sets name, displayName and short description. * Remembers original. */ public ProxyProperty(Node.Property[] original) { super(original[0].getValueType()); this.original = original; setName(original[0].getName()); setDisplayName(original[0].getDisplayName()); setShortDescription(original[0].getShortDescription()); }