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]); } }
@NotNull @Override protected PropertyRenderer<BorderType> compute() { return new LabelPropertyRenderer<BorderType>() { protected void customize(@NotNull final BorderType value) { setText(value.getName()); } }; }
@NotNull public PropertyRenderer<StringDescriptor> getRenderer() { if (myRenderer == null) { myRenderer = new StringRenderer(); } return myRenderer; }
@NotNull public PropertyRenderer<Integer> getRenderer() { if (myRenderer == null) { myRenderer = new IntEnumRenderer(myJustification ? ourJustificationPairs : ourPositionPairs); } return myRenderer; }
@NotNull public PropertyRenderer<FontDescriptor> getRenderer() { if (myRenderer == null) { myRenderer = new FontRenderer(); } return myRenderer; }
@NotNull public PropertyRenderer<ColorDescriptor> getRenderer() { if (myRenderer == null) { myRenderer = new ColorRenderer(); } return myRenderer; }
@NotNull public PropertyRenderer<String[]> getRenderer() { if (myRenderer == null) { myRenderer = new MyRenderer(); } return myRenderer; }
@NotNull public PropertyRenderer<Enum> getRenderer() { if (myRenderer == null) { myRenderer = new LabelPropertyRenderer<Enum>(); } return myRenderer; }
@NotNull public PropertyRenderer<T> getRenderer(){ if (myRenderer == null) { myRenderer = new LabelPropertyRenderer<T>(); } return myRenderer; }
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; }
@NotNull public PropertyRenderer<Integer> getRenderer() { if (myRenderer == null) { myRenderer = new LabelPropertyRenderer<Integer>(); } return myRenderer; }
@NotNull public PropertyRenderer<Double> getRenderer() { if (myRenderer == null) { myRenderer = new LabelPropertyRenderer<Double>(); } return myRenderer; }
@NotNull public PropertyRenderer<String> getRenderer() { if (myRenderer == null) { myRenderer = new LabelPropertyRenderer<String>(); } return myRenderer; }
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]); } }
@NotNull public PropertyRenderer<String> getRenderer(){ return myRenderer; }