public DefaultMutableModuleItem(final ModuleInfo info, final String name, final Class<T> type) { super(info); this.name = name; this.type = type; genericType = type; ioType = super.getIOType(); visibility = super.getVisibility(); required = super.isRequired(); persisted = super.isPersisted(); persistKey = super.getPersistKey(); initializer = super.getInitializer(); validater = super.getValidater(); callback = super.getCallback(); widgetStyle = super.getWidgetStyle(); minimumValue = super.getMinimumValue(); maximumValue = super.getMaximumValue(); stepSize = super.getStepSize(); columnCount = super.getColumnCount(); final List<T> superChoices = super.getChoices(); if (superChoices != null) choices.addAll(superChoices); label = super.getLabel(); description = super.getDescription(); }
public DefaultMutableModuleItem(final ModuleInfo info, final String name, final Class<T> type) { super(info); this.name = name; this.type = type; genericType = type; ioType = super.getIOType(); visibility = super.getVisibility(); required = super.isRequired(); persisted = super.isPersisted(); persistKey = super.getPersistKey(); initializer = super.getInitializer(); validater = super.getValidater(); callback = super.getCallback(); widgetStyle = super.getWidgetStyle(); minimumValue = super.getMinimumValue(); maximumValue = super.getMaximumValue(); stepSize = super.getStepSize(); columnCount = super.getColumnCount(); final List<T> superChoices = super.getChoices(); if (superChoices != null) choices.addAll(superChoices); label = super.getLabel(); description = super.getDescription(); }
@Override public String toString() { final StringMaker sm = new StringMaker(); sm.append("label", getLabel()); sm.append("description", getDescription()); sm.append("visibility", getVisibility(), ItemVisibility.NORMAL); sm.append("required", isRequired()); sm.append("persisted", isPersisted()); sm.append("persistKey", getPersistKey()); sm.append("callback", getCallback()); sm.append("widgetStyle", getWidgetStyle()); sm.append("default", getDefaultValue()); sm.append("min", getMinimumValue()); sm.append("max", getMaximumValue()); sm.append("softMin", getSoftMinimum()); sm.append("softMax", getSoftMaximum()); sm.append("stepSize", getStepSize(), NumberUtils.toNumber("1", getType())); sm.append("columnCount", getColumnCount(), 6); sm.append("choices", getChoices()); return getName() + ": " + sm.toString(); }
@Override public String toString() { final StringMaker sm = new StringMaker(); sm.append("label", getLabel()); sm.append("description", getDescription()); sm.append("visibility", getVisibility(), ItemVisibility.NORMAL); sm.append("required", isRequired()); sm.append("persisted", isPersisted()); sm.append("persistKey", getPersistKey()); sm.append("callback", getCallback()); sm.append("widgetStyle", getWidgetStyle()); sm.append("default", getDefaultValue()); sm.append("min", getMinimumValue()); sm.append("max", getMaximumValue()); sm.append("softMin", getSoftMinimum()); sm.append("softMax", getSoftMaximum()); sm.append("stepSize", getStepSize(), NumberUtils.toNumber("1", getType())); sm.append("columnCount", getColumnCount(), 6); sm.append("choices", getChoices()); return getName() + ": " + sm.toString(); }