net.officefloor.eclipse.configurer.internal.ValueInputContext Maven / Gradle / Ivy
/*
* OfficeFloor - http://www.officefloor.net
* Copyright (C) 2005-2018 Daniel Sagenschneider
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package net.officefloor.eclipse.configurer.internal;
import javafx.beans.property.Property;
import net.officefloor.eclipse.configurer.Actioner;
import net.officefloor.eclipse.configurer.Builder;
import net.officefloor.eclipse.configurer.ErrorListener;
import net.officefloor.eclipse.configurer.ValueValidator;
/**
* Context for the {@link ValueInput}.
*
* @author Daniel Sagenschneider
*/
public interface ValueInputContext {
/**
* Obtains the model.
*
* @return Model.
*/
M getModel();
/**
* Obtains the value.
*
* @return Value.
*/
Property getInputValue();
/**
* Adds a {@link ValueValidator}.
*
* @param validator
* {@link ValueValidator}.
*/
void addValidator(ValueValidator validator);
/**
* Triggers reload of the value from the model for the {@link Builder}.
*
* @param builder
* {@link Builder} to identify the value from the model to reload.
*/
void reload(Builder, ?, ?> builder);
/**
* Refreshes the error.
*/
void refreshError();
/**
* Obtains the {@link Actioner}.
*
* @return {@link Actioner}.
*/
Actioner getOptionalActioner();
/**
* Obtains the dirty {@link Property}.
*
* @return Dirty {@link Property}.
*/
Property dirtyProperty();
/**
* Obtains the valid {@link Property}.
*
* @return Valid {@link Property}.
*/
Property validProperty();
/**
* Obtains the {@link ErrorListener}.
*
* @return {@link ErrorListener}.
*/
ErrorListener getErrorListener();
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy