org.apache.wicket.util.lang.Generics.newArrayList()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(130)

本文整理了Java中org.apache.wicket.util.lang.Generics.newArrayList()方法的一些代码示例,展示了Generics.newArrayList()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Generics.newArrayList()方法的具体详情如下:
包路径:org.apache.wicket.util.lang.Generics
类名称:Generics
方法名:newArrayList

Generics.newArrayList介绍

[英]Creates a new ArrayList
[中]创建一个新的ArrayList

代码示例

代码示例来源:origin: org.apache.wicket/wicket-core

protected AbstractObjectChecker()
{
  this(Generics.<Class<?>>newArrayList());
}

代码示例来源:origin: apache/wicket

/**
 * Construct.
 */
public Url()
{
  segments = Generics.newArrayList();
  parameters = Generics.newArrayList();
}

代码示例来源:origin: org.apache.wicket/wicket-request

/**
 * Construct.
 */
public Url()
{
  segments = Generics.newArrayList();
  parameters = Generics.newArrayList();
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-kendo-ui

/**
 * Constructor
 *
 * @param title IModel that represent the title of the menu-item
 * @param icon either a {@link KendoIcon} constant or a 'k-i-<i>icon</i>' css class
 */
public MenuItem(IModel<String> title, String icon)
{
  super(title, icon);
  this.items = Generics.newArrayList();
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core

@Override
public List<String> getTextProperties()
{
  return Generics.newArrayList();
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core

/**
 * Constructor.
 */
public JQueryAbstractBehavior()
{
  this.references = Generics.newArrayList();
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
 * Constructor
 *
 * @param title IModel that represents the title of the menu-item
 * @param pageUrl the url of the page to redirect to when menu-item is clicked
 * @param openInNewWindow whether the page is opened in a new window
 */
public SfMenuItem(IModel<String> title, String pageUrl, boolean openInNewWindow)
{
  super(title, pageUrl, openInNewWindow);
  this.items = Generics.newArrayList();
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
 * Constructor
 *
 * @param title IModel that represent the title of the menu-item
 * @param icon either a {@link KendoIcon} constant or a 'k-i-<i>icon</i>' css class
 */
public MenuItem(IModel<String> title, String icon)
{
  super(title, icon);
  this.items = Generics.newArrayList();
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
 * Constructor
 *
 * @param title IModel that represents the title of the menu-item
 */
public SfMenuItem(IModel<String> title)
{
  super(title);
  this.items = Generics.newArrayList();
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
 * Constructor
 *
 * @param title IModel that represents the title of the menu-item
 * @param pageClass the class of the page to redirect to, when menu-item is clicked
 */
public SfMenuItem(IModel<String> title, Class<? extends Page> pageClass)
{
  super(title, pageClass);
  this.items = Generics.newArrayList();
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
 * Constructor
 *
 * @param title IModel that represents the title of the menu-item
 * @param pageClass the class of the page to redirect to, when menu-item is clicked
 * @param pageParameters the {@link PageParameters}
 */
public SfMenuItem(IModel<String> title, Class<? extends Page> pageClass, PageParameters pageParameters)
{
  super(title, pageClass, pageParameters);
  this.items = Generics.newArrayList();
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
 * Constructor.
 */
public JQueryAbstractBehavior()
{
  this.references = Generics.newArrayList();
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core

/**
 * Registers a jQuery event statement
 *
 * @param statement the jQuery statement (ie: "jQuery('#myId').on('click', function() {});")
 */
protected void register(String statement)
{
  if (this.events == null)
  {
    this.events = Generics.newArrayList();
  }
  this.events.add(statement);
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

@Override
protected String getModelValue()
{
  List<String> values = Generics.newArrayList();
  for (T value : this.getModelObject())
  {
    values.add(String.format("{ %s }", this.renderer.render(value)));
  }
  return values.toString();
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-kendo-ui

@Override
protected String getModelValue()
{
  List<String> values = Generics.newArrayList();
  for (T value : this.getModelObject())
  {
    values.add(String.format("{ %s }", this.renderer.render(value)));
  }
  return values.toString();
}

代码示例来源:origin: org.wicketstuff/wicketstuff-datastore-memcached

@Override
public IMemcachedSettings setServerNames(String serverNames) {
  Args.notEmpty(serverNames, "serverNames");
  String[] ss = Strings.split(serverNames, ',');
  this.servers = Generics.newArrayList(ss.length);
  for (String server : ss)
  {
    this.servers.add(server.trim());
  }
  return this;
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-kendo-ui

public ChangeEvent()
{
  this.objects = Generics.newArrayList();
  String input = RequestCycleUtils.getQueryParameterValue("items").toString();
  Matcher matcher = PATTERN.matcher(input);
  while (matcher.find())
  {
    this.objects.add(new JSONObject(matcher.group()));
  }
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core

@Override
  public List<HeaderItem> getDependencies()
  {
    List<HeaderItem> dependencies = Generics.newArrayList();
    dependencies.add(JavaScriptHeaderItem.forReference(JQueryResourceReference.getV3()));

    return dependencies;
  }
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

public ChangeEvent()
{
  this.objects = Generics.newArrayList();
  String input = RequestCycleUtils.getQueryParameterValue("items").toString();
  Matcher matcher = PATTERN.matcher(input);
  while (matcher.find())
  {
    this.objects.add(new JSONObject(matcher.group()));
  }
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-calendar

@Override
  public List<HeaderItem> getDependencies()
  {
    List<HeaderItem> dependencies = Generics.newArrayList();
    dependencies.addAll(super.getDependencies());
    dependencies.add(JavaScriptHeaderItem.forReference(JQueryMomentResourceReference.get()));
    return dependencies;
  }
}

相关文章