public IntFieldProperty(@NotNull final Property parent, @NonNls final String fieldName, final int lowBoundary, final Object templateValue) { super(parent, fieldName); myParent = parent; myFieldName = fieldName; myTemplateValue = templateValue; myRenderer = new LabelPropertyRenderer<Integer>(); myEditor = new IntEditor(lowBoundary); }
@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; }
@NotNull public PropertyRenderer<Integer> getRenderer() { if (myRenderer == null) { myRenderer = new LabelPropertyRenderer<Integer>(); } return myRenderer; }
public IntRegexEditor(Class<T> valueClass, LabelPropertyRenderer<T> renderer, final int[] minValues) { myMinValues = minValues; myValueClass = valueClass; myRenderer = renderer; @NonNls StringBuilder regexBuilder = new StringBuilder("\\[?(-?\\d+)"); for(int i=1; i<myMinValues.length; i++) { regexBuilder.append(",\\s*(-?\\d+)"); } regexBuilder.append("\\]?"); myPattern = Pattern.compile(regexBuilder.toString()); }
@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; }
public InsetsEditor(LabelPropertyRenderer<Insets> renderer) { super(Insets.class, renderer, new int[] { 0, 0, 0, 0 }); }