com.sibvisions.rad.ui.web.ext.gwt
Class FormattedValue

java.lang.Object
  extended by com.sibvisions.rad.ui.web.ext.gwt.FormattedValue
All Implemented Interfaces:
Serializable

public class FormattedValue
extends Object
implements Serializable

The FormattedValue is a single column in a Grid component. It will be used to transfer data between server and client.

See Also:
Serialized Form

Constructor Summary
FormattedValue()
           
 
Method Summary
 String getBackground()
          Gets the background color.
 String getFont()
          Gets the font.
 String getForeground()
          Gets the foreground color.
<V> V
getValue()
          Gets the cell value.
 void setBackground(String pColor)
          Sets the background color.
 void setFont(String pFont)
          Sets the font.
 void setForeground(String pColor)
          Sets the foreground color.
<V> void
setValue(V pValue)
          Sets the cell value.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormattedValue

public FormattedValue()
Method Detail

toString

public String toString()

Overrides:
toString in class Object

setValue

public <V> void setValue(V pValue)
Sets the cell value.

Type Parameters:
V - the value type
Parameters:
pValue - the cell value

getValue

public <V> V getValue()
Gets the cell value.

Type Parameters:
V - the value type
Returns:
the cell value

setForeground

public void setForeground(String pColor)
Sets the foreground color.

Parameters:
pColor - the color code

getForeground

public String getForeground()
Gets the foreground color.

Returns:
te color colde

setBackground

public void setBackground(String pColor)
Sets the background color.

Parameters:
pColor - the color code

getBackground

public String getBackground()
Gets the background color.

Returns:
te color colde

setFont

public void setFont(String pFont)
Sets the font.

Parameters:
pFont - the font name

getFont

public String getFont()
Gets the font.

Returns:
the font name


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.