/** * Registers a property getter. * * @param getter {@literal @PropertyGetter} annotation * @param method The getter method. */ /*package*/ void _addGetter(PropertyGetter getter, Method method) { String name = getter.value(); if (!getters.containsKey(name)) { if (isStatic(method) || method.getReturnType() == Void.TYPE || method.getParameterTypes().length > 0) { throw new IllegalArgumentException("Bad signature for getter method: " + method.getName()); } getters.put(name, getter.hide() ? null : method); } }
@PropertyGetter("title") public String getTitle() { return title; }
@PropertyGetter("open") public boolean isOpen() { return open; }
@PropertyGetter("#text") protected String getContent() { return content; }
@PropertyGetter("minValue") public int getMinValue() { return minValue; }
@PropertyGetter("keycapture") public String getKeycapture() { return keycapture; }
@PropertyGetter("dragid") public String getDragid() { return dragid; }
@PropertyGetter("readonly") public boolean isReadonly() { return readonly; }
@PropertyGetter("placeholder") public String getPlaceholder() { return placeholder; }
@PropertyGetter("minvalue") public T getMinvalue() { return minvalue; }
@PropertyGetter("pageSize") public int getPageSize() { return pageSize; }
@PropertyGetter("rows") public int getRows() { return rows; }
@PropertyGetter("maxValue") public int getMaxValue() { return maxValue; }
@PropertyGetter("value") public int getValue() { return value; }
@PropertyGetter("src") public String getSrc() { return src; }
@PropertyGetter("checked") public boolean isChecked() { return checked; }
@PropertyGetter("checkable") public boolean isCheckable() { return checkable; }
@PropertyGetter("sortColumn") public boolean isSortColumn() { return sortColumn; }
@PropertyGetter("checked") public boolean isChecked() { return checked; }
/** * Returns the data object associated with the component. * * @return The data object; may be null. */ @PropertyGetter("data") public Object getData() { return data; }