@Test public void testPinnedModeVisible() throws Exception { final Element element = mock(Element.class); final Style style = mock(Style.class); doReturn(element).when(pinnedModeIndicator).getElement(); doReturn(style).when(element).getStyle(); view.setPinnedModeIndicatorVisibility(true, 0); verify(style).setTop(0.5, Style.Unit.EM); }
@Override public void setPinnedModeIndicatorVisibility(final boolean visibility, final double headerCaptionWidth) { style(pinnedModeIndicator).setTop(visibility ? 0.5 : -2.0, Style.Unit.EM); style(pinnedModeIndicator).setLeft(headerCaptionWidth, Style.Unit.PX); }
GuidedDecisionTableModellerViewImpl extends Composite implements GuidedDecisionTableModellerView { @Override public void setPinnedModeIndicatorVisibility(final boolean visibility, final double headerCaptionWidth) { style(pinnedModeIndicator).setTop(visibility ? 0.5 : -2.0, Style.Unit.EM); style(pinnedModeIndicator).setLeft(headerCaptionWidth, Style.Unit.PX); } }
GuidedDecisionTableModellerViewImpl extends Composite implements GuidedDecisionTableModellerView { @Override public void setPinnedModeIndicatorVisibility(final boolean visibility, final double headerCaptionWidth) { style(pinnedModeIndicator).setTop(visibility ? 0.5 : -2.0, Style.Unit.EM); style(pinnedModeIndicator).setLeft(headerCaptionWidth, Style.Unit.PX); } GuidedDecisionTableModellerViewImpl(); @Inject  GuidedDecisionTableModellerViewImpl(final TranslationService translationService); }
GuidedDecisionTableModellerViewImpl extends Composite implements GuidedDecisionTableModellerView { @Override public void setPinnedModeIndicatorVisibility(final boolean visibility, final double headerCaptionWidth) { style(pinnedModeIndicator).setTop(visibility ? 0.5 : -2.0, Style.Unit.EM); style(pinnedModeIndicator).setLeft(headerCaptionWidth, Style.Unit.PX); } GuidedDecisionTableModellerViewImpl(); @Inject  GuidedDecisionTableModellerViewImpl(final TranslationService translationService); @Override void init(final GuidedDecisionTableModellerView.Presenter presenter); @PostConstruct void setup(); @Override void onResize(); @Override HandlerRegistration addKeyDownHandler(final KeyDownHandler handler); @Override HandlerRegistration addContextMenuHandler(final ContextMenuHandler handler); @Override HandlerRegistration addMouseDownHandler(final MouseDownHandler handler); @Override void clear(); @Override void addDecisionTable(final GuidedDecisionTableView gridWidget); @Override void removeDecisionTable(final GuidedDecisionTableView gridWidget,
                                    final Command afterRemovalCommand); @Override void refreshScrollPosition(); @Override void setZoom(final int zoom); @Override GridLayer getGridLayerView(); @Override GridLienzoPanel getGridPanel(); @Override Bounds getBounds(); @Override void select(final GridWidget selectedGridWidget); @Override void selectLinkedColumn(final GridColumn<?> link); @Override Set<GridWidget> getGridWidgets(); @Override void setPinnedModeIndicatorVisibility(final boolean visibility, final double headerCaptionWidth); @Override void showGenericVetoMessage(); @Override void showUnableToDeleteColumnMessage(final ConditionCol52 column); @Override void showUnableToDeleteColumnMessage(final ActionCol52 column); }
GuidedDecisionTableModellerViewImpl extends Composite implements GuidedDecisionTableModellerView { @Override public void setPinnedModeIndicatorVisibility(final boolean visibility, final double headerCaptionWidth) { style(pinnedModeIndicator).setTop(visibility ? 0.5 : -2.0, Style.Unit.EM); style(pinnedModeIndicator).setLeft(headerCaptionWidth, Style.Unit.PX); } GuidedDecisionTableModellerViewImpl(); @Inject  GuidedDecisionTableModellerViewImpl(final TranslationService translationService); @Override void init(final GuidedDecisionTableModellerView.Presenter presenter); @PostConstruct void setup(); @Override void onResize(); @Override HandlerRegistration addKeyDownHandler(final KeyDownHandler handler); @Override HandlerRegistration addContextMenuHandler(final ContextMenuHandler handler); @Override HandlerRegistration addMouseDownHandler(final MouseDownHandler handler); @Override void clear(); @Override void addDecisionTable(final GuidedDecisionTableView gridWidget); @Override void removeDecisionTable(final GuidedDecisionTableView gridWidget,
                                    final Command afterRemovalCommand); @Override void refreshScrollPosition(); @Override void setZoom(final int zoom); @Override GridLayer getGridLayerView(); @Override GridLienzoPanel getGridPanel(); @Override Bounds getBounds(); @Override void select(final GridWidget selectedGridWidget); @Override void selectLinkedColumn(final GridColumn<?> link); @Override Set<GridWidget> getGridWidgets(); @Override void setPinnedModeIndicatorVisibility(final boolean visibility, final double headerCaptionWidth); @Override void showGenericVetoMessage(); @Override void showUnableToDeleteColumnMessage(final ConditionCol52 column); @Override void showUnableToDeleteColumnMessage(final ActionCol52 column);  }