@Test public void testLongValidator() { PropertyFieldValidator validator = presenter.createLongValidator(); assertEquals(validator.validate("500"), true); assertEquals(validator.validate("500d"), false); assertEquals(validator.validate("aaa"), false); }
public LongValidator createLongValidator() { return new LongValidator(); }
DisplayerSettingsEditor implements IsWidget { public LongValidator createLongValidator() { return new LongValidator(); } }
DisplayerSettingsEditor implements IsWidget { public LongValidator createLongValidator() { return new LongValidator(); } @Inject  DisplayerSettingsEditor(View view,
                                   DisplayerLocator displayerLocator,
                                   RendererManager rendererManager,
                                   Event<DisplayerSettingsChangedEvent> settingsChangedEvent); }
DisplayerSettingsEditor implements IsWidget { public LongValidator createLongValidator() { return new LongValidator(); } @Inject  DisplayerSettingsEditor(View view,
                                   DisplayerLocator displayerLocator,
                                   RendererManager rendererManager,
                                   Event<DisplayerSettingsChangedEvent> settingsChangedEvent); @Override Widget asWidget(); DisplayerSettings getDisplayerSettings(); void init(Displayer displayer); boolean isSupported(DisplayerAttributeDef attributeDef); boolean isSupported(DisplayerAttributeGroupDef groupDef); LongValidator createLongValidator(); DoubleValidator createDoubleValidator(); MeterValidator createMeterValidator(DisplayerSettings settings, int level); }
DisplayerSettingsEditor implements IsWidget { public LongValidator createLongValidator() { return new LongValidator(); } @Inject  DisplayerSettingsEditor(View view,
                                   DisplayerLocator displayerLocator,
                                   RendererManager rendererManager,
                                   Event<DisplayerSettingsChangedEvent> settingsChangedEvent); @Override Widget asWidget(); DisplayerSettings getDisplayerSettings(); void init(Displayer displayer); boolean isSupported(DisplayerAttributeDef attributeDef); boolean isSupported(DisplayerAttributeGroupDef groupDef); LongValidator createLongValidator(); DoubleValidator createDoubleValidator(); MeterValidator createMeterValidator(DisplayerSettings settings, int level); static final String COLUMNS_PREFFIX; }