@Test public void testSetOriginalColumnType() { ColumnType type = mock(ColumnType.class); presenter.setOriginalColumnType(type); verify(columnType, times(1)).setEntries(any(Collection.class)); verify(columnType, times(0)).isEditMode(anyBoolean()); verify(columnType, times(0)).setHelpContent(anyString(), anyString(), any(Placement.class)); verify(columnType, times(0)).setImageSize(anyString(), anyString()); }
@Override public void setOriginalColumnType(final ColumnType columnType) { this.originalColumnType = columnType; final Collection<ImageListEditor<ColumnType>.Entry> acceptableEntries = getAcceptableEntries(columnType); this.columnType.setEntries(acceptableEntries); }
ColumnTypeEditor implements IsWidget,
                                         org.dashbuilder.dataset.client.editor.ColumnTypeEditor { @Override public void setOriginalColumnType(final ColumnType columnType) { this.originalColumnType = columnType; final Collection<ImageListEditor<ColumnType>.Entry> acceptableEntries = getAcceptableEntries(columnType); this.columnType.setEntries(acceptableEntries); } }
ColumnTypeEditor implements IsWidget,
                                         org.dashbuilder.dataset.client.editor.ColumnTypeEditor { @Override public void setOriginalColumnType(final ColumnType columnType) { this.originalColumnType = columnType; final Collection<ImageListEditor<ColumnType>.Entry> acceptableEntries = getAcceptableEntries(columnType); this.columnType.setEntries(acceptableEntries); } @Inject  ColumnTypeEditor(final DropDownImageListEditor<ColumnType> columnType); }
ColumnTypeEditor implements IsWidget,
                                         org.dashbuilder.dataset.client.editor.ColumnTypeEditor { @Override public void setOriginalColumnType(final ColumnType columnType) { this.originalColumnType = columnType; final Collection<ImageListEditor<ColumnType>.Entry> acceptableEntries = getAcceptableEntries(columnType); this.columnType.setEntries(acceptableEntries); } @Inject  ColumnTypeEditor(final DropDownImageListEditor<ColumnType> columnType); @PostConstruct void init(); @Override Widget asWidget(); void addHelpContent(final String title,
                               final String content,
                               final Placement placement); @Override void setOriginalColumnType(final ColumnType columnType); @Override DropDownImageListEditor<ColumnType> columnType(); @Override void flush(); @Override void onPropertyChange(final String... paths); @Override void setValue(final DataColumnDef value); @Override void setDelegate(final EditorDelegate<DataColumnDef> delegate); @Override void isEditMode(final boolean isEdit); }
ColumnTypeEditor implements IsWidget,
                                         org.dashbuilder.dataset.client.editor.ColumnTypeEditor { @Override public void setOriginalColumnType(final ColumnType columnType) { this.originalColumnType = columnType; final Collection<ImageListEditor<ColumnType>.Entry> acceptableEntries = getAcceptableEntries(columnType); this.columnType.setEntries(acceptableEntries); } @Inject  ColumnTypeEditor(final DropDownImageListEditor<ColumnType> columnType); @PostConstruct void init(); @Override Widget asWidget(); void addHelpContent(final String title,
                               final String content,
                               final Placement placement); @Override void setOriginalColumnType(final ColumnType columnType); @Override DropDownImageListEditor<ColumnType> columnType(); @Override void flush(); @Override void onPropertyChange(final String... paths); @Override void setValue(final DataColumnDef value); @Override void setDelegate(final EditorDelegate<DataColumnDef> delegate); @Override void isEditMode(final boolean isEdit);  }