/** * @return the editor tags */ @Override public String[] getTags() { return editor.getTags(); }
/** * {@inheritDoc} */ @Override public String[] getTags() { return delegate.getTags(); }
@Override public String[] getTags() { return ed.getTags(); }
@Override public String[] getTags() { return guiEditor.getTags(); }
public String[] getTags() { return pe.getTags(); }
public String[] getTags() { return ed.getTags(); }
public void setSelectedItem(Object o) { //Some property editors (i.e. IMT's choice editor) treat //null as 0. Probably not the right way to do it, but needs to //be handled. if (o == null && editor.getTags() != null && editor.getTags().length > 0) { o = editor.getTags()[0]; } if (o != null) { super.setSelectedItem(o); } }
public void setSelectedItem(Object o) { //Some property editors (i.e. IMT's choice editor) treat //null as 0. Probably not the right way to do it, but needs to //be handled. if (o == null && editor.getTags() != null && editor.getTags().length > 0) { o = editor.getTags()[0]; } if (o != null) { super.setSelectedItem(o); } }
private void populate() { String[] tags = editor.getTags(); int len = tags.length; for (int i = 0; i < len; ++i) { combo.addItem(tags[i]); } }
@Override public String[] getTags() { return getPropertyEditor().getTags(); }
private void populate() { String[] tags = editor.getTags(); if (tags == null) tags = getPVTags(null, editor, type); int len = tags.length; for (int i = 0; i < len; ++i) { addItem(tags[i]); } }
protected void checkGetTags() { String[] expected = new String[correctValues.length]; for ( int i = 0; i < correctValues.length; i++ ) { expected[i] = correctValues[i].toString(); } assertThat( editor.getTags(), is( arrayContainingInAnyOrder( expected ) ) ); }
private static Component buildComponent(PropertyEditor editor) { String[] tags = editor.getTags(); if (tags == null) { return new TextBox(editor.getAsText()); } // TODO: return drop-down box of tags return new TextBox(editor.getAsText()); } }
protected void checkGetTagsWithNull() { String[] expected = new String[correctValues.length + 1]; for ( int i = 0; i < correctValues.length; i++ ) { expected[i] = correctValues[i].toString(); } expected[correctValues.length] = null; assertThat( editor.getTags(), is( arrayContainingInAnyOrder( expected ) ) ); }
public void connect(PropertyEditor p, PropertyEnv env) { setActionCommand(COMMAND_SUCCESS); this.env = env; if (editor == p) return; editor = p; boolean editable = PropUtils.checkEnabled(this, p, env); setEnabled(editable); //Undocumented, but in NB 3.5 and earlier, getAsText() returning null for //paintable editors was yet another way to disable a property editor if (p.getTags() == null && p.getAsText() == null && p.isPaintable()) { editable = false; } setEditable(editable); reset(); added = false; }
/** Renderer version overrides this */ protected void configureButton(InvRadioButton ire, String txt) { if (editor.getTags().length == 1) { ire.setEnabled(false); } else { ire.setEnabled(isEnabled()); } ire.setText(txt); ire.setForeground(getForeground()); ire.setBackground(getBackground()); ire.setFont(getFont()); if (txt.equals(editor.getAsText())) { ire.setSelected(true); } else { ire.setSelected(false); } }