Tools plugin 2.0 released

Questions and answers on developing, deploying and using plugins and JavaBeans

Tools plugin 2.0 released

Postby IT2Be » Mon Jan 10, 2005 1:13 pm

We are really happy that we can announce that the very first plugin for Servoy, Tools reached version 2.0.

The plugins are available through our website www.it2be.com in the plugins section.

We upgraded the plugin with 36 ( yes really 36 :D ) functions and properties! We also fixed some minor bugs and the samples.

The tools plugin now holds the following 51 FIFTYONE functions (18) and system properties (32):

The mirror and zip funtion names switched to completely lowercase so when you used these do a global find and replace in your solution(s).

FILES
1.zip
zip a (single) file and/or a folder.

2.unzip
unzip a file, a group of files and folders.
* Mac OS X users wont be able to resolve a zipped application with this unzip utility.
* When you unzip a file or folder to a destination with a file or folder with the same name the file or folder will be numbered. The numbering will be checked also.

CALCULATION
3. getMaxDay
returns the last day of the given month.

4. about
returns information about IT2Be.

(STRING) FORMATTING
5. dateFormat
very much like the Java dateFormat class to convert a date to a string and the other way around with (or without) a formatting string.

6. numberFormat
formats the (localized) number to the formatString.

7. secondsFormat
to make a number of seconds a string and the other way around. formatting like HH:mm:ss.

8.mirror
reverse a string mirrorString into gnirtSrorrim.

VALIDATION
9. isEmail
i takes a string with one or more email adresses and checks if the format is correct.

10. isExpired
takes a year, month and (optional) day and returns a boolean when expired. Can be used to check the expiration date of a credit card.

11. isInteger
returns a boolean value, checks a string.

12. isInRange
takes dates, numbers/integers and strings and returns true or false.
* dates: dates need to be set with new Date() not a db timestamp
* string: there is an option to be set to true if you want to ignore cases

13. isModulus10
takes a string, filters all numbers and tells you the result of a modulus10 check. Can be used to check a credit card number.

14. isNumber
returns a boolean value after checking a string.
* localized but will return false when you input thousand seperators.

15. isTextOnly
takes a string and returns false if it finds numbers.

16. isServoyClient
returns true when you are running a client.
* this is NOT a REAL check for a running client but more the result of a check against the application name. If the returned name is Servoy Developer the returned value is false. Otherwise the returned value is true.

17 setSolutionTitle
change the title of the solution window

18 setSolutionIcon
change the icon of the solution window

19 dateDifference
calculate the difference between two days in milliseconds, seconds, minutes, hours or days

20 - 35. client
Makes 16 client related properties available like hostname, ip address, username etc.

36 51. Server
Makes 16 server related properties available like hostname, ip address, username etc.


Feel free to use it and distribute it but give IT2Be credit for it.
The plugin is free, provided as is and we can not take any responsibility for the way it behaves or works.

And we would really like some feedback on (most) wanted functions...

Cheers
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 38 guests

cron