Groovy Documentation

groovy.aprint.tools
[Groovy] Class GUIHelper

java.lang.Object
  groovy.aprint.tools.GUIHelper

class GUIHelper
extends java.lang.Object

Helper class for creating GUI frames or interfaces

Authors:
pfreydiere


Method Summary
static java.lang.Object beanAsk(java.lang.Object owner, java.lang.Object titre, java.lang.Object bean, java.util.Map properties)

Ask parameters from a class

static javax.swing.JFrame showFrame(java.util.Map components, java.lang.Object bottomComponent = null, java.lang.String title = "Parametres")

ShowFrame with a list of parameter, the parameters are listed vertically

static void showMessage(java.lang.Object textToDisplay)

function to show a message to the user

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

beanAsk

static java.lang.Object beanAsk(java.lang.Object owner, java.lang.Object titre, java.lang.Object bean, java.util.Map properties)
Ask parameters from a class exemple d'utilisation
	 import groovy.aprint.tools.*
	 class Test {
	 String test
	 }
	 GUIHelper.beanAsk(services.owner, "saisie de param�tres", new Test(), ["test":["category":"ma description"]])
	 
Returns:
the filled bean
Parameters:
owner - main window, for dialog showing
titre - the window title
bean - the bean to fill from input parameters
properties, - hash of hash defining for each properties, the input method and so on


showFrame

static javax.swing.JFrame showFrame(java.util.Map components, java.lang.Object bottomComponent = null, java.lang.String title = "Parametres")
ShowFrame with a list of parameter, the parameters are listed vertically
Returns:
the frame (JFrame)
Parameters:
components - a map, containing the label (component or text), and the associated component in value
bottomComponent - component displayed at the bottom of the window


showMessage

static void showMessage(java.lang.Object textToDisplay)
function to show a message to the user
Parameters:
textToDisplay - the displayed text to show


 

Groovy Documentation