小程序richtext

本文将完成使用SWT实现我们自己的RichText编辑器组件的任务。 在为我的一位客户开发基于桌面的应用程序时,我遇到了这样的可视化组件的需求,并希望添加一项功能,以允许用户使用粗体,斜体,删除线等功能来写富文本注释。 那时,我开始研究网络,以找到一个开放源代码库,该库可以使我免于从头开始部署它的工作,而我遇到了“已完成”实现的列表 。
让我们在这里列出我对这种组件的需求:
  • 它应该是本地SWT组件,而不是Eclipse View或Editor,并且必须可嵌入任何SWT组合中。
  • 它应允许使用粗体,斜体,删除线等基本格式。
  • 它应该支持剪贴板的基本操作,例如复制,剪切和粘贴。
  • 它应该使用基本HTML输出文本。
  • 它需要能够解析所生成的基本HTML,以允许版本。
因此,我发现的大多数解决方案都不符合我的需求,因为它们要么是Eclipse Views / Editor,要么太笨拙,无法集成,要么试图实现太多功能,要么与我用来为自己的公司打上烙印的图标集不符应用程序(尽管这是一个小问题,但总结起来,这为我做出决定提供了更多原因)。 因此,最后我终于决定根据StyledText SWT标准组件从头开始编写它,并以该示例为起点。
RichText控件
几乎所有的工作都将由RichText控件本身执行。 我将添加一些支持类,这些支持类将用作将结果文本格式化为基本HTML的助手,以及图像,本地化字符串等的提供者。
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;import javax.xml.parsers.ParserConfigurationException;import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CaretListener;
import org.eclipse.swt.custom.ExtendedModifyEvent;
import org.eclipse.swt.custom.ExtendedModifyListener;
import org.eclipse.swt.custom.StyleRange;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.custom.VerifyKeyListener;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.VerifyListener;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Caret;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.xml.sax.SAXException;public class RichText extends Composite {private List cachedStyles =Collections.synchronizedList(new LinkedList());private ToolBar toolBar;private StyledText styledText;private ToolItem boldBtn;private ToolItem italicBtn;private ToolItem strikeThroughBtn;private ToolItem underlineBtn;private ToolItem pasteBtn;private ToolItem eraserBtn;public RichText(Composite parent, int style) {super(parent, style);initComponents();}public void addCaretListener(CaretListener listener) {styledText.addCaretListener(listener);}public void removeCaretListener(CaretListener listener) {styledText.removeCaretListener(listener);}public void addExtendedModifyListener(ExtendedModifyListener listener) {styledText.addExtendedModifyListener(listener);}public void removeExtendedModifyListener(ExtendedModifyListener listener) {styledText.removeExtendedModifyListener(listener);}public void addModifyListener(ModifyListener listener) {styledText.addModifyListener(listener);}public void removeModifyListener(ModifyListener listener) {styledText.removeModifyListener(listener);}public void addVerifyKeyListener(VerifyKeyListener listener) {styledText.addVerifyKeyListener(listener);}public void removeVerifyKeyListener(VerifyKeyListener listener) {styledText.removeVerifyKeyListener(listener);}public void addVerifyListener(VerifyListener listener) {styledText.addVerifyListener(listener);}public void removeVerifyListener(VerifyListener listener) {styledText.removeVerifyListener(listener);}public int getCharCount() {return styledText.getCharCount();}public Caret getCaret() {return styledText.getCaret();}public int getCaretOffset() {return styledText.getCaretOffset();}/*** Obtain an HTML formatted text from the component contents** @return an HTML formatted text*/public String getFormattedText() {String plainText = styledText.getText();RichStringBuilder builder = new RichStringBuilder();Integer[] lineBreaks = getLineBreaks();int brIdx = 0;int start = 0;int end = (lineBreaks.length > brIdx ? lineBreaks[brIdx++] : plainText.length() - 1);while (start < end) {builder.startParagraph();StyleRange[] ranges = styledText.getStyleRanges(start, (end - start));if (ranges != null && ranges.length > 0) {for (int i = 0;i < ranges.length;i++) {if (start < ranges[i].start) {builder.append(plainText.substring(start, ranges[i].start));}List styles = translateStyle(ranges[i]);builder.startFontStyles(styles.toArray(new FontStyle[styles.size()]));builder.append(plainText.substring(ranges[i].start,ranges[i].start + ranges[i].length));builder.endFontStyles(styles.size());start = (ranges[i].start + ranges[i].length) + 1;}}if (start < end) {builder.append(plainText.substring(start, end));}start = end + styledText.getLineDelimiter().length();end = (lineBreaks.length > brIdx ? lineBreaks[brIdx++] : plainText.length() - 1);builder.endParagraph();}return builder.toString();}public void setFormattedText(String text)throws ParserConfigurationException, SAXException, IOException {RichTextParser parser = RichTextParser.parse(text);styledText.setText(parser.getText());styledText.setStyleRanges(parser.getStyleRanges());}public int getLineAtOffset(int offset) {return styledText.getLineAtOffset(offset);}public int getLineCount() {return styledText.getLineCount();}public int getLineSpacing() {return styledText.getLineSpacing();}public String getText() {return styledText.getText();}protected void applyFontStyleToSelection(FontStyle style) {Point sel = styledText.getSelectionRange();if ((sel == null) || (sel.y == 0)) {return ;}StyleRange newStyle;for (int i = sel.x; i < (sel.x + sel.y); i++) {StyleRange range = styledText.getStyleRangeAtOffset(i);if (range != null) {newStyle = (StyleRange) range.clone();newStyle.start = i;newStyle.length = 1;} else {newStyle = new StyleRange(i, 1, null, null, SWT.NORMAL);}switch (style) {case BOLD:newStyle.fontStyle ^= SWT.BOLD;break;case ITALIC:newStyle.fontStyle ^= SWT.ITALIC;break;case STRIKE_THROUGH:newStyle.strikeout = !newStyle.strikeout;break;case UNDERLINE:newStyle.underline = !newStyle.underline;break;}styledText.setStyleRange(newStyle);}styledText.setSelectionRange(sel.x + sel.y, 0);}/*** Clear all styled data*/protected void clearStylesFromSelection() {Point sel = styledText.getSelectionRange();if ((sel != null) && (sel.y != 0)) {StyleRange style = new StyleRange(sel.x, sel.y, null, null, SWT.NORMAL);styledText.setStyleRange(style);}styledText.setSelectionRange(sel.x + sel.y, 0);}private Integer[] getLineBreaks() {List list = new ArrayList();int lastIdx = 0;while (lastIdx < styledText.getCharCount()) {int br = styledText.getText().indexOf(styledText.getLineDelimiter(), lastIdx);if (br >= lastIdx && !list.contains(br)) {list.add(br);}lastIdx += styledText.getLineDelimiter().length() + 1;}Collections.sort(list);return list.toArray(new Integer[list.size()]);}protected void handleCutCopy() {// Save the cut/copied style info so that during paste we will maintain// the style information. Cut/copied text is put in the clipboard in// RTF format, but is not pasted in RTF format. The other way to// handle the pasting of styles would be to access the Clipboard// directly and// parse the RTF text.cachedStyles = Collections.synchronizedList(new LinkedList());Point sel = styledText.getSelectionRange();int startX = sel.x;for (int i = sel.x; i <= sel.x + sel.y - 1; i++) {StyleRange style = styledText.getStyleRangeAtOffset(i);if (style != null) {style.start = style.start - startX;if (!cachedStyles.isEmpty()) {StyleRange lastStyle = cachedStyles.get(cachedStyles.size() - 1);if (lastStyle.similarTo(style)&& lastStyle.start + lastStyle.length == style.start) {lastStyle.length++;} else {cachedStyles.add(style);}} else {cachedStyles.add(style);}}}pasteBtn.setEnabled(true);}private void handleExtendedModified(ExtendedModifyEvent event) {if (event.length == 0) return;StyleRange style;if (event.length == 1|| styledText.getTextRange(event.start, event.length).equals(styledText.getLineDelimiter())) {// Have the new text take on the style of the text to its right// (during// typing) if no style information is active.int caretOffset = styledText.getCaretOffset();style = null;if (caretOffset < styledText.getCharCount())style = styledText.getStyleRangeAtOffset(caretOffset);if (style != null) {style = (StyleRange) style.clone();style.start = event.start;style.length = event.length;} else {style = new StyleRange(event.start, event.length, null, null,SWT.NORMAL);}if (boldBtn.getSelection())style.fontStyle |= SWT.BOLD;if (italicBtn.getSelection())style.fontStyle |= SWT.ITALIC;style.underline = underlineBtn.getSelection();style.strikeout = strikeThroughBtn.getSelection();if (!style.isUnstyled())styledText.setStyleRange(style);} else {// paste occurring, have text take on the styles it had when it was// cut/copiedfor (int i = 0; i < cachedStyles.size(); i++) {style = cachedStyles.get(i);StyleRange newStyle = (StyleRange) style.clone();newStyle.start = style.start + event.start;styledText.setStyleRange(newStyle);}}}private void handleTextSelected(SelectionEvent event) {Point sel = styledText.getSelectionRange();if ((sel != null) && (sel.y != 0)) {StyleRange[] styles = styledText.getStyleRanges(sel.x, sel.y);eraserBtn.setEnabled((styles != null) && (styles.length > 0));} else {eraserBtn.setEnabled(false);}}private void handleKeyReleased(KeyEvent event) {if ((event.keyCode == SWT.ARROW_LEFT) || (event.keyCode == SWT.ARROW_UP)|| (event.keyCode == SWT.ARROW_RIGHT) || (event.keyCode == SWT.ARROW_DOWN)) {updateStyleButtons();}}private void updateStyleButtons() {int caretOffset = styledText.getCaretOffset();StyleRange style = null;if (caretOffset >= 0 && caretOffset < styledText.getCharCount()) {style = styledText.getStyleRangeAtOffset(caretOffset);}if (style != null) {boldBtn.setSelection((style.fontStyle & SWT.BOLD) != 0);italicBtn.setSelection((style.fontStyle & SWT.ITALIC) != 0);underlineBtn.setSelection(style.underline);strikeThroughBtn.setSelection(style.strikeout);} else {boldBtn.setSelection(false);italicBtn.setSelection(false);underlineBtn.setSelection(false);strikeThroughBtn.setSelection(false);}}private void initComponents() {GridLayout layout = new GridLayout();layout.numColumns = 1;setLayout(layout);toolBar = createToolBar(this);toolBar.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));styledText = new StyledText(this, SWT.BORDER | SWT.MULTI |SWT.V_SCROLL | SWT.H_SCROLL);styledText.setLayoutData(new GridData(GridData.FILL_BOTH));styledText.addKeyListener(new KeyAdapter() {@Overridepublic void keyReleased(KeyEvent e) {handleKeyReleased(e);}});styledText.addExtendedModifyListener(new ExtendedModifyListener() {@Overridepublic void modifyText(ExtendedModifyEvent event) {handleExtendedModified(event);}});styledText.addMouseListener(new MouseAdapter() {@Overridepublic void mouseUp(MouseEvent e) {updateStyleButtons();}});styledText.addSelectionListener(new SelectionAdapter() {@Overridepublic void widgetSelected(SelectionEvent event) {handleTextSelected(event);}});}private ToolBar createToolBar(Composite parent) {ToolBar toolBar = new ToolBar(parent, SWT.FLAT);boldBtn = new ToolItem(toolBar, SWT.CHECK);boldBtn.setImage(RichTextImages.IMG_BOLD);boldBtn.setToolTipText(RichTextStrings.boldBtn_tooltipText);boldBtn.addSelectionListener(new FontStyleButtonListener(FontStyle.BOLD));italicBtn = new ToolItem(toolBar, SWT.CHECK);italicBtn.setImage(RichTextImages.IMG_ITALIC);italicBtn.setToolTipText(RichTextStrings.italicBtn_tooltipText);italicBtn.addSelectionListener(new FontStyleButtonListener(FontStyle.ITALIC));underlineBtn = new ToolItem(toolBar, SWT.CHECK);underlineBtn.setImage(RichTextImages.IMG_UNDERLINE);underlineBtn.setToolTipText(RichTextStrings.underlineBtn_tooltipText);underlineBtn.addSelectionListener(new FontStyleButtonListener(FontStyle.UNDERLINE));strikeThroughBtn = new ToolItem(toolBar, SWT.CHECK);strikeThroughBtn.setImage(RichTextImages.IMG_STRIKE_THROUGH);strikeThroughBtn.setToolTipText(RichTextStrings.strikeThroughBtn_tooltipText);strikeThroughBtn.addSelectionListener(new FontStyleButtonListener(FontStyle.STRIKE_THROUGH));new ToolItem(toolBar, SWT.SEPARATOR);ToolItem cutBtn = new ToolItem(toolBar, SWT.PUSH);cutBtn.setImage(RichTextImages.IMG_CUT);cutBtn.setToolTipText(RichTextStrings.cutBtn_tooltipText);cutBtn.addSelectionListener(new SelectionAdapter() {@Overridepublic void widgetSelected(SelectionEvent e) {handleCutCopy();styledText.cut();}});ToolItem copyBtn = new ToolItem(toolBar, SWT.PUSH);copyBtn.setImage(RichTextImages.IMG_COPY);copyBtn.setToolTipText(RichTextStrings.copyBtn_tooltipText);copyBtn.addSelectionListener(new SelectionAdapter() {@Overridepublic void widgetSelected(SelectionEvent e) {handleCutCopy();styledText.copy();}});pasteBtn = new ToolItem(toolBar, SWT.PUSH);pasteBtn.setEnabled(false);pasteBtn.setImage(RichTextImages.IMG_PASTE);pasteBtn.setToolTipText(RichTextStrings.pasteBtn_tooltipText);pasteBtn.addSelectionListener(new SelectionAdapter() {@Overridepublic void widgetSelected(SelectionEvent e) {styledText.paste();}});new ToolItem(toolBar, SWT.SEPARATOR);eraserBtn = new ToolItem(toolBar, SWT.PUSH);eraserBtn.setEnabled(false);eraserBtn.setImage(RichTextImages.IMG_ERASER);eraserBtn.setToolTipText(RichTextStrings.eraserBtn_tooltipText);eraserBtn.addSelectionListener(new SelectionAdapter() {@Overridepublic void widgetSelected(SelectionEvent e) {clearStylesFromSelection();}});return toolBar;}private List translateStyle(StyleRange range) {List list = new ArrayList();if ((range.fontStyle & SWT.BOLD) != 0) {list.add(FontStyle.BOLD);}if ((range.fontStyle & SWT.ITALIC) != 0) {list.add(FontStyle.ITALIC);}if (range.strikeout) {list.add(FontStyle.STRIKE_THROUGH);}if (range.underline) {list.add(FontStyle.UNDERLINE);}return list;}private class FontStyleButtonListener extends SelectionAdapter {private FontStyle style;public FontStyleButtonListener(FontStyle style) {this.style = style;}@Overridepublic void widgetSelected(SelectionEvent e) {applyFontStyleToSelection(style);}}}
如您所见,我们的RichText控件基本上是ToolBar和StyledText组件的包装,具有不同事件侦听器的这两个控件都将这两个控件挂钩。  
支持班
在本节中,我将显示用于实现富文本编辑器控件使用的一些支持类的代码。 我将在这里省略为控件提供图像和本地化字符串的类,因为那里有太多关于如何在SWT中进行操作的示例,我将重点介绍格式化和解析控件的输出/输入所需的类。
首先是一个Java枚举,将用于标识支持的不同字体样式:
public enum FontStyle {BOLD, ITALIC, STRIKE_THROUGH, UNDERLINE
}

下一个称为RichStringBuilder,它将用作帮助程序类,以将StyledText组件的内容格式化为基本HTML:

import java.util.Stack;public final class RichStringBuilder {public static final String LINE_DELIMITER = "<br/>";private StringBuilder builder;private Stack fontStyleStack;public RichStringBuilder() {builder = new StringBuilder();fontStyleStack = new Stack();}public RichStringBuilder append(String text) {builder.append(text);return this;}public RichStringBuilder appendLineBreak() {builder.append(LINE_DELIMITER);return this;}public RichStringBuilder startParagraph() {builder.append("<p>");return this;}public RichStringBuilder startFontStyle(FontStyle fontStyle) {fontStyleStack.push(fontStyle);internalStartFontStyle(fontStyle);return this;}public RichStringBuilder startFontStyles(FontStyle... fontStyles) {for (FontStyle fs : fontStyles) {startFontStyle(fs);}return this;}public RichStringBuilder endFontStyles(int count) {for (int i = 0;i < count;i++) {endStyle();}return this;}public RichStringBuilder endStyle() {if (fontStyleStack.size() > 0) {FontStyle style = fontStyleStack.pop();internalEndFontStyle(style);}return this;}public RichStringBuilder endParagraph() {flushStyles();builder.append("</p>");return this;}public void flushStyles() {while (fontStyleStack.size() > 0) {endStyle();}}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (null == o) return false;if (!(o instanceof RichStringBuilder)) return false;return ((RichStringBuilder) o).builder.equals(builder);}@Overridepublic int hashCode() {return builder.hashCode();}@Overridepublic String toString() {return builder.toString();}private void internalStartFontStyle(FontStyle fontStyle) {switch (fontStyle) {case BOLD:builder.append("<b>");break;case ITALIC:builder.append("<i>");break;case STRIKE_THROUGH:builder.append("<del>");break;case UNDERLINE:builder.append("<ins>");break;}}private void internalEndFontStyle(FontStyle fontStyle) {switch (fontStyle) {case BOLD:builder.append("</b>");break;case ITALIC:builder.append("</i>");break;case STRIKE_THROUGH:builder.append("</del>");break;case UNDERLINE:builder.append("</ins>");break;}}}

第三个是基于SAX的内容处理程序,它将基本HTML解析为StyledText控件时将启动事件:

import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyleRange;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;public final class RichTextParser {public static RichTextParser parse(String formattedText)throws ParserConfigurationException, SAXException, IOException {return new RichTextParser(formattedText);}private StringBuilder text = new StringBuilder();private List styleRanges = new ArrayList();private RichTextParser(String formattedText)throws ParserConfigurationException, SAXException, IOException {StringReader reader = new StringReader(formattedText);SAXParserFactory factory = SAXParserFactory.newInstance();SAXParser parser = factory.newSAXParser();DefaultHandler handler = new RichTextContentHandler();parser.parse(new InputSource(reader), handler);}public String getText() {return text.toString();}public StyleRange[] getStyleRanges() {return styleRanges.toArray(new StyleRange[styleRanges.size()]);}private class RichTextContentHandler extends DefaultHandler {private Stack<List> stylesStack = new Stack<List>();private String lastTextChunk = null;@Overridepublic void characters(char[] ch, int start, int length)throws SAXException {lastTextChunk = new String(ch, start, length);}@Overridepublic void endElement(String uri, String localName, String qName)throws SAXException {// If there is not any previous text chunk parsed then returnif (lastTextChunk == null) return;// If the tag found is not a supported one then returnif (!"p".equals(qName) || !"b".equals(qName) || !"i".equals(qName) ||!"ins".equals(qName) || !"del".equals(qName)) {return;}List lastStyles = lastFontStyles(true);if (lastStyles != null) {StyleRange range = transform(lastStyles);range.start = currentIndex() + 1;range.length = lastTextChunk.length();styleRanges.add(range);}text.append(lastTextChunk);lastTextChunk = null;}@Overridepublic void startElement(String uri, String localName, String qName,Attributes atts) throws SAXException {// If the tag found is not a supported one then returnif (!"p".equals(qName) || !"b".equals(qName) || !"i".equals(qName) ||!"ins".equals(qName) || !"del".equals(qName)) {return;}List lastStyles = lastFontStyles(false);if (lastTextChunk == null) {if (lastStyles == null) {lastStyles = new ArrayList();stylesStack.add(lastStyles);}} else {if (lastStyles != null) {StyleRange range = transform(lastStyles);range.start = currentIndex() + 1;range.length = lastTextChunk.length();styleRanges.add(range);}text.append(lastTextChunk);lastTextChunk = null;}if ("b".equals(qName)) {lastStyles.add(FontStyle.BOLD);} else if ("i".equals(qName)) {lastStyles.add(FontStyle.ITALIC);} else if ("ins".equals(qName)) {lastStyles.add(FontStyle.UNDERLINE);} else {lastStyles.add(FontStyle.STRIKE_THROUGH);}}private StyleRange transform(List styles) {StyleRange range = new StyleRange();range.start = currentIndex() + 1;range.length = lastTextChunk.length();for (FontStyle fs : styles) {if (FontStyle.BOLD == fs) {range.fontStyle = (range.fontStyle & SWT.BOLD);} else if (FontStyle.ITALIC == fs) {range.fontStyle = (range.fontStyle & SWT.ITALIC);} else if (FontStyle.STRIKE_THROUGH == fs) {range.strikeout = true;} else if (FontStyle.UNDERLINE == fs) {range.underline = true;}}return range;}private List lastFontStyles(boolean remove) {List lastStyles = null;if (stylesStack.size() > 0) {if (remove) {lastStyles = stylesStack.pop();} else {lastStyles = stylesStack.peek();}}return lastStyles;}private int currentIndex() {return text.length() - 1;}}}
结论
实现您自己的SWT RichText控件可能不是满足您需求的最佳选择,您将需要权衡这样做的利弊,以及是否有必要投资其中一种现成的商业解决方案。 但是,我想通过这篇文章来演示如何在SWT对话框和视图中嵌入您自己的(简单且轻量级的)富文本编辑器,与从中获得的好处相比,它很容易实现并且需要花费很少的精力。
参考:来自Code Nibbles博客的JCG合作伙伴 Alonso Dominguez的RichText编辑器组件,用于基于SWT的应用程序 。

翻译自: https://www.javacodegeeks.com/2012/07/richtext-editor-component-for-swt-based.html

小程序richtext

小程序richtext_用于基于SWT的应用程序的RichText编辑器组件相关推荐

  1. 用于基于SWT的应用程序的RichText编辑器组件

    本文将完成使用SWT实现我们自己的RichText编辑器组件的任务. 在为我的一位客户开发基于桌面的应用程序时,我遇到了这样一个可视化组件的需求,并希望添加一项功能,以允许用户使用粗体,斜体,删除线等 ...

  2. 七夕节微信表白墙小程序源码/基于Laravel的表白墙微信小程序源码

    七夕节微信表白墙小程序源码/基于Laravel的表白墙微信小程序源码 ☑️ 编号:ym499 ☑️ 品牌:无 ☑️ 语言:小程序 ☑️ 大小:11.2MB ☑️ 类型:微信表白墙小程序 ☑️ 支持:小 ...

  3. 基于微信小程序java音乐播放器毕业设计论文/程序代码

    摘  要 5G时代已经慢慢的融入了我们的日常生活,随着国家的通信政策以及各大运营商的宣传的影响,5G手机已经随处可见,面对全球信息.技术空前高速发展,信息高速化发展更是社会进步的一个标志.在全球信息化 ...

  4. 小程序项目:基于微信小程序的科普之家小程序—计算机毕业设计

    运行环境 随着我国经济迅速发展,人们对手机的需求越来越大,各种手机软件也都在被广泛应用,但是对于手机进行数据信息管理,对于手机的各种软件也是备受学生的喜爱,科普之家小程序被学生普遍使用,为方便学生能够 ...

  5. 跑鸭”微信小程序-一款基于校园跑步的社交小程序

    跑鸭:这是我的毕业设计,"跑鸭"微信小程序-一款基于校园跑步的社交小程序(实时里程配速.运动路径.整公里提醒.周榜月榜.打卡分享.热门推荐.线上活动.勋章墙.隐私设置),技术栈:V ...

  6. JAVA小程序:一个基于MVC框架的贪吃蛇程序

    学习JAVA也有一段时间了,之前看了翁恺老师的视频,跟着做了一个细胞自动机,粗浅地了解了一点MVC框架的知识,感觉获益匪浅.但是细胞自动机毕竟是跟着视频完成的,有很大程度上都是参考了视频里的代码,没有 ...

  7. 小程序项目:基于微信小程序的食堂订餐——计算机毕业设计

    项目介绍 随着我国经济迅速发展,人们对手机的需求越来越大,各种手机软件也都在被广泛应用,但是对于手机进行数据信息管理,对于手机的各种软件也是备受用户的喜爱,食堂订餐小程序被用户普遍使用,为方便用户能够 ...

  8. 【ASP.NET教程-WP教程15】ASP.NET Web Pages - C# 和 VB 实例简单而强大的开发框架,可用于构建动态的、基于Web的应用程序。它提供了一种轻量级的方式来创建和管理网页

    ASP.NET Web Pages - C# 和 VB 实例 ASP.NET Web Pages 是一种简单而强大的开发框架,可用于构建动态的.基于Web的应用程序.它提供了一种轻量级的方式来创建和管 ...

  9. 2022去/水印小程序源码+基于WordPress插件

    正文: 2022去/水印小程序源码+基于WordPress插件,本版本代码是全开源的,基于Wordpress的插件开发的. 上传到Wordpress,安装插件,启动之后,绑定自己的小程序id即可,wo ...

最新文章

  1. testNG安装一直失败解决方法
  2. 设置在桌面上不显示计算机,怎么在桌面上显示我的电脑 我的电脑桌面不显示怎么办...
  3. TypeScript 里 .d.ts 文件的用处
  4. java教程菜鸟教程组合模式,组合实体模式
  5. [Leedcode][JAVA][第14题][最长公共前缀][二分][横竖扫描][分治]
  6. buck电路 dac stm32_STM32定时器学习---基本定时器
  7. Java: Queue
  8. 非root用户安装protobuf的python依赖到指定目录
  9. SQL 数据库 学习 002 如何启动 SQL Server 软件
  10. 通用模块脚本使用案例:玩家与NPC对话
  11. flutter图片切换闪一下
  12. android 字体倒影,Android实现图片的倒影效果
  13. 【python】OpenCV—Blur, Threshold, Gradient, Morphology(2)
  14. 灵魂碎片的收集(构造)
  15. 快速上手Linux核心命令(九):文件备份与压缩
  16. 支付宝schlum url 启动指定界面
  17. 「斐讯」N1-YYF 固件
  18. 组图:87版《红楼梦》金陵12钗选角内幕
  19. 多益面试题简答题和编程题解析
  20. 200多张精美Kubernetes(k8s)源码架构图

热门文章

  1. Java数据库连接池--DBCP浅析
  2. dom4j读取XML文件内容
  3. JDK9新特性实战:简化流关闭新姿势
  4. 用正则判断字符串是否为中文的方法
  5. C#基础知识详解之【字段与属性】
  6. 数组遍历VS对象遍历
  7. android之微信分享文本
  8. java 时钟 算法分析_java实现时钟方法汇总
  9. MySQL元数据库——information_schema
  10. tomcat(19)Manager应用程序的servlet类