- 浏览: 9503 次
- 性别:
- 来自: 武汉
最新评论
gwt代码 TinyMCE类
gwt代码 AbstractTinyMCEConfiguration类,里面的参数用于配置tinyMCE的功能键;
gwt代码 DefaultTinyMCEConfiguration tinyMCE默认配置类
目录结构:
import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.TextArea; import com.google.gwt.user.client.ui.VerticalPanel; public class TinyMCE extends Composite { private TextArea ta; private String id; private AbstractTinyMCEConfiguration config; public TinyMCE(AbstractTinyMCEConfiguration config) { super(); if (config == null) { GWT.log("The configuration cannot be null", null); return; } this.config = config; initWidget(initTinyMCE()); init(config); } public TinyMCE() { this(new DefaultTinyMCEConfiguration()); } private VerticalPanel initTinyMCE() { int width = 65 ; int height = 30 ; VerticalPanel panel = new VerticalPanel(); panel.setWidth("100%"); id = HTMLPanel.createUniqueId(); ta = new TextArea(); ta.setCharacterWidth(width); ta.setVisibleLines(height); DOM.setElementAttribute(ta.getElement(), "id", id); DOM.setStyleAttribute(ta.getElement(), "width", "100%"); DOM.setStyleAttribute(ta.getElement(), "height", "250px"); // delete // line? panel.add(ta); return panel; } public String getID() { return id; } public void setText(String text) { ta.setText(text); } public String getText() { getTextData(); return ta.getText(); } protected native void focusMCE(String id) /*-{ $wnd.tinyMCE.execCommand('mceFocus', true, id); }-*/; protected native void resetMCE() /*-{ $wnd.tinyMCE.execCommand('mceResetDesignMode', true); }-*/; public void unload() { unloadMCE(id); } protected native void unloadMCE(String id) /*-{ $wnd.tinyMCE.execCommand('mceRemoveControl', false, id); }-*/; protected native void updateContent(String id) /*-{ $wnd.tinyMCE.selectedInstance = $wnd.tinyMCE.getInstanceById(id); $wnd.tinyMCE.setContent($wnd.document.getElementById(id).value); }-*/; protected native void getTextData() /*-{ $wnd.tinyMCE.triggerSave(); }-*/; protected native String encodeURIComponent(String text) /*-{ return encodeURIComponent(text); }-*/; protected native void setTextAreaToTinyMCE(String id) /*-{ $wnd.tinyMCE.execCommand('mceAddControl', true, id); }-*/; protected native void removeMCE(String id) /*-{ $wnd.tinyMCE.execCommand('mceRemoveControl', true, id); }-*/; public String initMode(){ return config.getMode(); } protected native void init(AbstractTinyMCEConfiguration conf) /*-{ $wnd.tinyMCE.init({ // General options mode : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getMode()(), theme : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getTheme()(), elements : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getElements()(), skin : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getSkin()(), entity_encoding : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getEntityEncoding()(), plugins : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getPlugins()(), // Theme options // excluded buttons: ,fontselect,fontsizeselect,preview,image,help,|,forecolor,backcolor tablecontrols,|,,emotions,media,|,print theme_advanced_buttons1 : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getThemeAdvancedButtons1()(), theme_advanced_buttons2 : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getThemeAdvancedButtons2()(), theme_advanced_buttons3 : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getThemeAdvancedButtons3()(), //theme_advanced_buttons4 : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getThemeAdvancedButtons4()(), theme_advanced_toolbar_location : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getThemeAdvancedToolbarLocation()(), theme_advanced_toolbar_align : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getThemeAdvancedToolbarAlign()(), theme_advanced_statusbar_location : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getThemeAdvancedStatusbarLocation()(), theme_advanced_resizing : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getThemeAdvancedResizing()(), // Example content CSS (should be your site CSS) content_css : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getContentCss()(), // Drop lists for link/image/media/template dialogs template_external_list_url : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getTemplateExternalListUrl()(), external_link_list_url : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getExternalLinkListUrl()(), external_image_list_url : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getExternalImageListUrl()(), media_external_list_url : conf.@com.orclh.gwt.client.client.AbstractTinyMCEConfiguration::getMediaExternalListUrl()(), // Replace values for the template plugin template_replace_values : { username : "Some User", staffid : "991234" } }); }-*/; public AbstractTinyMCEConfiguration getConfig() { return config; } }
gwt代码 AbstractTinyMCEConfiguration类,里面的参数用于配置tinyMCE的功能键;
package com.orclh.gwt.client.client; public abstract class AbstractTinyMCEConfiguration { private String mode = "textareas"; private String theme = "advanced"; private String elements = ""; private String skin = "o2k7"; private String entityEncoding = "raw"; private String themeAdvancedToolbarLocation = "top"; private String themeAdvancedToolbarAlign = "left"; private String themeAdvancedStatusbarLocation = "bottom"; private String themeAdvancedResizing = "true"; private String contentCss = "http://www.e-germanos.gr/e-germanos/eshop/css/all.css"; private String templateExternalListUrl = "editor_stuf/lists/template_list.js"; private String externalLinkListUrl = "editor_stuf/lists/link_list.js"; private String externalImageListUrl = "editor_stuf/lists/image_list.js"; private String mediaExternalListUrl = "editor_stuf/lists/media_list.js"; private String[] plugins = new String[] {"example","safari","pagebreak","style","layer","table","save","advhr","advimage","advlink","emotions","iespell","inlinepopups","insertdatetime","preview","media","searchreplace","print","contextmenu","paste","directionality","fullscreen","noneditable","visualchars","nonbreaking","xhtmlxtras","template"}; private String[] themeAdvancedButtons1 = new String[] {"mymenubutton" , "newdocument" , "|", "bold", "italic", "underline", "strikethrough", "|", "justifyleft", "justifycenter", "justifyright", "justifyfull", "formatselect"}; private String[] themeAdvancedButtons2 = new String[] {"cut", "copy", "paste", "pastetext", "pasteword", "|", "search,replace", "|", "bullist", "numlist", "|", "outdent", "indent", "blockquote", "|", "undo", "redo", "|", "link", "unlink", "anchor", "cleanup", "code", "|", "insertdate", "inserttime"}; private String[] themeAdvancedButtons3 = new String[] {"hr", "removeformat", "visualaid", "|", "sub", "sup", "|", "charmap", "iespell", "advhr", "|", "ltr", "rtl", "|", "fullscreen"}; private String[] themeAdvancedButtons4 = new String[] {"insertlayer", "moveforward", "movebackward", "absolute", "|", "styleprops", "|", "cite", "abbr", "acronym", "del", "ins", "attribs", "|", "visualchars", "nonbreaking", "template", "pagebreak"}; public String getMode() { return mode; } public void setMode(String mode) { this.mode = mode; } public String getTheme() { return theme; } public void setTheme(String theme) { this.theme = theme; } public String getSkin() { return skin; } public void setSkin(String skin) { this.skin = skin; } public String getEntityEncoding() { return entityEncoding; } public void setEntityEncoding(String entity_encoding) { this.entityEncoding = entity_encoding; } public String getThemeAdvancedToolbarLocation() { return themeAdvancedToolbarLocation; } public void setThemeAdvancedToolbarLocation(String theme_advanced_toolbar_location) { this.themeAdvancedToolbarLocation = theme_advanced_toolbar_location; } public String getThemeAdvancedToolbarAlign() { return themeAdvancedToolbarAlign; } public void setThemeAdvancedToolbarAlign(String theme_advanced_toolbar_align) { this.themeAdvancedToolbarAlign = theme_advanced_toolbar_align; } public String getThemeAdvancedStatusbarLocation() { return themeAdvancedStatusbarLocation; } public void setThemeAdvancedStatusbarLocation(String theme_advanced_statusbar_location) { this.themeAdvancedStatusbarLocation = theme_advanced_statusbar_location; } public String getThemeAdvancedResizing() { return themeAdvancedResizing; } public void setThemeAdvancedResizing(String theme_advanced_resizing) { this.themeAdvancedResizing = theme_advanced_resizing; } public String getContentCss() { return contentCss; } public void setContentCss(String content_css) { this.contentCss = content_css; } public String getTemplateExternalListUrl() { return templateExternalListUrl; } public void setTemplateExternalListUrl(String template_external_list_url) { this.templateExternalListUrl = template_external_list_url; } public String getExternalLinkListUrl() { return externalLinkListUrl; } public void setExternalLinkListUrl(String external_link_list_url) { this.externalLinkListUrl = external_link_list_url; } public String getExternalImageListUrl() { return externalImageListUrl; } public void setExternalImageListUrl(String external_image_list_url) { this.externalImageListUrl = external_image_list_url; } public String getMediaExternalListUrl() { return mediaExternalListUrl; } public void setMediaExternalListUrl(String media_external_list_url) { this.mediaExternalListUrl = media_external_list_url; } public String getPlugins() { String plug = ""; int c = 1; for (String p : plugins) { plug += p; if (c < plugins.length) { plug += ", "; } } return plug; } public void setPlugins(String[] plugins) { this.plugins = plugins; } public String getThemeAdvancedButtons1() { String button1 = ""; int c = 1; for (String p : themeAdvancedButtons1) { button1 += p; if (c < themeAdvancedButtons1.length) { button1 += ", "; } } return button1; } public void setThemeAdvancedButtons1(String[] theme_advanced_buttons1) { this.themeAdvancedButtons1 = theme_advanced_buttons1; } public String getThemeAdvancedButtons2() { String button2 = ""; int c = 1; for (String p : themeAdvancedButtons2) { button2 += p; if (c < themeAdvancedButtons2.length) { button2 += ", "; } } return button2; } public void setThemeAdvancedButtons2(String[] theme_advanced_buttons2) { this.themeAdvancedButtons2 = theme_advanced_buttons2; } public String getThemeAdvancedButtons3() { String button3 = ""; int c = 1; for (String p : themeAdvancedButtons3) { button3 += p; if (c < themeAdvancedButtons3.length) { button3 += ", "; } } return button3; } public void setThemeAdvancedButtons3(String[] theme_advanced_buttons3) { this.themeAdvancedButtons3 = theme_advanced_buttons3; } public String getThemeAdvancedButtons4() { String button4 = ""; int c = 1; for (String p : themeAdvancedButtons4) { button4 += p; if (c < themeAdvancedButtons4.length) { button4 += ", "; } } return button4; } public void setThemeAdvancedButtons4(String[] theme_advanced_buttons4) { this.themeAdvancedButtons4 = theme_advanced_buttons4; } public String getElements() { return elements; } public void setElements(String elements) { this.elements = elements; } }
gwt代码 DefaultTinyMCEConfiguration tinyMCE默认配置类
public class DefaultTinyMCEConfiguration extends AbstractTinyMCEConfiguration { }
目录结构:
相关推荐
第11讲:深入理解指针(1)
springboot整合 freemarker方法
第14讲:深入理解指针(4)
《同行者4.1.2语音助手:车机版安装详解》 在现代科技日新月异的时代,智能车载设备已经成为了汽车生活的重要组成部分。"同行者4.1.2"便是这样一款专为车机设计的语音助手,旨在提供更为便捷、安全的驾驶体验。该版本针对掌讯全系列设备进行了兼容优化,让车主能够轻松实现语音控制,减少驾驶过程中的手动操作,提升行车安全性。 我们来了解下"同行者4.1.2"的核心功能。这款语音助手集成了智能语音识别技术,用户可以通过简单的语音指令完成导航、音乐播放、电话拨打等一系列操作,有效避免了因操作手机或车机带来的分心。此外,其强大的语义理解和自学习能力,使得它能逐步适应用户的口音和习惯,提供更个性化的服务。 在安装过程中,用户需要注意的是,"同行者4.1.2"包含了四个核心组件,分别是: 1. TXZCore.apk:这是同行者语音助手的基础框架,包含了语音识别和处理的核心算法,是整个应用运行的基础。 2. com.txznet.comm.base.BaseApplication.apk:这个文件可能包含了应用的公共模块和基础服务,为其他组件提供支持。 3. TXZsetting.apk:这
市场拓展主管绩效考核表
“线上购车3D全方位体验:汽车模型展示与个性化定制功能”,three.js案例- 线上购车3d展示(源码) 包含内容:1.汽车模型展示;2.汽车肤;3.轮毂部件更;4.开关车门动画;5.汽车尺寸测量;6.自动驾驶;7.镜面倒影;8.hdr运用;9.移动端适配; 本为html+css+three.js源码 ,核心关键词:three.js案例; 线上购车3D展示; 汽车模型展示; 汽车换肤; 轮毂部件更换; 开关车门动画; 汽车尺寸测量; 自动驾驶; 镜面倒影; HDR运用; 移动端适配; HTML+CSS+three.js源码。,"Three.js源码:线上购车3D展示案例,含汽车模型、换肤、轮毂更换等九大功能"
数据名称:2000-2022年各县市区主要社会经济发展指标面板数据 数据类型:dta格式 数据来源:中国县域统计
一、智慧环卫管理平台的建设背景与目标 智慧环卫管理平台的建设源于对环卫管理全面升级的需求。当前,城管局已拥有139辆配备车载GPS系统、摄像头和油耗传感器的环卫车辆,但环卫人员尚未配备智能移动终端,公厕也缺乏信息化系统和智能终端设备。为了提升环卫作业效率、实现精细化管理并节省开支,智慧环卫管理平台应运而生。该平台旨在通过信息化技术和软硬件设备,如车载智能终端和环卫手机App,实时了解环卫人员、车辆的工作状态、信息和历史记录,使环卫作业管理透明化、精细化。同时,平台还期望通过数据模型搭建和数据研读,实现更合理的环卫动态资源配置,为环卫工作的科学、健康、持续发展提供决策支持。 二、智慧环卫管理平台的建设内容与功能 智慧环卫管理平台的建设内容包括运行机制体制建设、业务流程设计、智慧公厕系统建设、网络建设、主机和储存平台需求、平台运维管理体系、硬件标准规范体系以及考核评价体系等多个方面。其中,智慧公厕系统建设尤为关键,它能实时监控公厕运行状态,保障公厕的清洁和正常运行。平台建设还充分利用了现有的电子政务网络资源,并考虑了有线和无线网络的需求。在功能上,平台通过普查、整合等手段全面收集环卫车辆、企业、人员、设施、设备等数据,建立智慧环卫基础数据库。利用智能传感、卫星定位等技术实现环卫作业的在线监管和远程监控,实现对道路、公共场所等的作业状况和卫生状况的全面监管。此外,平台还建立了环卫作业网格化管理责任机制,实现从作业过程到结果的全面监管,科学评价区域、部门、单位和人员的作业效果。 三、智慧环卫管理平台的效益与风险规避 智慧环卫管理平台的建设将带来显著的环境、经济和管理效益。环境方面,它将有力推进环境卫生监管服务工作,改善环境卫生状况,为人民群众创造更加清洁、卫生的工作和生活环境。经济方面,通过智慧化监管,大大降低了传统管理手段的成本,提高了监管的准确性和效率。管理方面,平台能够追踪溯源市民反映的问题,如公厕异味、渣土车辆抛洒等,并找到相应的责任单位进行处置,防止类似事件再次发生。同时,平台还拥有强大的预警机制功能,能够在很多环卫问题尚未出现前进行处置。然而,平台建设也面临一定的风险,如部门协调、配合问题,建设单位选择风险以及不可预测的自然灾害等。为了规避这些风险,需要加强领导、统一思想,选择优秀的系统集成商承接项目建设,并做好计算机和应用系统的培训工作。同时,也要注意标准制定工作和相关法律法规的制定工作,以保证系统建设完成后能够真正为环卫管理工作带来便利。
36 -企业管理主管绩效考核表1
1.1 -1.4 工程代码
USDT合约,USDT智能合约
基于姿态估计三维人脸形状重建.pdf
一般员工绩效考核表模板(通用版) (2)
全国各省295地级市互联网普及率、互联网用户数、每百人互联网宽带用户(2011-2022年) 数据年份:2011-2022年(2022存在部分缺失) 数据范围:全国各省295个地级市 数据来源:地方统计局
一、各省、分行业CO2排放、283个地级市碳排放及计算过程 2.分行业二氧化碳排放量 在这里插入图片描述 3、280多个地级市碳排放及计算过程 二、碳中和文献、最新政策、碳金融数据+数学建模 1.二氧化碳减排规划,碳金融数据收集及数学建模 2.碳中和政策和下载量最高的碳中和论文 三、碳排放+碳市场+碳交易+碳中和+碳排放核算Excel自动计算表 全行业碳排放核算Excel自动计算表 四、碳交易数据 五、主要能源碳排放计算参数
第20讲:自定义类型:结构体
视觉跟踪算法综述.pdf
MATLAB超效率SBM-DEA模型代码详解:简易操作指南及期望与非期望产出的超效率分析,附Malmquist指数与分解功能,MATLAB的超效率SBM-DEA模型代码(有安装教程和内容讲解之类的东西),操作很简单 可以做期望产出和非期望产出的超效率和非超效率sbm模型和Malmquist指数和分解 ,MATLAB; SBM-DEA模型; 超效率SBM-DEA; 安装教程; 内容讲解; 期望产出; 非期望产出; 超效率与非超效率sbm模型; Malmquist指数; 分解。,"MATLAB超效SBM-DEA模型代码:非期望产出分析的便捷工具"
人事行政主管绩效考核评分表
人力资源管理工具绩效考核excel模板