diff --git a/src/main/java/com/redhat/darcy/ui/api/elements/HasIndeterminacy.java b/src/main/java/com/redhat/darcy/ui/api/elements/HasIndeterminacy.java new file mode 100644 index 0000000..72c848a --- /dev/null +++ b/src/main/java/com/redhat/darcy/ui/api/elements/HasIndeterminacy.java @@ -0,0 +1,24 @@ +/* + Copyright 2014 Red Hat, Inc. and/or its affiliates. + + This file is part of darcy-ui. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ + +package com.redhat.darcy.ui.api.elements; + +public interface HasIndeterminacy { + boolean isIndeterminate(); +} diff --git a/src/main/java/com/redhat/darcy/ui/api/elements/TriStateCheckbox.java b/src/main/java/com/redhat/darcy/ui/api/elements/TriStateCheckbox.java new file mode 100644 index 0000000..e206b3b --- /dev/null +++ b/src/main/java/com/redhat/darcy/ui/api/elements/TriStateCheckbox.java @@ -0,0 +1,23 @@ +/* + Copyright 2014 Red Hat, Inc. and/or its affiliates. + + This file is part of darcy-ui. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ + +package com.redhat.darcy.ui.api.elements; + +public interface TriStateCheckbox extends Checkbox, HasIndeterminacy { +} diff --git a/src/main/java/com/redhat/darcy/ui/api/elements/TriStateRadio.java b/src/main/java/com/redhat/darcy/ui/api/elements/TriStateRadio.java new file mode 100644 index 0000000..e85b89a --- /dev/null +++ b/src/main/java/com/redhat/darcy/ui/api/elements/TriStateRadio.java @@ -0,0 +1,23 @@ +/* + Copyright 2014 Red Hat, Inc. and/or its affiliates. + + This file is part of darcy-ui. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ + +package com.redhat.darcy.ui.api.elements; + +public interface TriStateRadio extends Radio, HasIndeterminacy { +}