com.threerings.admin.web.client
Class ConfigEditorPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.google.gwt.user.client.ui.ResizeComposite
                  extended by com.google.gwt.user.client.ui.TabLayoutPanel
                      extended by com.threerings.admin.web.client.ConfigEditorPanel
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers<Integer>, com.google.gwt.event.logical.shared.HasSelectionHandlers<Integer>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AnimatedLayout, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.ProvidesResize, com.google.gwt.user.client.ui.RequiresResize, ConfigEditorTab.ConfigAccessor, Iterable<com.google.gwt.user.client.ui.Widget>

public abstract class ConfigEditorPanel
extends com.google.gwt.user.client.ui.TabLayoutPanel
implements ConfigEditorTab.ConfigAccessor

The main panel of the configuration editor. All service calls are routed through here. Subclass this class in your project.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
protected static ConfigServiceAsync _configsvc
           
protected  Map<String,ConfigEditorTab> _tabs
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ConfigEditorPanel(int barPixelHeight)
          Create a ConfigEditorPanel with the given bar height, measured in pixels.
ConfigEditorPanel(int barHeight, com.google.gwt.dom.client.Style.Unit unit)
          Create a ConfigEditorPanel with the given bar height, measured in the given unit.
 
Method Summary
protected abstract  String getServiceEntryPoint()
          Should return the absolute path of the servlet that implements ConfigService.
protected  void gotData(ConfigService.ConfigurationResult result)
           
 void submitChanges(String key, ConfigField[] modified, com.google.gwt.user.client.rpc.AsyncCallback<ConfigService.ConfigurationRecord> callback)
           
 
Methods inherited from class com.google.gwt.user.client.ui.TabLayoutPanel
add, add, add, add, add, add, add, add, add, addBeforeSelectionHandler, addSelectionHandler, animate, animate, clear, forceLayout, getAnimationDuration, getSelectedIndex, getTabWidget, getTabWidget, getTabWidget, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, insert, insert, insert, insert, insert, insert, insert, isAnimationVertical, iterator, remove, remove, selectTab, selectTab, selectTab, selectTab, selectTab, selectTab, setAnimationDuration, setAnimationVertical, setTabHTML, setTabHTML, setTabText
 
Methods inherited from class com.google.gwt.user.client.ui.ResizeComposite
initWidget, onResize
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

_tabs

protected Map<String,ConfigEditorTab> _tabs

_configsvc

protected static final ConfigServiceAsync _configsvc
Constructor Detail

ConfigEditorPanel

public ConfigEditorPanel(int barPixelHeight)
Create a ConfigEditorPanel with the given bar height, measured in pixels.


ConfigEditorPanel

public ConfigEditorPanel(int barHeight,
                         com.google.gwt.dom.client.Style.Unit unit)
Create a ConfigEditorPanel with the given bar height, measured in the given unit.

Method Detail

submitChanges

public void submitChanges(String key,
                          ConfigField[] modified,
                          com.google.gwt.user.client.rpc.AsyncCallback<ConfigService.ConfigurationRecord> callback)
Specified by:
submitChanges in interface ConfigEditorTab.ConfigAccessor

gotData

protected void gotData(ConfigService.ConfigurationResult result)

getServiceEntryPoint

protected abstract String getServiceEntryPoint()
Should return the absolute path of the servlet that implements ConfigService.