com.sibvisions.rad.ui.gwt.shared.event
Class EditorValueEvent

java.lang.Object
  extended by com.sibvisions.rad.ui.gwt.shared.event.ServiceEvent
      extended by com.sibvisions.rad.ui.gwt.shared.event.EditorValueEvent
All Implemented Interfaces:
Serializable

public class EditorValueEvent
extends ServiceEvent

The EditorValueEvent is a ServiceEvent to send editor values to the server.

See Also:
Serialized Form

Constructor Summary
EditorValueEvent()
          Creates a new instance of EditorValueEvent.
EditorValueEvent(String pClientId, String pComponentId)
          Creates a new instance of EditorValueEvent.
EditorValueEvent(String pClientId, String pComponentId, List<Object> pValues)
          Creates a new instance of EditorValueEvent for specific values.
 
Method Summary
 String getClientId()
          Gets the id of the client.
 List<String> getColumnNames()
          Gets the column names.
 String getParameter(String pName)
          Gets the value for a user defined parameter.
 List<Object> getValues()
          Gets the values of the editor.
 boolean isValueDetection()
          Gets whether the value detection is en- or disabled.
 void setColumnNames(List<String> pColumns)
          Sets the column names.
 String setParameter(String pName, String pValue)
          Sets a user defined event parameter.
 void setValueDetection(boolean pDetection)
          Sets the automatic value detection en- or disabled.
 void setValues(List<Object> pValues)
          Sets the editor values.
 
Methods inherited from class com.sibvisions.rad.ui.gwt.shared.event.ServiceEvent
getComponentData, getComponentId, getType, setComponentData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorValueEvent

public EditorValueEvent()
Creates a new instance of EditorValueEvent. Only for serialization.


EditorValueEvent

public EditorValueEvent(String pClientId,
                        String pComponentId)
Creates a new instance of EditorValueEvent.

Parameters:
pClientId - the id of the client
pComponentId - the editor id

EditorValueEvent

public EditorValueEvent(String pClientId,
                        String pComponentId,
                        List<Object> pValues)
Creates a new instance of EditorValueEvent for specific values.

Parameters:
pClientId - the id of the client
pComponentId - the editor id
pValues - the editor values
Method Detail

setValues

public void setValues(List<Object> pValues)
Sets the editor values.

Parameters:
pValues - the values

getValues

public List<Object> getValues()
Gets the values of the editor.

Returns:
the values

setColumnNames

public void setColumnNames(List<String> pColumns)
Sets the column names.

Parameters:
pColumns - the column names

getColumnNames

public List<String> getColumnNames()
Gets the column names.

Returns:
the column names

setValueDetection

public void setValueDetection(boolean pDetection)
Sets the automatic value detection en- or disabled.

Parameters:
pDetection - true to enable the value detection through the server

isValueDetection

public boolean isValueDetection()
Gets whether the value detection is en- or disabled.

Returns:
true if the value detection trough the server is enabled

getClientId

public String getClientId()
Gets the id of the client.

Returns:
the id

setParameter

public String setParameter(String pName,
                           String pValue)
Sets a user defined event parameter.

Parameters:
pName - the parameter name
pValue - the value or null to remove the property with the specified name
Returns:
the previous value or null if the property was not set

getParameter

public String getParameter(String pName)
Gets the value for a user defined parameter.

Parameters:
pName - the parameter name
Returns:
the value of the parameter or null if the parameter was not set


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.