|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.AbstractPane
nextapp.echo.ContentPane
net.sf.jzeno.echo.AbstractLayout
public abstract class AbstractLayout
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Fields inherited from class nextapp.echo.AbstractPane |
|---|
PROPORTIONAL, RESIZABLE_CHANGED_PROPERTY, STYLE_RESIZABLE |
| Constructor Summary | |
|---|---|
AbstractLayout()
|
|
| Method Summary | |
|---|---|
void |
addValidator(Validator validator)
Add extra validators to this component. |
void |
clearScrollPosition()
Reset the scroll position of the current screen. |
java.lang.Object |
getBean()
Retrieve the root bean this editor is bound to. |
java.lang.Class |
getBeanClass()
Determine the type of bean we are bound to. |
Decorator |
getDecorator()
Gets the decorator, if any is configured. |
java.lang.Object |
getNullObject()
|
java.lang.String |
getProperty()
Retrieve the property path to bind to on the domain model cluster. |
java.util.List |
getValidationErrors()
Retrieves a list of currently pending validation errors on this component. |
java.util.List |
getValidators()
Retrieve the list of active validators on this component. |
java.lang.Object |
getValue()
Retrieve the property value from the domain model cluster. |
boolean |
isBound()
|
boolean |
isMarkedInvalid()
|
boolean |
isReadOnly()
|
boolean |
isRequired()
Query if the editor is required to be filled in. |
boolean |
isValid()
Check if this component contains valid user input. |
void |
loadPersistentState(java.lang.Object[] state)
Gives you an oportunity to load some state such as the scroll position. |
void |
markInvalid()
Marks the component as invalid. |
void |
markValid()
Marks the component as valid (remove error marking) |
void |
preRender()
Make changes to the visual representation of this component before Echo starts rendering the component. |
void |
rebind()
This operation causes the component to reset it's content to that of the domain model. |
void |
removeValidator(Validator validator)
Remove an existing validator from this component. |
void |
resetScheduledDowntime()
Remove any downtime messages set previously by Layout.setScheduledDowntime(String, Date, Integer). |
java.lang.Object[] |
savePersistentState()
Gives you an oportunity to save some state such as the scroll position. |
void |
setBean(java.lang.Object newBean)
sets the root bean for property-binding. |
void |
setBeanClass(java.lang.Class beanClass)
Change the type of model bean this property component will be bound to. |
void |
setDecorator(Decorator decorator)
Sets the decorator. |
void |
setNullObject(java.lang.Object nullObject)
This object should be returned by the implementor in getValue, when the property path ends in a null value. |
void |
setProperty(java.lang.String propertyPath)
Set the property(path) to bind to on the domain model cluster. |
void |
setReadOnly(boolean readOnly)
Mark this component as read-only. |
void |
setRequired(boolean required)
Determine if the editor is required to be filled in. |
void |
setScheduledDowntime(java.lang.String msg,
java.util.Date date,
java.lang.Integer minutes)
One of the duties of a Layout component is to visualize downtime messages. |
void |
setValue(java.lang.Object value)
Writes the supplied data into the property we are bound to. |
java.util.List |
traceValue()
Reads the properties in this components property path, and traces all read properties, returning the actual property values in a List. |
| Methods inherited from class nextapp.echo.AbstractPane |
|---|
getHeight, getWidth, isResizable, setResizable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.jzeno.echo.Layout |
|---|
addCssFile, addOnLoadScriptOnce, getContent, getCssFiles, setContent, setErrors, setMessages, setWarnings |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public AbstractLayout()
| Method Detail |
|---|
public void clearScrollPosition()
LayoutReset the scroll position of the current screen. Typically called when navigating from one screen to another. We don't want to have the scroll position of the first screen on the second.
clearScrollPosition in interface Layoutpublic void loadPersistentState(java.lang.Object[] state)
LayoutGives you an oportunity to load some state such as the scroll position. State passed in is what you returned from the previous call to savePersistentSate.
loadPersistentState in interface Layoutpublic java.lang.Object[] savePersistentState()
Layout
Gives you an oportunity to save some state such as the scroll position.
If you're deriving from AbstractLayout, this operation is allready
implemented. (see AbstractLayout).
savePersistentState in interface Layoutpublic void resetScheduledDowntime()
LayoutLayout.setScheduledDowntime(String, Date, Integer).
resetScheduledDowntime in interface Layout
public void setScheduledDowntime(java.lang.String msg,
java.util.Date date,
java.lang.Integer minutes)
LayoutOne of the duties of a Layout component is to visualize downtime messages. Typically this is a messages that is put up on the screen some time before the system (e.g. the application server we're running on,..) is taken down for maintenance/upgrading etc...
The application code can trigger a new downtime messages by calling
EchoSupport.setScheduledDowntime(String, Date, Integer).
A convenient way to satisfy this requirement is to include an instance of
the ErrorMessagesComponentin your
layout class.
setScheduledDowntime in interface Layoutpublic void addValidator(Validator validator)
PropertyComponentAdd extra validators to this component.
addValidator in interface PropertyComponentpublic void preRender()
PropertyComponentMake changes to the visual representation of this component before Echo starts rendering the component.
Do not modify any bound javabeans in this method, as the changes to these will not be reflected properly on the screen.
preRender in interface PropertyComponentpublic java.lang.Object getBean()
PropertyComponentRetrieve the root bean this editor is bound to.
getBean in interface PropertyComponentpublic java.lang.Class getBeanClass()
PropertyComponentDetermine the type of bean we are bound to.
During the lifecycle of a property component, this may NOT change ! In other words, if this component has been bound to, let's say, an Address object, this component must at all times remain bound to Address components ! (It may ofcourse change the specific instance to which it is bound, by calling setBean.)
getBeanClass in interface PropertyComponentpublic Decorator getDecorator()
PropertyComponentGets the decorator, if any is configured.
getDecorator in interface PropertyComponentpublic java.lang.Object getNullObject()
getNullObject in interface RebindableComponentpublic java.lang.String getProperty()
PropertyComponentRetrieve the property path to bind to on the domain model cluster.
getProperty in interface PropertyComponentpublic java.util.List getValidationErrors()
PropertyComponentRetrieves a list of currently pending validation errors on this component.
getValidationErrors in interface PropertyComponentpublic java.util.List getValidators()
PropertyComponentRetrieve the list of active validators on this component.
getValidators in interface PropertyComponentpublic java.lang.Object getValue()
PropertyComponentRetrieve the property value from the domain model cluster.
getValue in interface PropertyComponentpublic boolean isBound()
public boolean isMarkedInvalid()
isMarkedInvalid in interface PropertyComponentpublic boolean isReadOnly()
isReadOnly in interface PropertyComponentpublic boolean isRequired()
PropertyComponentQuery if the editor is required to be filled in.
isRequired in interface PropertyComponentpublic boolean isValid()
PropertyComponent
Check if this component contains valid user input. In itself this
operation will not mark the component in error. In order to apply error
marking on invalid components you should use
EchoSupport.doValidationRecursively(Component).
isValid in interface PropertyComponentpublic void markInvalid()
PropertyComponentMarks the component as invalid. Typically puts a colored border around it to indicate the error.
markInvalid in interface PropertyComponentpublic void markValid()
PropertyComponentMarks the component as valid (remove error marking)
markValid in interface PropertyComponentpublic void removeValidator(Validator validator)
PropertyComponentRemove an existing validator from this component.
removeValidator in interface PropertyComponentpublic void setBean(java.lang.Object newBean)
PropertyComponentsets the root bean for property-binding.
setBean in interface PropertyComponentpublic void setBeanClass(java.lang.Class beanClass)
PropertyComponentChange the type of model bean this property component will be bound to.
setBeanClass in interface PropertyComponentpublic void setDecorator(Decorator decorator)
PropertyComponentSets the decorator.
setDecorator in interface PropertyComponentpublic void setNullObject(java.lang.Object nullObject)
RebindableComponentThis object should be returned by the implementor in getValue, when the property path ends in a null value.
setNullObject in interface RebindableComponentpublic void setProperty(java.lang.String propertyPath)
PropertyComponentSet the property(path) to bind to on the domain model cluster.
setProperty in interface PropertyComponentpublic void setReadOnly(boolean readOnly)
PropertyComponentMark this component as read-only.
setReadOnly in interface PropertyComponentpublic void setRequired(boolean required)
PropertyComponentDetermine if the editor is required to be filled in.
setRequired in interface PropertyComponentpublic void setValue(java.lang.Object value)
PropertyComponentWrites the supplied data into the property we are bound to.
setValue in interface PropertyComponentpublic java.util.List traceValue()
RebindableComponentReads the properties in this components property path, and traces all read properties, returning the actual property values in a List.
traceValue in interface RebindableComponentpublic void rebind()
RebindableComponentThis operation causes the component to reset it's content to that of the domain model.
rebind in interface RebindableComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||