summaryrefslogtreecommitdiff
path: root/src/main/java/sevenUnitsGUI/View.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/sevenUnitsGUI/View.java')
-rw-r--r--src/main/java/sevenUnitsGUI/View.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/sevenUnitsGUI/View.java b/src/main/java/sevenUnitsGUI/View.java
index b2d2b94..bb810ec 100644
--- a/src/main/java/sevenUnitsGUI/View.java
+++ b/src/main/java/sevenUnitsGUI/View.java
@@ -26,11 +26,13 @@ import sevenUnits.utils.NameSymbol;
* An object that controls user interaction with 7Units
*
* @author Adrien Hopkins
+ * @since v0.4.0
* @since 2021-12-15
*/
public interface View {
/**
* @return a new tabbed view
+ * @since v0.4.0
* @since 2022-04-19
*/
static View createTabbedView() {
@@ -39,18 +41,21 @@ public interface View {
/**
* @return the presenter associated with this view
+ * @since v0.4.0
* @since 2022-04-19
*/
Presenter getPresenter();
/**
* @return name of prefix currently being viewed
+ * @since v0.4.0
* @since 2022-04-10
*/
Optional<String> getViewedPrefixName();
/**
* @return name of unit currently being viewed
+ * @since v0.4.0
* @since 2022-04-10
*/
Optional<String> getViewedUnitName();
@@ -60,6 +65,7 @@ public interface View {
* viewer
*
* @param prefixNames prefix names to view
+ * @since v0.4.0
* @since 2022-04-10
*/
void setViewablePrefixNames(Set<String> prefixNames);
@@ -68,6 +74,7 @@ public interface View {
* Sets the list of units that are available to be viewed in a unit viewer
*
* @param unitNames unit names to view
+ * @since v0.4.0
* @since 2022-04-10
*/
void setViewableUnitNames(Set<String> unitNames);
@@ -78,6 +85,7 @@ public interface View {
* @param title title of error message; on any view that uses an error
* dialog, this should be the title of the error dialog.
* @param message error message
+ * @since v0.4.0
* @since 2021-12-15
*/
void showErrorMessage(String title, String message);
@@ -87,6 +95,7 @@ public interface View {
*
* @param name name(s) and symbol of prefix
* @param multiplierString string representation of prefix multiplier
+ * @since v0.4.0
* @since 2022-04-10
*/
void showPrefix(NameSymbol name, String multiplierString);
@@ -98,6 +107,7 @@ public interface View {
* @param definition unit's definition string
* @param dimensionName name of unit's dimension
* @param type type of unit (metric/semi-metric/non-metric)
+ * @since v0.4.0
* @since 2022-04-10
*/
void showUnit(NameSymbol name, String definition, String dimensionName,