Class PropertySheet
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.grid.Grid<AbstractProperty>
-
- org.neotropic.util.visual.properties.PropertySheet
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.grid.Grid<AbstractProperty>>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.Focusable<com.vaadin.flow.component.grid.Grid<AbstractProperty>>
,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.grid.Grid<AbstractProperty>>
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasTheme
,com.vaadin.flow.data.binder.HasDataProvider<AbstractProperty>
,com.vaadin.flow.data.binder.HasItems<AbstractProperty>
,com.vaadin.flow.data.event.SortEvent.SortNotifier<com.vaadin.flow.component.grid.Grid<AbstractProperty>,com.vaadin.flow.component.grid.GridSortOrder<AbstractProperty>>
,com.vaadin.flow.data.provider.HasDataGenerators<AbstractProperty>
,Serializable
- Direct Known Subclasses:
OutsidePlantAccordion.BusinessObjectPropertySheet
,OutsidePlantAccordion.MapPropertySheet
,OutsidePlantAccordion.ViewPropertySheet
@JsModule("@vaadin/vaadin-lumo-styles/presets/compact.js") public class PropertySheet extends com.vaadin.flow.component.grid.Grid<AbstractProperty>
An embeddable property sheet.- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PropertySheet.IPropertyValueChangedListener
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.grid.Grid
com.vaadin.flow.component.grid.Grid.AbstractGridExtension<T extends Object>, com.vaadin.flow.component.grid.Grid.Column<T extends Object>, com.vaadin.flow.component.grid.Grid.DataCommunicatorBuilder<T extends Object,U extends com.vaadin.flow.data.provider.ArrayUpdater>, com.vaadin.flow.component.grid.Grid.SelectionMode, com.vaadin.flow.component.grid.Grid.UpdateQueue
-
-
Constructor Summary
Constructors Constructor Description PropertySheet(TranslationService ts)
PropertySheet(TranslationService ts, boolean showAdvancedEditorColumn)
PropertySheet(TranslationService ts, List<AbstractProperty> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyValueChangedListener(PropertySheet.IPropertyValueChangedListener iPropertyValueChangedListener)
com.vaadin.flow.server.StreamResource
buildIcon(String name, byte[] icon)
Builds an icon resourcevoid
clear()
void
firePropertyValueChangedEvent(AbstractProperty property)
byte[]
getIcon(Color color, int width, int height)
Creates (or retrieves a cached version) of a squared colored iconboolean
isReadOnly()
void
setReadOnly(boolean readOnly)
void
undoLastEdit()
void
updateLabel(String value, com.vaadin.flow.component.html.Anchor link, com.vaadin.flow.component.html.Label label)
Updates the anchor link for URL string properties-
Methods inherited from class com.vaadin.flow.component.grid.Grid
addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumnReorderListener, addColumnResizeListener, addColumns, addComponentColumn, addContextMenu, addDataGenerator, addDragEndListener, addDragStartListener, addDropListener, addFirstHeaderRow, addItemClickListener, addItemDoubleClickListener, addSelectionListener, addSortListener, addThemeVariants, addValueProvider, appendFooterRow, appendHeaderRow, asMultiSelect, asSingleSelect, compareMaybeComparables, createColumn, createColumnId, createDefaultArrayUpdater, createEditor, createSortingComparator, deselect, deselectAll, getArrayUpdater, getBeanType, getClassNameGenerator, getColumnByKey, getColumnLayers, getColumns, getDataCommunicator, getDataProvider, getDefaultColumnFactory, getDefaultHeaderRow, getDragFilter, getDropFilter, getDropMode, getEditor, getFooterRows, getHeaderRows, getPageSize, getPropertySet, getSelectedItems, getSelectionModel, getSortOrder, getUniqueKeyProperty, getUniqueKeyProvider, initConnector, insertColumnLayer, isColumnReorderingAllowed, isDetailsVisible, isDetailsVisibleOnClick, isHeightByRows, isMultiSort, isRowsDraggable, isVerticalScrollingEnabled, onAttach, onDataProviderChange, onDetach, onEnabledStateChanged, prependFooterRow, prependHeaderRow, recalculateColumnWidths, removeAllColumns, removeColumn, removeColumnByKey, removeColumnLayer, removeColumns, removeDataGenerator, removeThemeVariants, scrollToEnd, scrollToIndex, scrollToStart, select, setClassNameGenerator, setColumnKey, setColumnOrder, setColumnOrder, setColumnReorderingAllowed, setColumns, setDataProvider, setDetailsVisible, setDetailsVisibleOnClick, setDragDataGenerator, setDragFilter, setDropFilter, setDropMode, setHeightByRows, setItemDetailsRenderer, setMultiSort, setPageSize, setRowsDraggable, setSelectionDragDetails, setSelectionMode, setSelectionModel, setSortableColumns, setUniqueKeyProperty, setUniqueKeyProvider, setVerticalScrollingEnabled, sort, updateSelectionModeOnClient
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
-
-
-
-
Constructor Detail
-
PropertySheet
public PropertySheet(TranslationService ts)
-
PropertySheet
public PropertySheet(TranslationService ts, boolean showAdvancedEditorColumn)
-
PropertySheet
public PropertySheet(TranslationService ts, List<AbstractProperty> properties)
-
-
Method Detail
-
isReadOnly
public boolean isReadOnly()
-
setReadOnly
public void setReadOnly(boolean readOnly)
-
clear
public void clear()
-
undoLastEdit
public void undoLastEdit()
-
firePropertyValueChangedEvent
public void firePropertyValueChangedEvent(AbstractProperty property)
-
addPropertyValueChangedListener
public void addPropertyValueChangedListener(PropertySheet.IPropertyValueChangedListener iPropertyValueChangedListener)
-
getIcon
public byte[] getIcon(Color color, int width, int height)
Creates (or retrieves a cached version) of a squared colored icon- Parameters:
color
- The color of the iconwidth
- The width of the iconheight
- The height of the icon- Returns:
- The icon as a byte array
-
buildIcon
public com.vaadin.flow.server.StreamResource buildIcon(String name, byte[] icon)
Builds an icon resource- Parameters:
name
- the name of the resourceicon
- the icon as byte array- Returns:
- An icon resource which is not registry
-
updateLabel
public void updateLabel(String value, com.vaadin.flow.component.html.Anchor link, com.vaadin.flow.component.html.Label label)
Updates the anchor link for URL string properties- Parameters:
value
- the string to checklink
- the anchor componentlabel
- the label component that shows the property
-
-