热门标签 | 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");
}

推荐阅读
  • 优化ListView性能
    本文深入探讨了如何通过多种技术手段优化ListView的性能,包括视图复用、ViewHolder模式、分批加载数据、图片优化及内存管理等。这些方法能够显著提升应用的响应速度和用户体验。 ... [详细]
  • 本文将介绍如何编写一些有趣的VBScript脚本,这些脚本可以在朋友之间进行无害的恶作剧。通过简单的代码示例,帮助您了解VBScript的基本语法和功能。 ... [详细]
  • Explore how Matterverse is redefining the metaverse experience, creating immersive and meaningful virtual environments that foster genuine connections and economic opportunities. ... [详细]
  • Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ... [详细]
  • 技术分享:从动态网站提取站点密钥的解决方案
    本文探讨了如何从动态网站中提取站点密钥,特别是针对验证码(reCAPTCHA)的处理方法。通过结合Selenium和requests库,提供了详细的代码示例和优化建议。 ... [详细]
  • 本文详细介绍了如何在Linux系统上安装和配置Smokeping,以实现对网络链路质量的实时监控。通过详细的步骤和必要的依赖包安装,确保用户能够顺利完成部署并优化其网络性能监控。 ... [详细]
  • 本文详细介绍了 Dockerfile 的编写方法及其在网络配置中的应用,涵盖基础指令、镜像构建与发布流程,并深入探讨了 Docker 的默认网络、容器互联及自定义网络的实现。 ... [详细]
  • 本文详细介绍了Java中org.eclipse.ui.forms.widgets.ExpandableComposite类的addExpansionListener()方法,并提供了多个实际代码示例,帮助开发者更好地理解和使用该方法。这些示例来源于多个知名开源项目,具有很高的参考价值。 ... [详细]
  • 本文详细介绍了 GWT 中 PopupPanel 类的 onKeyDownPreview 方法,提供了多个代码示例及应用场景,帮助开发者更好地理解和使用该方法。 ... [详细]
  • 本文介绍了如何利用JavaScript或jQuery来判断网页中的文本框是否处于焦点状态,以及如何检测鼠标是否悬停在指定的HTML元素上。 ... [详细]
  • This guide provides a comprehensive step-by-step approach to successfully installing the MongoDB PHP driver on XAMPP for macOS, ensuring a smooth and efficient setup process. ... [详细]
  • 本文基于刘洪波老师的《英文词根词缀精讲》,深入探讨了多个重要词根词缀的起源及其相关词汇,帮助读者更好地理解和记忆英语单词。 ... [详细]
  • 1.如何在运行状态查看源代码?查看函数的源代码,我们通常会使用IDE来完成。比如在PyCharm中,你可以Ctrl+鼠标点击进入函数的源代码。那如果没有IDE呢?当我们想使用一个函 ... [详细]
  • 深入理解 SQL 视图、存储过程与事务
    本文详细介绍了SQL中的视图、存储过程和事务的概念及应用。视图为用户提供了一种灵活的数据查询方式,存储过程则封装了复杂的SQL逻辑,而事务确保了数据库操作的完整性和一致性。 ... [详细]
  • 本文深入探讨 MyBatis 中动态 SQL 的使用方法,包括 if/where、trim 自定义字符串截取规则、choose 分支选择、封装查询和修改条件的 where/set 标签、批量处理的 foreach 标签以及内置参数和 bind 的用法。 ... [详细]
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社区 版权所有