Permalink
Browse files

fix missing stuff from metric form

  • Loading branch information...
1 parent 79accca commit 14c1b792d209a35da20074377939eeb979a7dd2f @bsjaekel bsjaekel committed Jan 18, 2013
Showing with 8 additions and 9 deletions.
  1. +8 −9 src/tsd/client/MetricForm.java
@@ -18,20 +18,17 @@
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.DomEvent;
import com.google.gwt.event.shared.EventHandler;
-import com.google.gwt.user.client.ui.CheckBox;
-import com.google.gwt.user.client.ui.Focusable;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.InlineLabel;
-import com.google.gwt.user.client.ui.ListBox;
-import com.google.gwt.user.client.ui.SuggestBox;
-import com.google.gwt.user.client.ui.VerticalPanel;
+import com.google.gwt.user.client.ui.*;
+import com.google.gwt.event.dom.client.BlurEvent;
+import com.google.gwt.event.dom.client.BlurHandler;
final class MetricForm extends HorizontalPanel implements Focusable {
public static interface MetricChangeHandler extends EventHandler {
void onMetricChange(MetricForm widget);
}
+ private final EventsHandler events_handler;
private MetricChangeHandler metric_change_handler;
private final CheckBox downsample = new CheckBox("Downsample");
@@ -41,9 +38,11 @@
private final CheckBox x1y2 = new CheckBox("Right Axis");
private final ListBox aggregators = new ListBox();
private final ValidatedTextBox metric = new ValidatedTextBox();
+ private final FlexTable tagtable = new FlexTable();
private TagsPanel tagsPanel;
public MetricForm(final EventsHandler handler) {
+ events_handler = handler;
setupDownsampleWidgets();
tagsPanel = new TagsPanel(handler);
downsample.addClickHandler(handler);
@@ -357,8 +356,8 @@ private void addTag(final String default_tagname,
final SuggestBox suggesttagk = RemoteOracle.newSuggestBox("tagk", tagname);
final ValidatedTextBox tagvalue = new ValidatedTextBox();
final SuggestBox suggesttagv = RemoteOracle.newSuggestBox("tagv", tagvalue);
- tagname.setValidationRegexp(TSDB_ID_RE);
- tagvalue.setValidationRegexp(TSDB_TAGVALUE_RE);
+ tagname.setValidationRegexp(ClientConstants.TSDB_ID_RE);
+ tagvalue.setValidationRegexp(ClientConstants.TSDB_TAGVALUE_RE);
tagname.setWidth("100%");
tagvalue.setWidth("100%");
tagname.addBlurHandler(recompact_tagtable);

0 comments on commit 14c1b79

Please sign in to comment.