public final PropertyEditor<Insets> getEditor() { if (myEditor == null) { myEditor = new IntRegexEditor<Insets>(Insets.class, myRenderer, new int[] { 0, 0, 0, 0 }) { public Insets getValue() throws Exception { // if a single number has been entered, interpret it as same value for all parts (IDEADEV-7330) try { int value = Integer.parseInt(myTf.getText()); final Insets insets = new Insets(value, value, value, value); myTf.setText(myRenderer.formatText(insets)); return insets; } catch(NumberFormatException ex) { return super.getValue(); } } }; } return myEditor; }
private void updateUI(final Property property) { final PropertyRenderer renderer = property.getRenderer(); renderer.updateUI(); final PropertyEditor editor = property.getEditor(); if (editor != null) { editor.updateUI(); } final Property[] children = property.getChildren(null); for (int i = children.length - 1; i >= 0; i--) { updateUI(children[i]); } }
public IntroIntProperty(final String name, final Method readMethod, final Method writeMethod, final PropertyRenderer<Integer> renderer, final PropertyEditor<Integer> editor, final boolean storeAsClient){ super(name, readMethod, writeMethod, storeAsClient); myRenderer = renderer; myEditor = editor; }
private void updateUI(final Property property){ final PropertyRenderer renderer = property.getRenderer(); renderer.updateUI(); final PropertyEditor editor = property.getEditor(); if(editor != null){ editor.updateUI(); } final Property[] children = property.getChildren(null); for (int i = children.length - 1; i >= 0; i--) { updateUI(children[i]); } }
public PropertyEditor<String> getEditor(){ return myEditor; }
public PropertyEditor<Integer> getEditor() { return myEditor; }
@Nullable public PropertyEditor<Integer> getEditor() { return myEditor; }
public PropertyEditor<Boolean> getEditor() { return myEditor; }
public PropertyEditor<BorderType> getEditor() { return null; }
public PropertyEditor<RadButtonGroup> getEditor() { return myEditor; }
public final PropertyEditor<Dimension> getEditor() { return myEditor; }
public PropertyEditor<Boolean> getEditor(){ return myEditor; }
public PropertyEditor<String> getEditor() { return myEditor; }
public PropertyEditor<T> getEditor(){ if (myEditor == null) { myEditor = createEditor(); } return myEditor; }
protected PropertyEditor<T> createEditor() { return new PrimitiveTypeEditor<T>(myClass); }
public PropertyEditor<Rectangle> getEditor() { return myEditor; }
public PropertyEditor<Dimension> getEditor() { return myEditor; }
public PropertyEditor<Insets> getEditor() { return myEditor; }
protected PropertyEditor<Character> createEditor() { return new CharEditor(); }
public final PropertyEditor<Integer> getEditor(){ return null; }
public final PropertyEditor<Boolean> getEditor(){ return myEditor; }
public PropertyEditor getEditor() { return myEditor; }
public void valueCommitted(final PropertyEditor source, final boolean continueEditing, final boolean closeEditorOnError) { finishInplaceEditing(); }
public void editingCanceled(final PropertyEditor source) { cancelInplaceEditing(); }
public void preferredSizeChanged(final PropertyEditor source) { adjustEditorComponentSize(); }
public PropertyEditor<Double> getEditor() { if (myEditor == null) { myEditor = new PrimitiveTypeEditor<Double>(Double.class); } return myEditor; }
public PropertyEditor<String> getEditor() { if (myEditor == null) { myEditor = new BorderSideEditor(); } return myEditor; }
public PropertyEditor<StringDescriptor> getEditor() { return myEditor; }