Class PrometheusFieldSetFields<T>
java.lang.Object
io.github.tonywasher.joceanus.prometheus.ui.fieldset.PrometheusFieldSetFields<T>
- Type Parameters:
T- the item type
- All Implemented Interfaces:
PrometheusFieldSetPanel<T>,TethysUIComponent
FieldSet Panel.
-
Constructor Summary
ConstructorsConstructorDescriptionPrometheusFieldSetFields(TethysUIFactory<?> pFactory, PrometheusFieldSet<T> pFieldSet) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(MetisDataItem.MetisDataFieldId pFieldId, TethysUIDataEditField<?> pField, Function<T, Object> pValueFactory) Add field to panel.voidAdjust changed indications.voidAdjust the label width.Obtain the underlying component (if any).booleanAre there any visible elements?voidsetEditable(boolean isEditable) Set editable item.voidsetEditable(MetisDataItem.MetisDataFieldId pFieldId, boolean pEditable) Set editable.voidSet item.voidsetReporter(Consumer<String> pReporter) Set reporter.voidsetVisible(MetisDataItem.MetisDataFieldId pFieldId, boolean pVisible) Set visible.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisible
-
Constructor Details
-
PrometheusFieldSetFields
PrometheusFieldSetFields(TethysUIFactory<?> pFactory, PrometheusFieldSet<T> pFieldSet) Constructor.- Parameters:
pFactory- the factorypFieldSet- the fieldSet
-
-
Method Details
-
getUnderlying
Description copied from interface:TethysUIComponentObtain the underlying component (if any).- Specified by:
getUnderlyingin interfaceTethysUIComponent- Returns:
- the underlying component
-
addField
public void addField(MetisDataItem.MetisDataFieldId pFieldId, TethysUIDataEditField<?> pField, Function<T, Object> pValueFactory) Add field to panel.- Parameters:
pFieldId- the fieldIdpField- the edit fieldpValueFactory- the valueFactory
-
adjustLabelWidth
public void adjustLabelWidth()Description copied from interface:PrometheusFieldSetPanelAdjust the label width.- Specified by:
adjustLabelWidthin interfacePrometheusFieldSetPanel<T>
-
isVisible
public boolean isVisible()Description copied from interface:PrometheusFieldSetPanelAre there any visible elements?- Specified by:
isVisiblein interfacePrometheusFieldSetPanel<T>- Returns:
- true/false
-
setItem
Description copied from interface:PrometheusFieldSetPanelSet item.- Specified by:
setItemin interfacePrometheusFieldSetPanel<T>- Parameters:
pItem- the item
-
adjustChanged
public void adjustChanged()Description copied from interface:PrometheusFieldSetPanelAdjust changed indications.- Specified by:
adjustChangedin interfacePrometheusFieldSetPanel<T>
-
setEditable
public void setEditable(boolean isEditable) Description copied from interface:PrometheusFieldSetPanelSet editable item.- Specified by:
setEditablein interfacePrometheusFieldSetPanel<T>- Parameters:
isEditable- true/false
-
setEditable
Description copied from interface:PrometheusFieldSetPanelSet editable.- Specified by:
setEditablein interfacePrometheusFieldSetPanel<T>- Parameters:
pFieldId- the fieldIdpEditable- true/false
-
setVisible
Description copied from interface:PrometheusFieldSetPanelSet visible.- Specified by:
setVisiblein interfacePrometheusFieldSetPanel<T>- Parameters:
pFieldId- the fieldIdpVisible- true/false
-
setReporter
Description copied from interface:PrometheusFieldSetPanelSet reporter.- Specified by:
setReporterin interfacePrometheusFieldSetPanel<T>- Parameters:
pReporter- the reporter
-