com.threerings.admin.web.client
Class ConfigFieldEditor

java.lang.Object
  extended by com.threerings.admin.web.client.ConfigFieldEditor
Direct Known Subclasses:
ConfigFieldEditor.CheckboxFieldEditor, ConfigFieldEditor.StringFieldEditor

public abstract class ConfigFieldEditor
extends Object

A class responsible for constructing and exporting the widgets involved in manipulating one specific configuration field.


Nested Class Summary
protected static class ConfigFieldEditor.CheckboxFieldEditor
          This editor represents boolean values as checkboxes.
protected static class ConfigFieldEditor.StringFieldEditor
          This editor represents values as strings.
 
Field Summary
protected  ConfigField _field
           
protected  com.google.gwt.user.client.ui.Label _name
           
protected  com.google.gwt.user.client.Command _onChange
           
protected  com.google.gwt.user.client.ui.Label _reset
           
protected  com.google.gwt.user.client.ui.Widget _value
           
 
Constructor Summary
ConfigFieldEditor(ConfigField field, com.google.gwt.user.client.Command onChange)
           
 
Method Summary
protected abstract  com.google.gwt.user.client.ui.Widget buildWidget(ConfigField field)
           
static ConfigFieldEditor getEditorFor(ConfigField field, com.google.gwt.user.client.Command onChange)
           
abstract  ConfigField getModifiedField()
           
 com.google.gwt.user.client.ui.Widget getNameWidget()
           
 com.google.gwt.user.client.ui.Widget getResetWidget()
           
 com.google.gwt.user.client.ui.Widget getValueWidget()
           
protected abstract  void resetField()
           
protected  void updateModificationState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_field

protected ConfigField _field

_onChange

protected com.google.gwt.user.client.Command _onChange

_name

protected com.google.gwt.user.client.ui.Label _name

_reset

protected com.google.gwt.user.client.ui.Label _reset

_value

protected com.google.gwt.user.client.ui.Widget _value
Constructor Detail

ConfigFieldEditor

public ConfigFieldEditor(ConfigField field,
                         com.google.gwt.user.client.Command onChange)
Method Detail

getEditorFor

public static ConfigFieldEditor getEditorFor(ConfigField field,
                                             com.google.gwt.user.client.Command onChange)

updateModificationState

protected void updateModificationState()

getNameWidget

public com.google.gwt.user.client.ui.Widget getNameWidget()

getValueWidget

public com.google.gwt.user.client.ui.Widget getValueWidget()

getResetWidget

public com.google.gwt.user.client.ui.Widget getResetWidget()

getModifiedField

public abstract ConfigField getModifiedField()

buildWidget

protected abstract com.google.gwt.user.client.ui.Widget buildWidget(ConfigField field)

resetField

protected abstract void resetField()