Whitespace

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6207 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Dave Hoover
2010-10-15 20:16:09 +00:00
parent d17407cfaf
commit ea58e7a7b7
4 changed files with 13 additions and 24 deletions
@@ -41,14 +41,12 @@ public abstract class ConfigFieldEditor
*/ */
protected static class StringFieldEditor extends ConfigFieldEditor protected static class StringFieldEditor extends ConfigFieldEditor
{ {
public StringFieldEditor (ConfigField field, Command onChange) public StringFieldEditor (ConfigField field, Command onChange) {
{
super(field, onChange); super(field, onChange);
} }
@Override @Override
protected Widget buildWidget (ConfigField field) protected Widget buildWidget (ConfigField field) {
{
_box = new TextBox(); _box = new TextBox();
_box.setStyleName("configStringEditor"); _box.setStyleName("configStringEditor");
_box.setVisibleLength(40); _box.setVisibleLength(40);
@@ -67,8 +65,7 @@ public abstract class ConfigFieldEditor
} }
@Override @Override
public ConfigField getModifiedField () public ConfigField getModifiedField () {
{
Object newValue = _field.type.toValue(_box.getText().trim()); Object newValue = _field.type.toValue(_box.getText().trim());
if (newValue == null) { if (newValue == null) {
return null; return null;
@@ -82,8 +79,7 @@ public abstract class ConfigFieldEditor
} }
@Override @Override
protected void resetField () protected void resetField () {
{
_box.setText(_field.valStr); _box.setText(_field.valStr);
} }
@@ -95,14 +91,12 @@ public abstract class ConfigFieldEditor
*/ */
protected static class CheckboxFieldEditor extends ConfigFieldEditor protected static class CheckboxFieldEditor extends ConfigFieldEditor
{ {
public CheckboxFieldEditor (ConfigField field, Command onChange) public CheckboxFieldEditor (ConfigField field, Command onChange) {
{
super(field, onChange); super(field, onChange);
} }
@Override @Override
protected Widget buildWidget (ConfigField field) protected Widget buildWidget (ConfigField field) {
{
_box = new CheckBox(); _box = new CheckBox();
_box.setStyleName("configCheckBoxEditor"); _box.setStyleName("configCheckBoxEditor");
resetField(); resetField();
@@ -116,8 +110,7 @@ public abstract class ConfigFieldEditor
} }
@Override @Override
public ConfigField getModifiedField () public ConfigField getModifiedField () {
{
String newValStr = Boolean.toString(_box.getValue()); String newValStr = Boolean.toString(_box.getValue());
if (newValStr.equals(_field.valStr)) { if (newValStr.equals(_field.valStr)) {
return null; return null;
@@ -126,8 +119,7 @@ public abstract class ConfigFieldEditor
} }
@Override @Override
protected void resetField () protected void resetField () {
{
_box.setValue(Boolean.valueOf(_field.valStr)); _box.setValue(Boolean.valueOf(_field.valStr));
} }
@@ -423,7 +423,7 @@ public abstract class ChatChannelManager
protected Name _user; protected Name _user;
} }
protected static final Predicate<ChatHistoryEntry> IS_USER_MESSAGE = protected static final Predicate<ChatHistoryEntry> IS_USER_MESSAGE =
new Predicate<ChatHistoryEntry>() { new Predicate<ChatHistoryEntry>() {
public boolean apply (ChatHistoryEntry entry) { public boolean apply (ChatHistoryEntry entry) {
@@ -1562,7 +1562,6 @@ public abstract class PeerManager
protected Map<String, String> _errors; protected Map<String, String> _errors;
} }
/** Extracts the node object from the supplied peer. */ /** Extracts the node object from the supplied peer. */
protected static final Function<PeerNode, NodeObject> GET_NODE_OBJECT = protected static final Function<PeerNode, NodeObject> GET_NODE_OBJECT =
new Function<PeerNode, NodeObject>() { new Function<PeerNode, NodeObject>() {
@@ -30,8 +30,8 @@ import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable; import com.threerings.io.Streamable;
/** /**
* A {@link HashIntMap} extension that can be streamed. The keys and * A {@link HashIntMap} extension that can be streamed. The keys and values in the map must also
* values in the map must also be of streamable types. * be of streamable types.
* *
* @see Streamable * @see Streamable
* @param <V> the type of value stored in this map. * @param <V> the type of value stored in this map.
@@ -40,8 +40,7 @@ public class StreamableHashIntMap<V> extends HashIntMap<V>
implements Streamable implements Streamable
{ {
/** /**
* Constructs an empty hash int map with the specified number of hash * Constructs an empty hash int map with the specified number of hash buckets.
* buckets.
*/ */
public StreamableHashIntMap (int buckets, float loadFactor) public StreamableHashIntMap (int buckets, float loadFactor)
{ {
@@ -49,8 +48,7 @@ public class StreamableHashIntMap<V> extends HashIntMap<V>
} }
/** /**
* Constructs an empty hash int map with the default number of hash * Constructs an empty hash int map with the default number of hash buckets.
* buckets.
*/ */
public StreamableHashIntMap () public StreamableHashIntMap ()
{ {