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

推荐阅读
  • 在Android开发中,使用Picasso库可以实现对网络图片的等比例缩放。本文介绍了使用Picasso库进行图片缩放的方法,并提供了具体的代码实现。通过获取图片的宽高,计算目标宽度和高度,并创建新图实现等比例缩放。 ... [详细]
  • 目录实现效果:实现环境实现方法一:基本思路主要代码JavaScript代码总结方法二主要代码总结方法三基本思路主要代码JavaScriptHTML总结实 ... [详细]
  • CSS3选择器的使用方法详解,提高Web开发效率和精准度
    本文详细介绍了CSS3新增的选择器方法,包括属性选择器的使用。通过CSS3选择器,可以提高Web开发的效率和精准度,使得查找元素更加方便和快捷。同时,本文还对属性选择器的各种用法进行了详细解释,并给出了相应的代码示例。通过学习本文,读者可以更好地掌握CSS3选择器的使用方法,提升自己的Web开发能力。 ... [详细]
  • android listview OnItemClickListener失效原因
    最近在做listview时发现OnItemClickListener失效的问题,经过查找发现是因为button的原因。不仅listitem中存在button会影响OnItemClickListener事件的失效,还会导致单击后listview每个item的背景改变,使得item中的所有有关焦点的事件都失效。本文给出了一个范例来说明这种情况,并提供了解决方法。 ... [详细]
  • 本文讨论了一个关于cuowu类的问题,作者在使用cuowu类时遇到了错误提示和使用AdjustmentListener的问题。文章提供了16个解决方案,并给出了两个可能导致错误的原因。 ... [详细]
  • 本文详细介绍了在ASP.NET中获取插入记录的ID的几种方法,包括使用SCOPE_IDENTITY()和IDENT_CURRENT()函数,以及通过ExecuteReader方法执行SQL语句获取ID的步骤。同时,还提供了使用这些方法的示例代码和注意事项。对于需要获取表中最后一个插入操作所产生的ID或马上使用刚插入的新记录ID的开发者来说,本文提供了一些有用的技巧和建议。 ... [详细]
  • 本文介绍了一个在线急等问题解决方法,即如何统计数据库中某个字段下的所有数据,并将结果显示在文本框里。作者提到了自己是一个菜鸟,希望能够得到帮助。作者使用的是ACCESS数据库,并且给出了一个例子,希望得到的结果是560。作者还提到自己已经尝试了使用"select sum(字段2) from 表名"的语句,得到的结果是650,但不知道如何得到560。希望能够得到解决方案。 ... [详细]
  • 本文详细介绍了Spring的JdbcTemplate的使用方法,包括执行存储过程、存储函数的call()方法,执行任何SQL语句的execute()方法,单个更新和批量更新的update()和batchUpdate()方法,以及单查和列表查询的query()和queryForXXX()方法。提供了经过测试的API供使用。 ... [详细]
  • 前景:当UI一个查询条件为多项选择,或录入多个条件的时候,比如查询所有名称里面包含以下动态条件,需要模糊查询里面每一项时比如是这样一个数组条件:newstring[]{兴业银行, ... [详细]
  • Html5-Canvas实现简易的抽奖转盘效果
    本文介绍了如何使用Html5和Canvas标签来实现简易的抽奖转盘效果,同时使用了jQueryRotate.js旋转插件。文章中给出了主要的html和css代码,并展示了实现的基本效果。 ... [详细]
  • Java太阳系小游戏分析和源码详解
    本文介绍了一个基于Java的太阳系小游戏的分析和源码详解。通过对面向对象的知识的学习和实践,作者实现了太阳系各行星绕太阳转的效果。文章详细介绍了游戏的设计思路和源码结构,包括工具类、常量、图片加载、面板等。通过这个小游戏的制作,读者可以巩固和应用所学的知识,如类的继承、方法的重载与重写、多态和封装等。 ... [详细]
  • 本文介绍了闭包的定义和运转机制,重点解释了闭包如何能够接触外部函数的作用域中的变量。通过词法作用域的查找规则,闭包可以访问外部函数的作用域。同时还提到了闭包的作用和影响。 ... [详细]
  • 开发笔记:加密&json&StringIO模块&BytesIO模块
    篇首语:本文由编程笔记#小编为大家整理,主要介绍了加密&json&StringIO模块&BytesIO模块相关的知识,希望对你有一定的参考价值。一、加密加密 ... [详细]
  • 原文地址:https:www.cnblogs.combaoyipSpringBoot_YML.html1.在springboot中,有两种配置文件,一种 ... [详细]
  • 本文介绍了Android 7的学习笔记总结,包括最新的移动架构视频、大厂安卓面试真题和项目实战源码讲义。同时还分享了开源的完整内容,并提醒读者在使用FileProvider适配时要注意不同模块的AndroidManfiest.xml中配置的xml文件名必须不同,否则会出现问题。 ... [详细]
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社区 版权所有