|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.ui.UIComposer<T>
T
- The type of widget produced by the composer.public abstract class UIComposer<T extends java.awt.Component>
A UI composer is a object that composes a user interface using instruments and presentations.
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN
Malai is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
10/31/2010
Field Summary | |
---|---|
protected T |
widget
The widget composed by the composer. |
Constructor Summary | |
---|---|
UIComposer()
Creates the composer. |
Method Summary | |
---|---|
abstract void |
compose(MProgressBar progressBar)
This method composes the user interface using instruments, presentations and widgets of the interactive system. |
T |
getWidget()
|
void |
setWidgetVisible(java.awt.Component widget,
boolean visible)
Changes the visibility of the given widget and may launch a process of recomposition/adaptation of the UI if needed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected T extends java.awt.Component widget
Constructor Detail |
---|
public UIComposer()
Method Detail |
---|
public abstract void compose(MProgressBar progressBar)
progressBar
- The progress bar that can be used to show the progress of the UI composition. Can be null.public void setWidgetVisible(java.awt.Component widget, boolean visible)
widget
- The widget to change its visibility.visible
- True: the widget will be visible.public T getWidget()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |