*/
public <T extends CellServerState> void getCellServerState(
T cellServerState) {
// Figure out whether there already exists a server state for the
// component.
CellPhysicsPropertiesComponentServerState state =
(CellPhysicsPropertiesComponentServerState) cellServerState.getComponentServerState(
CellPhysicsPropertiesComponentServerState.class);
if (state == null) {
state = new CellPhysicsPropertiesComponentServerState();
}
PhysicsProperties p = state.getPhyiscsProperties(
CellPhysicsPropertiesComponentServerState.DEFAULT_NAME);
if (p == null) {
p = new PhysicsProperties();
state.addPhysicsProperties(
CellPhysicsPropertiesComponentServerState.DEFAULT_NAME, p);
}
p.setMass(((Float) massSpinner.getModel().getValue()).floatValue());
cellServerState.addComponentServerState(state);