Menu Chiudi

Home

jGo is open source

Github_Project

jGo (java General operations) is a java library. Follows the policy (write less, do more). The purpose of this framework is to make life easier for the Java programmer. jGo is nothing more than a collection of general methods and tools. The peculiar characteristic of this library is the multi-call methods,  in fact, in a jgo instruction, there can be infinite calls of methods, even different from each other, let’s see how it works in general:

Access Point £ ! The access point provides access to the various jgo methods and object, In particular, there are 3 important objects that are constantly updated: _S, _W, _A  (Swing, Web, Android)

…  these 3 objects are called sections:

these objects refer respectively to the classes: SwingUtils, WebUtils, AndroidUtils – all three internal classes of cloud.jgo. £ . Furthermore these objects have a reference to the access point (.home())

JGO is open source, to consult the software license click here

JGO was born with the purpose of facilitating the life of the java programmer, allowing you to perform complex operations, even if you are a beginner. It will also be continuously updated, so as to always offer more features. Whether it’s a web project, an Android app or a desktop application, JGO can help you. In addition those who want to participate in the project, soon the source will be on GitHub. JGO arises from the need of the same developer to have at hand a package that contained, a large amount of functionality and pre-packaged codes available to the user. For informations contact staff@jgo.cloud.


For example, thanks to jGo you can switch between the various phases:

jGo3

at this point I go back to the access point and call other methods :

jGo4

Finally, after various increases, decreases and different prints, it is called twice the alert () method, in which the classic hello world is printed:

jGo5

in this case, we are first in the “Web” phase, and then, in the “Swing” phase, using the .home () method. Let’s see more information on jGo :

counterFor example, jgo boasts a counter, we can increase its value with the “increment ()” method, or decrease it with “decrement ()”. Finally, to get the value of the counter, we will call the “value ()” method. You can also record the counter value at a certain time, this is done by the .mark()/.reset() method. To conclude, to get the current value of the counter it is necessary to invoke the .value () method. For example, in the previous image, we are increasing the counter, taking a screenshot and again increasing the counter.

In this last image, we call the methods of the SwingUtils phase and then return to the access point, calling the alert () and openTerminal () methods:

SwingUtils


Simple Examples

Import the access point :

import cloud.jgo.£;

1 Example – this instruction opens the terminal, the notepad, emits an acoustic signal and at the end shows an alert window that says “Hello world” :

package com.github.htm4j;
import cloud.jgo.£;
public class GeneralTest {
@SuppressWarnings
(“static-access”)
public static void main(String[] args) {
£
.beep().openTerminal().alert(“Hello World”);
}
}

2 Example – a command is executed on the terminal, the notepad is opened and a query on google is also performed:

package com.github.htm4j;
import cloud.jgo.£;
public class GeneralTest {
@SuppressWarnings
(“static-access”)
public static void main(String[] args) {
£
.exec(“dir”).openNotepad().executeGoogleQuery(“dog”);
}
}

3 Example – it is printed several times in the “Hello World” console, the counter is incremented and decremented, and at the end an input value is received from the keyboard:

package com.github.htm4j;
import cloud.jgo.£;
public class GeneralTest {
@SuppressWarnings
(“static-access”)
public static void main(String[] args) {
£
._O(“Hello world\n”).increment()
._O(“Hello world\n”).decrement()
._O(“Hello world\n”).increment()
._O(“Hello world\n”).decrement()
._O(“Hello world\n”).increment()
._O(“Press enter …”)._I();
}
}

to know the value of the counter :

£._O(“Counter value:”+£.value());

Let’s now look at some more complex examples

    £.compressFolder(£.fl(“C:\\test”),“test.zip”).md()
.executeProgram(£.fl(“executable.exe”)).alert(“Hello”)
.consoleMex(“Hello World”,‘§’,40,£.CONSOLE_MEX_WARNING)
.consoleMex(“Hello World”,‘@’,40,£.CONSOLE_MEX_INFO)
.consoleMex(“Hello World”,‘#’,40,£.CONSOLE_MEX_ERROR)
._O(“Hello\t”)._O(“World”)._O(£._NL())
._O(“Hello\t”)._O(“World”)._O(£._NL())
._O(“Hello\t”)._O(“World”)._O(£._NL())
.openFacebook().openNotepad().openRegedit()
.openServices().openCdPlayer().openTerminal()
.initArrayFromInput(5);

to see other examples click here


Technologies

The jgo technologies are listed below :


Phases

The jgo phases are listed below:


License

This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. You may obtain a copy of License at  https://www.jgo.cloud/LICENSE.txt


Start Using

  1. download the latest jGo version
  2. Read the cookbook
  3. Have fun with jGo !

Dependency

<!– https://www.jgo.cloud/ –>
<dependency>
<groupId>cloud.jgo</groupId>
<artifactId>jGo</artifactId>
<version>1.0.9</version>
</dependency>

Help

For questions and info contact: