@Test void getButton() { Optional<Button> button = dialogControl.getButton(BUTTON_TYPE_1); assertNotEquals(Optional.empty(), button); assertEquals(dialogControl.getButtons().get(0), button.get()); button = dialogControl.getButton(ButtonType.CANCEL); assertEquals(Optional.empty(), button); buttonTypes.clear(); button = dialogControl.getButton(BUTTON_TYPE_1); assertEquals(Optional.empty(), button); }
public final Optional<Button> getButton(ButtonType buttonType) { return Optional.ofNullable(buttonNodes.get(buttonType)); }
DialogControl extends Control { public final Optional<Button> getButton(ButtonType buttonType) { return Optional.ofNullable(buttonNodes.get(buttonType)); } }
DialogControl extends Control { public final Optional<Button> getButton(ButtonType buttonType) { return Optional.ofNullable(buttonNodes.get(buttonType)); } DialogControl(); }
DialogControl extends Control { public final Optional<Button> getButton(ButtonType buttonType) { return Optional.ofNullable(buttonNodes.get(buttonType)); } DialogControl(); final void hide(); final Optional<Button> getButton(ButtonType buttonType); final ObjectProperty<EventHandler<Event>> onShownProperty(); final void setOnShown(EventHandler<Event> value); final EventHandler<Event> getOnShown(); final ObjectProperty<EventHandler<Event>> onHiddenProperty(); final void setOnHidden(EventHandler<Event> value); final EventHandler<Event> getOnHidden(); final WorkbenchDialog getDialog(); final ObjectProperty<WorkbenchDialog> dialogProperty(); final void setDialog(WorkbenchDialog dialog); final ObservableList<Button> getButtons(); final boolean isButtonTextUppercase(); final BooleanProperty buttonTextUppercaseProperty(); final void setButtonTextUppercase(boolean buttonTextUppercase); final Workbench getWorkbench(); final void setWorkbench(Workbench workbench); final ObjectProperty<Workbench> workbenchProperty(); final ReadOnlyBooleanProperty showingProperty(); final boolean isShowing(); ButtonType getCancelButtonType(); }
DialogControl extends Control { public final Optional<Button> getButton(ButtonType buttonType) { return Optional.ofNullable(buttonNodes.get(buttonType)); } DialogControl(); final void hide(); final Optional<Button> getButton(ButtonType buttonType); final ObjectProperty<EventHandler<Event>> onShownProperty(); final void setOnShown(EventHandler<Event> value); final EventHandler<Event> getOnShown(); final ObjectProperty<EventHandler<Event>> onHiddenProperty(); final void setOnHidden(EventHandler<Event> value); final EventHandler<Event> getOnHidden(); final WorkbenchDialog getDialog(); final ObjectProperty<WorkbenchDialog> dialogProperty(); final void setDialog(WorkbenchDialog dialog); final ObservableList<Button> getButtons(); final boolean isButtonTextUppercase(); final BooleanProperty buttonTextUppercaseProperty(); final void setButtonTextUppercase(boolean buttonTextUppercase); final Workbench getWorkbench(); final void setWorkbench(Workbench workbench); final ObjectProperty<Workbench> workbenchProperty(); final ReadOnlyBooleanProperty showingProperty(); final boolean isShowing(); ButtonType getCancelButtonType();  }