com.tirsen.angkor.widget
Class CheckboxInput
java.lang.Object
|
+--com.tirsen.angkor.Component
|
+--com.tirsen.angkor.widget.CheckboxInput
- All Implemented Interfaces:
- java.io.Serializable, View
- public class CheckboxInput
- extends Component
- Version:
- $Revision: 1.5 $
$Id: CheckboxInput.java,v 1.5 2002/10/13 19:59:23 tirsen Exp $
- Author:
- $Author: tirsen $
- See Also:
- Serialized Form
Methods inherited from class com.tirsen.angkor.Component |
allocateUniqueId, getAttribute, getContainer, getId, getRenderContext, getVisibleIndex, isDebugTables, isVisible, setAttribute, setContainer, setId, uniqueId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckboxInput
public CheckboxInput(java.lang.String id)
CheckboxInput
public CheckboxInput()
CheckboxInput
public CheckboxInput(java.lang.String prompt,
ValueModel model)
setModel
public void setModel(ValueModel model)
- Parameters:
model
- a ValueModel that return values of type Boolean.
setPrompt
public void setPrompt(TextLabel prompt)
setPrompt
public void setPrompt(java.lang.String promptText)
setVisible
public void setVisible(boolean visible)
- Description copied from interface:
View
- Specify whether this view is visible or not.
- Specified by:
setVisible
in interface View
- Overrides:
setVisible
in class Component
isParsing
public boolean isParsing()
- Overrides:
isParsing
in class Component
parse
public void parse(RenderContext context)
- Description copied from interface:
View
- When a view has registered during rendering for parsing in the RenderContext
the context will call this method on the next request.
The view is responsible for parsing the request based on it's unique id and
update models and sending events based on the request. In most cases the
EventQueue should be used to send the events. This ensures that the models
are all correctly updated before the events are actually processed. This is important
since controllers (whom processes the events) must rely on this to process events correctly.
- Specified by:
parse
in interface View
- Overrides:
parse
in class Component
render
public void render(RenderContext context)
throws java.io.IOException
- Description copied from interface:
View
- Render this view on the given context if the view is visible.
Performed during render-phase.
- Specified by:
render
in interface View
- Specified by:
render
in class Component
java.io.IOException
- See Also:
View.setVisible(boolean)
,
View.isVisible()
Copyright © 2002-2002 . All Rights Reserved.