NextApp Echo2
v2.1.1

nextapp.echo2.webcontainer.partialupdate
Class BorderUpdate

java.lang.Object
  extended by nextapp.echo2.webcontainer.partialupdate.BorderUpdate
All Implemented Interfaces:
PartialUpdateParticipant

public class BorderUpdate
extends java.lang.Object
implements PartialUpdateParticipant

A PartialUpdateParticipant to update a CSS border property.


Field Summary
static java.lang.String CSS_BORDER
           
 
Constructor Summary
BorderUpdate(java.lang.String componentPropertyName, java.lang.String idSuffix, java.lang.String cssAttributeName)
          Creates a new BorderUpdate.
 
Method Summary
 boolean canRenderProperty(RenderContext rc, nextapp.echo2.app.update.ServerComponentUpdate update)
          Determines if this partial update participant is capable of performing its specific task.
 void renderProperty(RenderContext rc, nextapp.echo2.app.update.ServerComponentUpdate update)
          Renders an update to the client to perform the partial update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSS_BORDER

public static final java.lang.String CSS_BORDER
See Also:
Constant Field Values
Constructor Detail

BorderUpdate

public BorderUpdate(java.lang.String componentPropertyName,
                    java.lang.String idSuffix,
                    java.lang.String cssAttributeName)
Creates a new BorderUpdate.

Parameters:
componentPropertyName - the name of the property of the component
idSuffix - the suffix to append to the root client-side identifier of the component (should be null in typical case of no suffix)
cssAttributeName - the name of the CSS attribute to update (see CSS constants provided in this class)
Method Detail

canRenderProperty

public boolean canRenderProperty(RenderContext rc,
                                 nextapp.echo2.app.update.ServerComponentUpdate update)
Description copied from interface: PartialUpdateParticipant
Determines if this partial update participant is capable of performing its specific task.

Specified by:
canRenderProperty in interface PartialUpdateParticipant
Parameters:
rc - the relevant RenderContext
update - the ServerComponentUpdate to be processed.
Returns:
true if the participant is capable of performing the task
See Also:
PartialUpdateParticipant.canRenderProperty(nextapp.echo2.webcontainer.RenderContext, nextapp.echo2.app.update.ServerComponentUpdate)

renderProperty

public void renderProperty(RenderContext rc,
                           nextapp.echo2.app.update.ServerComponentUpdate update)
Description copied from interface: PartialUpdateParticipant
Renders an update to the client to perform the partial update.

Specified by:
renderProperty in interface PartialUpdateParticipant
Parameters:
rc - the relevant RenderContext
update - the ServerComponentUpdate to be processed
See Also:
PartialUpdateParticipant.renderProperty( nextapp.echo2.webcontainer.RenderContext, nextapp.echo2.app.update.ServerComponentUpdate)

NextApp Echo2
v2.1.1