|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.aprint.tools.GUIHelper
class GUIHelper extends java.lang.Object
Helper class for creating GUI frames or interfaces
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 |
---|
static java.lang.Object beanAsk(java.lang.Object owner, java.lang.Object titre, java.lang.Object bean, java.util.Map properties)
import groovy.aprint.tools.* class Test { String test } GUIHelper.beanAsk(services.owner, "saisie de param�tres", new Test(), ["test":["category":"ma description"]])
owner
- main window, for dialog showingtitre
- the window titlebean
- the bean to fill from input parametersproperties,
- hash of hash defining for each properties, the input method and so on
static javax.swing.JFrame showFrame(java.util.Map components, java.lang.Object bottomComponent = null, java.lang.String title = "Parametres")
components
- a map, containing the label (component or text), and the associated component in valuebottomComponent
- component displayed at the bottom of the window
static void showMessage(java.lang.Object textToDisplay)
textToDisplay
- the displayed text to show
Groovy Documentation