Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WidgetModel: change to getGroup from isGroup, more appropriate
  • Loading branch information
karlduderstadt committed Aug 3, 2021
commit 76db52db6b74164392e4fabd7ca2ec801c7cf385
4 changes: 2 additions & 2 deletions src/main/java/org/scijava/widget/DefaultWidgetModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ public boolean isStyle(final String style) {
}

@Override
public boolean isGroup(final String group) {
return getItem().getWidgetGroup().equals(group);
public String getGroup() {
return getItem().getWidgetGroup();
}

@Override
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/org/scijava/widget/WidgetModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ public interface WidgetModel extends Contextual {
boolean isStyle(String style);

/**
* Gets whether the widget is part of the group.
* Gets group that the widget belongs to.
*
* @return Group that the widget belongs to.
*/
boolean isGroup(String group);
String getGroup();

/**
* Gets the current value of the module input.
Expand Down