Java tutorial

Revision as of 5 August 2014 15:17 by sannanordgren (Comments | Contribs)

This guide was written to help people with no Java experience get into the more advanced functions offered via the skin interface, for example the ability to write beanshell scripts (interpreted Java). This guide was very kindly written by Laura Seabrook and was previously posted to the forum. It is now presented here as a permanent reference.


glödlampa.png

You can run Java code samples interactively in the "jAlbum console window" available from the help menu.


This guide is broken down into four sections as follows:


Contents

1. Literals, Variables and Expressions

Scriptlets

Literals

Variables

Expressions

2. Decision Structures

Boolean conditions

if

switch and case

while

do while

for

break

3. Methods

Boolean

Numeric

Character

String

4. Interfacing with jAlbum

Original code

Example one - Tables

Example two - Filters