Factory method for create a new {@link HiddenField}.

@param <T>
the generic type of the model
@param id
the id
@return the new {@link HiddenField}.
15292
public static <T> HiddenField<T> newHiddenField(final String id)
	{
		final HiddenField<T> hiddenField = new HiddenField<>(id);
		hiddenField.setOutputMarkupId(true);
		return hiddenField;
	}
693581
public CustomFields createCustomField(String accountId, CustomField customField) throws ApiException {
    return createCustomField(accountId, customField, null);
  }
290066
public static DateTimeField newDateTimeField(final String id, final IModel<Date> model)
	{
		final DateTimeField dateTextField = new DateTimeField(id, model);
		dateTextField.setOutputMarkupId(true);
		return dateTextField;
	}
963718
public Entity newEntity(QualifiedName id) {
	Entity res = of.createEntity();
	res.setId(id);
	return res;
    }
1353176
public FieldType<BeanType<T>> getOrCreateField()
   {
      List<Node> nodeList = childNode.get("field");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FieldTypeImpl<BeanType<T>>(this, "field", childNode, nodeList.get(0));
      }
      return createField();
   }
1349068
public static <T extends Enum<T>> EnumLabel<T> newEnumLabel(final String id,
		final IModel<T> model)
	{
		final EnumLabel<T> enumLabel = new EnumLabel<T>(id, model)
		{
			/** The serialVersionUID. */
			private static final long serialVersionUID = 1L;

			/**
			 * {@inheritDoc}
			 */
			@Override
			protected String resourceKey(final T value)
			{
				return value.name();
			}
		};
		enumLabel.setOutputMarkupId(true);
		return enumLabel;
	}
493228
@SuppressWarnings("unchecked")
    public <T extends AbstractJaxb> T getById(String id) {
        Object obj = GetByIdUtil.getById(id, this);
        return (T) obj;
    }
1153488
public static JsonBooleanDocument create(String id, Boolean content) {
        return new JsonBooleanDocument(id, 0, content, 0, null);
    }
894483
public CustomEmoji getKnownCustomEmojiOrCreateCustomEmoji(long id, String name, boolean animated) {
        CustomEmoji emoji = customEmojis.get(id);
        return emoji == null ? new CustomEmojiImpl(this, id, name, animated) : emoji;
    }
373553
@Override
	protected Button newButton(final String id)
	{
		return new Button(id)
		{
			/**
			 * The serialVersionUID.
			 */
			private static final long serialVersionUID = 1L;

			/**
			 * {@inheritDoc}
			 */
			@Override
			public void onSubmit()
			{
				getAction().execute();
			}
		};
	}
642002
public <P extends ParaObject> P findById(String id) {
		MultivaluedMap<String, String> params = new MultivaluedHashMap<>();
		params.putSingle(Config._ID, id);
		List<P> list = getItems(find("id", params));
		return list.isEmpty() ? null : list.get(0);
	}
562659
public NodeConfig setId(String id) {
    return setId(id != null ? NodeId.from(id) : null);
  }
1144870
public static <T> Label newLabel(final String id, final IModel<T> model)
	{
		final Label label = new Label(id, model);
		label.setOutputMarkupId(true);
		return label;
	}
400727
public static UniversalIdStrMessage newInstance(String id, byte[] content) {
        UniversalIdStrMessage msg = newInstance(content);
        msg.setId(id);
        return msg;
    }
348589
public Constraint getModel(final String id) throws IdNotFoundException {
		Constraint e = map.get(id);
		if (e == null) {
			throw new IdNotFoundException(id);
		}
		return e;
	}
96346
public WasEndedBy newWasEndedBy(QualifiedName id) {
	WasEndedBy res = of.createWasEndedBy();
	res.setId(id);
	return res;
    }
675424
public static EntityDescriptor create(String id, ModelType type) {
        return create(ModelId.of(id), type);
    }