org.salespointframework.web.html
Class DoubleView<T extends SpItem>

java.lang.Object
  extended by org.salespointframework.web.html.DoubleView<T>

public class DoubleView<T extends SpItem>
extends java.lang.Object

Render a Double-View in HTML representation.

Author:
Uwe Schmidt, Lars Kreisz

Field Summary
private  java.lang.String actionUrl
           
protected  View<T> destinationView
           
private  java.util.List<AbstractExtraColumn<T>> extraColsDestination
           
private  java.util.List<AbstractExtraColumn<T>> extraColsSource
           
protected  java.lang.String id
           
protected  int lastNumber
           
protected  org.springframework.context.MessageSource messageSource
           
private  boolean showBackButton
           
protected  boolean showNumberField
           
protected  View<T> sourceView
           
protected  java.lang.String style
           
protected  java.lang.String styleName
           
 
Constructor Summary
DoubleView(View<T> sourceView, View<T> destinationView)
          Creates a Double-View in HTML representation.
 
Method Summary
 java.lang.StringBuffer render()
          renders the DoubleView
protected  java.lang.StringBuffer renderButton()
          renders the buttons between the views
 void setActionUrl(java.lang.String actionUrl)
          the url to submit the double view form
 void setId(java.lang.String id)
          The value of the id-attribute of the Double-View.
 void setLastNumber(int lastNumber)
          Sets a default value for numberField.
 void setMessageSource(org.springframework.context.MessageSource messageSource)
          Sets a messageSource.
 void setShowBackButton(boolean showBackButton)
          Default is 'true'.
 void setShowNumberField(boolean showNumberField)
          Default 'false'.
 void setStyle(java.lang.String style)
          The value of the style of the Double-View.
 void setStyleName(java.lang.String styleName)
          The value of the class-attribute of the Double-View.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceView

protected View<T extends SpItem> sourceView

destinationView

protected View<T extends SpItem> destinationView

id

protected java.lang.String id

styleName

protected java.lang.String styleName

style

protected java.lang.String style

messageSource

protected org.springframework.context.MessageSource messageSource

showNumberField

protected boolean showNumberField

showBackButton

private boolean showBackButton

lastNumber

protected int lastNumber

extraColsSource

private java.util.List<AbstractExtraColumn<T extends SpItem>> extraColsSource

extraColsDestination

private java.util.List<AbstractExtraColumn<T extends SpItem>> extraColsDestination

actionUrl

private java.lang.String actionUrl
Constructor Detail

DoubleView

public DoubleView(View<T> sourceView,
                  View<T> destinationView)
Creates a Double-View in HTML representation.

Parameters:
sourceView - View of source dataset
destinationView - View of destination dataset
Method Detail

setMessageSource

public void setMessageSource(org.springframework.context.MessageSource messageSource)
Sets a messageSource.

Parameters:
messageSource -

setShowBackButton

public void setShowBackButton(boolean showBackButton)
Default is 'true'. If 'false' no back-button is showing.

Parameters:
showBackButton -

setId

public void setId(java.lang.String id)
The value of the id-attribute of the Double-View. Be sure it's unique for the whole HTML document.

Parameters:
id -

setStyleName

public void setStyleName(java.lang.String styleName)
The value of the class-attribute of the Double-View.

Parameters:
styleName -

setStyle

public void setStyle(java.lang.String style)
The value of the style of the Double-View.

Parameters:
style -

setShowNumberField

public void setShowNumberField(boolean showNumberField)
Default 'false'. If 'true' you can transfer more than one element.

Parameters:
showNumberField -

setLastNumber

public void setLastNumber(int lastNumber)
Sets a default value for numberField.

Parameters:
lastNumber - default value for numberField

renderButton

protected java.lang.StringBuffer renderButton()
renders the buttons between the views


render

public java.lang.StringBuffer render()
renders the DoubleView


setActionUrl

public void setActionUrl(java.lang.String actionUrl)
the url to submit the double view form

Parameters:
actionUrl - the url to submit the double view form