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