Coder Social home page Coder Social logo

easy4form's Introduction

Easy4Form

Easy4Form是smartcmd写的一个十分简单的外部Form库

使用Easy4Form,你可以十分方便的写出Form交互功能

要想使用它,请在你的pom中加入以下配置:

<repositories>
    <repository>
        <id>ck</id>
        <url>http://nz.ipyvps.com:1111/repository/cookie-studio/</url>
    </repository>
</repositories>

<dependencies>
<dependency>
    <groupId>cn.cookiestudio</groupId>
    <artifactId>Easy4Form</artifactId>
    <version>1.0.3</version>
    <scope>provided</scope>
</dependency>
</dependencies>

并保证你的服务器中有加载Easy4Form插件(可以自行构建,github坐标在下面...

1.EZ4F包含的类: images/img_1.png 怎么样,是不是很简单?

2.使用 我们以simpleForm作为栗子:

BFormWindowSimple bf = new BFormWindowSimple();
bf.addButton(...)
...
        
...
bf.setResponseAction((e) ->{//e是此Form的ResponseEvent对象(ez4f会保证此event是”这个“form的返回事件)
    ...//这里不需要判空,ez4f会代替你处理这些细节
});
bf.sendToPlayer(player);//注意这里

搭配lambda表达式,是不是很方便? 使用ez4f,你可以省去创建监听器,匹配formid等十分麻烦的步骤(特别是匹配formid,这一步非常爽)

顺便补一句,如果你的maven的nk依赖从官方下不下来,我的仓库里面也是有的哦qwq

easy4form's People

Contributors

smartcmd avatar

Stargazers

 avatar MagicLu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.