热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

com.googlecode.wicket.jquery.core.Options类的使用及代码示例

本文整理了Java中com.googlecode.wicket.jquery.core.Options类的一些代码示例,展示了Options类

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

Options介绍

[英]Provides a wrapper on a Map that will contains jQuery behavior options (key/value).
the #toString() methods returns the JSON representation of the options.
[中]在将包含jQuery行为选项(键/值)的映射上提供包装器。
#toString()方法返回选项的JSON表示形式。

代码示例

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

/**
* Constructor
*
* @param selector the html selector (ie: "#myId")
* @param listener the {@code IValueChangedListener}
*/
public DatePickerBehavior(String selector, IValueChangedListener listener)
{
this(selector, new Options(), listener);
}

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

/**
* Sets the '{@code connectWith}' options
*
* @param selector the html selector
* @return this, for chaining
*/
private Sortable connectWith(String selector)
{
this.options.set("connectWith", Options.asString(selector));
return this;
}

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

@Override
public boolean isSelectable()
{
return this.options.get("selectable") != null;
}

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

public ButtonBehavior(String selector, String icon)
{
super(selector, METHOD, new Options("icon", Options.asString(icon)));
}
}

代码示例来源:origin: webanno/webanno

public static Options makeTooltipOptions()
{
Options optiOns= new Options();
options.set("position", "{ my: 'center bottom', at: 'center top', of: '.page-footer' }");
options.set("show", false);
options.set("hide", false);
return options;
}

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

/**
* Sets the required distance that the mouse should travel in order to initiate a drag.
*
* @param distance the distance
* @return this, for chaining
*/
public Draggable setDistance(Integer distance)
{
this.options.set("distance", distance);
return this;
}

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

@Override
public String toString()
{
return Options.asString(this.axis);
}
}

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

/**
* Gets the new {@link Button}'s {@link Options} to be used on click
*
* @return the {@link Options}
*/
protected Options newOnClickOptions()
{
Options optiOns= new Options();
options.set("icon", Options.asString(CSS_INDICATOR));
options.set("iconPosition", this.position == Position.LEFT ? "'beginning'" : "'end'");
return options;
}

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

@Override
protected String $()
{
return JQueryBehavior.$(this.selector, this.method, this.options.toString());
}

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

/**
* Sets the 'transport.create' callback function
*
* @param function the Javascript function
*/
public void setTransportCreate(String function)
{
this.transport.set("create", function);
}

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

/**
* Converts an object to its Javascript representation. ie: "myvalue" (with the double quotes)

* If the supplied value is null, "null" is returned
*
* @param value the object
* @return the JSON value
*/
public static String asString(Object value)
{
return Options.asString(String.valueOf(value));
}

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

/**
* Gets the new {@link Button}'s {@link Options} to be used on click
*
* @return the {@link Options}
*/
protected Options newOnClickOptions()
{
Options optiOns= new Options();
options.set("disabled", true);
options.set("icon", Options.asString(AjaxIndicatingButtonBehavior.CSS_INDICATOR));
return options;
}

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

public ButtonBehavior(String selector, String icon)
{
super(selector, METHOD, new Options("icon", Options.asString(icon)));
}
}

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

/**
* Gets the jQuery statement.

* Warning: This method is *not* called by the behavior directly (only {@link #$()} is).
*
* @param options the {@link Options} to be supplied to the current method
* @return the jQuery statement
*/
public String $(Options options)
{
return this.$(options.toString());
}

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

/**
* Constructor
*
* @param id the markup id
* @param converter the {@link IJsonConverter}
*/
public Diagram(String id, IJsonConverter converter)
{
this(id, new Options(), converter);
}

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

/**
* Sets the 'transport.read' callback url
*
* @param url the callback url
*/
public void setTransportReadUrl(CharSequence url)
{
this.transport.set("read", Options.asString(url));
}

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

/**
* Sets the 'transport.destroy' callback function
*
* @param function the Javascript function
*/
public void setTransportDelete(String function)
{
this.transport.set("destroy", function);
}

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

/**
* Gets the jQuery statement.
*
* @param effect the effect to be played
* @return the jQuery statement
*/
@Override
public String $(String effect)
{
return this.$(effect, Options.asString(""));
}

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

public ButtonBehavior(String selector, String icon)
{
super(selector, METHOD, new Options("icon", Options.asString(icon)));
}
}

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

@Override
public String getCulture()
{
return this.options.get("culture");
}

推荐阅读
author-avatar
蔚-然之林
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有