@Test public void testAllowOnlyVisualChangesDefaultValue() { final Element element = mock(Element.class); final boolean actual = control.allowOnlyVisualChanges(element); assertFalse(actual); }
boolean allowOnlyVisualChanges(final Element element) { if (element.getContent() instanceof Definition) { final Definition definition = (Definition) element.getContent(); if (definition.getDefinition() instanceof DynamicReadOnly) { return ((DynamicReadOnly) definition.getDefinition()).isAllowOnlyVisualChange(); } } return false; }
AbstractCanvasInlineTextEditorControl extends AbstractCanvasHandlerRegistrationControl<AbstractCanvasHandler> implements CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> { boolean allowOnlyVisualChanges(final Element element) { if (element.getContent() instanceof Definition) { final Definition definition = (Definition) element.getContent(); if (definition.getDefinition() instanceof DynamicReadOnly) { return ((DynamicReadOnly) definition.getDefinition()).isAllowOnlyVisualChange(); } } return false; } }
AbstractCanvasInlineTextEditorControl extends AbstractCanvasHandlerRegistrationControl<AbstractCanvasHandler> implements CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> { boolean allowOnlyVisualChanges(final Element element) { if (element.getContent() instanceof Definition) { final Definition definition = (Definition) element.getContent(); if (definition.getDefinition() instanceof DynamicReadOnly) { return ((DynamicReadOnly) definition.getDefinition()).isAllowOnlyVisualChange(); } } return false; }  }
AbstractCanvasInlineTextEditorControl extends AbstractCanvasHandlerRegistrationControl<AbstractCanvasHandler> implements CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> { boolean allowOnlyVisualChanges(final Element element) { if (element.getContent() instanceof Definition) { final Definition definition = (Definition) element.getContent(); if (definition.getDefinition() instanceof DynamicReadOnly) { return ((DynamicReadOnly) definition.getDefinition()).isAllowOnlyVisualChange(); } } return false; }  @Override void bind(final EditorSession session); @Override void register(final Element element); @Override CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> show(final Element item); @Override void setCommandManagerProvider(final CommandManagerProvider<AbstractCanvasHandler> provider); @Override CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> rollback(); @Override CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> hide(); void scheduleDeferredCommand(final Scheduler.ScheduledCommand command); }
AbstractCanvasInlineTextEditorControl extends AbstractCanvasHandlerRegistrationControl<AbstractCanvasHandler> implements CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> { boolean allowOnlyVisualChanges(final Element element) { if (element.getContent() instanceof Definition) { final Definition definition = (Definition) element.getContent(); if (definition.getDefinition() instanceof DynamicReadOnly) { return ((DynamicReadOnly) definition.getDefinition()).isAllowOnlyVisualChange(); } } return false; }  @Override void bind(final EditorSession session); @Override void register(final Element element); @Override CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> show(final Element item); @Override void setCommandManagerProvider(final CommandManagerProvider<AbstractCanvasHandler> provider); @Override CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> rollback(); @Override CanvasInlineTextEditorControl<AbstractCanvasHandler, EditorSession, Element> hide(); void scheduleDeferredCommand(final Scheduler.ScheduledCommand command); static final double SHAPE_EDIT_ALPHA; static final double TITLE_EDIT_ALPHA; static final double NOT_EDIT_ALPHA; static final String ALIGN_MIDDLE; static final String ALIGN_LEFT; static final String ALIGN_TOP; static final String POSITION_INSIDE; static final String POSITION_OUTSIDE; static final String ORIENTATION_VERTICAL; static final String ORIENTATION_HORIZONTAL; static final double DEFAULT_MARGIN_X; static final double DEFAULT_FONT_SIZE; static final String DEFAULT_FONT_FAMILY; }