Indicate external links

This commit is contained in:
M66B
2019-08-13 11:33:12 +02:00
parent ca480d054d
commit c7050030ea
9 changed files with 48 additions and 6 deletions

View File

@@ -23,6 +23,7 @@ public class NavMenuItem {
private int icon;
private int title;
private Integer count = null;
private boolean external = false;
private boolean warning = false;
private boolean separated = false;
private Runnable click;
@@ -47,6 +48,11 @@ public class NavMenuItem {
this.count = count;
}
NavMenuItem setExternal(boolean external) {
this.external = external;
return this;
}
void setWarning(boolean warning) {
this.warning = warning;
}
@@ -72,6 +78,10 @@ public class NavMenuItem {
return this.separated;
}
boolean isExternal() {
return this.external;
}
boolean hasWarning() {
return this.warning;
}