|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.westofj.wui.Widget
Represents a component that may be placed onto the display.
As the display is rendered, widgets are mapped to HTML elements via
identifiers generated via the WRunner
. During the rendering process
if the widget instance desires event notification, the widget registers itself with
the runner using the WRunner.registerWidget(org.westofj.wui.Widget)
method. This method
returns an identifier that the widget may place into the generated HTML to refer
to itself.
Constructor Summary | |
Widget()
Constructs a widget. |
Method Summary | |
void |
addChangeListener(WChangeListener l)
Adds a change listener to the selection list. |
WRunner |
getRunner()
Returns the current runner context. |
protected void |
handleNoParams(WRunner runner)
|
protected void |
handleParams(WRunner runner,
String[] values)
|
boolean |
hasChangeListeners()
Returns true if the list has a change listener, false otherwise. |
WChangeListener |
removeChangeListener(WChangeListener l)
Removes the specified change listener from the selection list. |
abstract void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
protected void |
stateChanged()
Generate a change event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Widget()
Method Detail |
public abstract void render(WRunner runner, WRenderContext context, PrintWriter out) throws WRenderException
runner
- the current runner context.out
- the output for the display.
WRenderException
public final WRunner getRunner()
protected void handleParams(WRunner runner, String[] values)
protected void handleNoParams(WRunner runner)
public void addChangeListener(WChangeListener l)
l
- a change listener to be invoked when a selection is made.public WChangeListener removeChangeListener(WChangeListener l)
l
- the change listener to remove.public boolean hasChangeListeners()
protected final void stateChanged()
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |