| java.lang.Object de.jwic.base.Control
All known Subclasses: de.jwic.controls.ClientNotifierControl, de.jwic.controls.FileUploadControl, de.jwic.controls.TreeControl, de.jwic.controls.ProgressBarControl, de.jwic.base.ControlContainer, de.jwic.controls.HTMLElement,
Control | abstract public class Control implements Serializable,IControl(Code) | | Superclass for jWic controls placed into an jWic container. A Control represents
a part of an Application. All controls live in the SessionContext object, wich
represents the application environment. A Control is connected to a
Container object.
It is recommend to create controls using the ControlFactory.
Control objects live persistent until the application is closed or the control
is removed from it's container.
author: Florian Lippisch version: $Revision: 1.7 $ |
Constructor Summary | |
public | Control(IControlContainer container, String name) Constructs a new control instance and adds it to the specified
container with the specified name. |
DEFAULT_OUTER_RENDERER | final protected static String DEFAULT_OUTER_RENDERER(Code) | | |
DEFAULT_RENDERER | final protected static String DEFAULT_RENDERER(Code) | | |
log | protected transient Log log(Code) | | Logger available to subclasses
|
Control | public Control(IControlContainer container, String name)(Code) | | Constructs a new control instance and adds it to the specified
container with the specified name. If the name is null ,
a unique name will be choosen by the container.
|
addField | void addField(Field field)(Code) | | Adds a field to the fieldlist.
Parameters: name - Parameters: field - |
createFieldName | public String createFieldName(String fieldname)(Code) | | Returns a fieldname that may be used as name in an HTML form element.
While the control can access the field by its name, it must have a
different name on the HTML page where it is beeing displayed.
Parameters: name - |
destroy | public void destroy()(Code) | | |
getFieldValue | public String getFieldValue(String fieldname)(Code) | | Returns the value stored in the specified fieldname.
If the field does not exist, an empty string is returned.
Parameters: fieldname - String |
isRequireRedraw | public boolean isRequireRedraw()(Code) | | |
isVisible | public boolean isVisible()(Code) | | |
requireRedraw | protected void requireRedraw()(Code) | | Flags the control that it must be rendered again to reflect its
current state. Control implementors should use this method to
let the framework render the control again when a page update
occures.
|
setContainer | void setContainer(IControlContainer newContainer)(Code) | | This method is used to give the control a connection to the Container object
when it's added to a container.
|
setControlID | void setControlID(String newControlID)(Code) | | Set the ID of the control. Invoked when the control is added to a container.
Parameters: newControlID - String |
setFieldValue | public void setFieldValue(String fieldname, String value)(Code) | | Store a value that is displayed in an HTML form.
DEPRECATED: Fieldvalues have been replaced by the Field
class. You must create a Field object for each HTML field
representation. Fields that are not declared by the control
will be ignored.
Parameters: fieldname - Parameters: value - |
setFieldValue | public void setFieldValue(String fieldname, String[] values)(Code) | | Stores the values to the field. This method is invoked by the ActionController
and will call the setFieldValue(String, String) method. If the values array contains
just one element, the element is passed on. If it contains more then one elements,
the elements are concated with a semicolon (;) as seperator. Controls that
expect multiple values should override this method and handle the fields on their own.
DEPRECATED: Fieldvalues have been replaced by the Field
class. You must create a Field object for each HTML field
representation. Fields that are not declared by the control
will be ignored.
Parameters: fieldname - Parameters: value - |
setName | void setName(String name)(Code) | | Sets the name of the Contorl.
Parameters: name - The name to set. |
setRendererId | public void setRendererId(String rendererId)(Code) | | |
setRequireRedraw | public void setRequireRedraw(boolean requireRedraw)(Code) | | |
setSessionContext | void setSessionContext(SessionContext newSessionContext)(Code) | | This method is used to give the control a connection to the SessionContext object
when it's added to a container.
|
setTemplateName | public void setTemplateName(String templateName)(Code) | | |
setVisible | public void setVisible(boolean newVisible)(Code) | | |
|
|