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

@param <T>
the generic type of the model
@param id
the id
@return the new {@link CheckGroupSelector}
775242
public static <T> CheckGroupSelector newCheckGroupSelector(final String id)
	{
		final CheckGroupSelector checkGroupSelector = new CheckGroupSelector(id);
		checkGroupSelector.setOutputMarkupId(true);
		return checkGroupSelector;
	}
630755
public T setId(int id) {
    Preconditions.checkState(this.id == null);
    this.id = id;
    return (T) this;
  }
850551
private StateUpdater createSelection(Viewer viewer, Cursor cursor, SelectorModel model, StateUpdater reset)
    {
        return (extrp, current) ->
        {
            computeSelection(viewer, cursor, model);

            if (model.getSelectionClick() != cursor.getClick())
            {
                collidable.setEnabled(true);
                final Rectangle sel = model.getSelectionArea();
                final Area done = Geom.createArea(sel.getX(), sel.getY(), sel.getWidthReal(), sel.getHeightReal());
                for (final SelectorListener listener : listeners)
                {
                    listener.notifySelectionDone(done);
                }
                sel.set(-1, -1, 0, 0);
                model.setSelecting(false);

                return reset;
            }
            return current;
        };
    }
1351885
public static <T> TypeChecker<Set<? extends T>> tSet(TypeChecker<? extends T> elementChecker) {
        return new CollectionTypeChecker<>(Set.class, elementChecker);
    }
1308085
public static Artifact withGroupId(String groupId)
    {

        Artifact artifact = new Artifact();
        artifact.groupId = new RegexParameterizedPatternParser(groupId);
        return artifact;
    }
761129
static final boolean isValidSketchID(final int id) {
    return (id == Family.ALPHA.getID())
        || (id == Family.QUICKSELECT.getID())
        || (id == Family.COMPACT.getID());
  }
832612
@Nullable
    public Element getElement(@Nonnull String id) {
        if (id == null || id.trim().length() == 0) {
            throw new IllegalArgumentException("An element ID must be specified.");
        }

        return elementsById.get(id);
    }
126073
public static EchoActionRule newInstance(String id, Boolean hidden) {
        EchoActionRule echoActionRule = new EchoActionRule();
        echoActionRule.setActionId(id);
        echoActionRule.setHidden(hidden);
        return echoActionRule;
    }
1304513
@Override
	protected Button newButton(final String id)
	{
		return new IndicatingAjaxButton(id, getForm())
		{
			/**
			 * The serialVersionUID.
			 */
			private static final long serialVersionUID = 1L;

			/**
			 * {@inheritDoc}
			 */
			@Override
			protected void onError(final AjaxRequestTarget target, final Form<?> form)
			{
			}

			/**
			 * {@inheritDoc}
			 */
			@Override
			protected void onSubmit(final AjaxRequestTarget target, final Form<?> form)
			{
				target.add(form);
				AjaxIndicatingButtonPanel.this.onSubmit(target, form);
			}
		};
	}
1057082
@Override
    public CommandGroup createCommandGroup(String groupId, Object[] members) {
		return createCommandGroup(groupId, members, false, null);
	}
1208292
public static Element createElement(String tagName, String id) {
		return IMPL.createElement(tagName, id);
	}
850132
public static <T> Form<T> newForm(final String id, final IModel<T> model)
	{
		final Form<T> form = new Form<>(id, model);
		form.setOutputMarkupId(true);
		return form;
	}
717670
@SuppressWarnings("unchecked")
    public <M extends T> M byId(ID id) {
        return (M) server().find(getModelType(), id);
    }
417846
@SuppressWarnings("unchecked")
    public <M extends T> M ref(ID id) {
        return (M) server().getReference(getModelType(), id);
    }
392214
public static IEntityGroup newGroup(Class<?> type) throws GroupsException {
        LOGGER.trace("Invoking newGroup for type='{}'", type);
        return instance().inewGroup(type);
    }
195367
protected D createModelWithId(Object id, T entity) {
		return createModelWithId(id, entity, new Object[0]);
	}
64096
@Override
    public IEntityGroup newGroup(Class type, Name serviceName) throws GroupsException {
        return getComponentService(serviceName).newGroup(type);
    }