private GanttChartStyle getGanttChartStyle() { return getData().getStyle(); }
@Override protected void onSaveOrModify(final GanttChartDO obj) { final String styleAsXml = XmlObjectWriter.writeAsXml(obj.getStyle()); obj.setStyleAsXml(styleAsXml); final String settingsAsXml = XmlObjectWriter.writeAsXml(obj.getSettings()); obj.setSettingsAsXml(settingsAsXml); }
fs.add(new MinMaxNumberField<Integer>(fs.getTextFieldId(), new PropertyModel<Integer>(data.getStyle(), "width"), 100, 10000)); fs.add(new MinMaxNumberField<Double>(fs.getTextFieldId(), new PropertyModel<Double>(data.getStyle(), "totalLabelWidth"), 10.0, 10000.0)); checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(data.getStyle(), "relativeTimeValues"), getString("gantt.style.relativeTimeValues")); checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(data.getStyle(), "showToday"), getString("gantt.style.showToday")); checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(data.getStyle(), "showCompletion"), getString("gantt.style.showCompletion")); checkBoxPanel.add(new CheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(getSettings(), "showOnlyVisibles"), getString("gantt.settings.showOnlyVisibles")) {