User Tools

Site Tools


zalozeni:grafika:experimenttabs:info

Informace o mereni

ExperimentTabsController poskytuje metodu

public GraphicControllerDTO getInfoTabGCDTO() {
	return AnchorPaneHelper.loadFXPaneByName(ExperimentInfoPaneController.class.getResource("ExperimentInfoPane.fxml"));
}

ktera z marklar-fx-common vycita ExperimentInfoPaneController. Tento controller se pta ExperimentTypeGraphicFactory o grafiku s dodatecnymi informacemi o mereni a jiz sam zakladni informace vypisuje. Tato grafika je zprostredkovana nasledujicim controllerem, ktery dedi od ExperimentInstanceController.

public class DokuwikiInfoPaneController extends ExperimentInstanceController {
 
	@FXML
	private Label lblTemp;
 
	private DokuwikiExpInstanceSettignsService instanceSS;
 
	@Override
	public void initialize(URL location, ResourceBundle resources) {
		// TODO Auto-generated method stub
	}
 
	@Override
	public void setExpInstance(ExperimentInstance expInstance) {
		super.setExpInstance(expInstance);
		instanceSS = (DokuwikiExpInstanceSettignsService) expInstance.getSettignsService();
		repaint();
	}
 
	@Override
	public void repaint() {
		if (instanceSS == null)
			return;
 
		try {
			lblTemp.setText(DecimalHelper.toString(instanceSS.getInitSize(), 1));
		} catch (ValueNotFoundException e) {
			lblTemp.setText("");
		}
	}
 
	@Override
	public void newData(Object dataRow) {
		// TODO Auto-generated method stub
	}
 
}
zalozeni/grafika/experimenttabs/info.txt · Last modified: 2016/07/25 15:28 by jlochman