Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix missing stuff from metric form

  • Loading branch information...
commit 14c1b792d209a35da20074377939eeb979a7dd2f 1 parent 79accca
Sebastian Jäkel bsjaekel authored
Showing with 8 additions and 9 deletions.
  1. +8 −9 src/tsd/client/MetricForm.java
17 src/tsd/client/MetricForm.java
View
@@ -18,13 +18,9 @@
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 {
@@ -32,6 +28,7 @@
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);
Please sign in to comment.
Something went wrong with that request. Please try again.