Interface IPageConfiguration<T>
- Type Parameters:
T- the type of the selected object
Page in the property panel.- Author:
- Ionov Ivan
-
Method Summary
Modifier and TypeMethodDescriptioncustomLabel(Function<T, String> customLabel) Sets the whole property panel header, replacing thedescription (type)form.Sets whether the fields of the page can be edited for the selected object.featurePaths(org.eclipse.emf.databinding.FeaturePath... featurePaths) Adds EMF feature paths whose changes update the header.features(org.eclipse.emf.ecore.EStructuralFeature... features) Adds EMF features whose changes update the header.objectDescription(Function<T, String> objectDescription) Sets the description part of the property panel header, shown before the parentheses.objectTypeName(Function<T, String> objectTypeName) Sets the type part of the property panel header, shown in parentheses.pagePriority(ToIntFunction<T> pagePriority) Sets the index of the page among the pages of its tab.tabPriority(ToDoubleFunction<T> tabPriority) Sets the position of the page tab in the tab column.Sets whether the page is shown for the selected object.
-
Method Details
-
visible
Sets whether the page is shown for the selected object. By default the page is always shown.- Parameters:
visible- the condition on the selected object- Returns:
- this configuration
-
enabled
Sets whether the fields of the page can be edited for the selected object. A field is enabled only when both its section and the page are enabled. By default the page is enabled.- Parameters:
enabled- the condition on the selected object- Returns:
- this configuration
-
tabPriority
Sets the position of the page tab in the tab column. A smaller value places the tab higher. -1, the default, means the priority is not set. Overrides the value fromIPropertyConfiguration.defaultTabPriority(java.util.function.BiConsumer).- Parameters:
tabPriority- the priority for the selected object- Returns:
- this configuration
-
pagePriority
Sets the index of the page among the pages of its tab. With -1, the default, pages for more general types go above pages for more specific types, and pages for the same type follow the order ofPropertyPart.getPages(). An index greater than the number of pages places the page last.- Parameters:
pagePriority- the index for the selected object- Returns:
- this configuration
-
objectTypeName
Sets the type part of the property panel header, shown in parentheses. If the function returns null, the simple class name of the object is used.The header has the form
description (type). Line breaks in the description are replaced with spaces, and a long description is cut toIPropertyConfiguration.maxLabelLength(int)characters with an ellipsis. IfcustomLabel(Function)returns a non-null value, the header is that text only. If several pages provide a value, the page for the most specific type wins.- Parameters:
objectTypeName- the function that returns the type name- Returns:
- this configuration
-
objectDescription
Sets the description part of the property panel header, shown before the parentheses. If the function returns null, the simple class name of the object is used.The header has the form
description (type). Line breaks in the description are replaced with spaces, and a long description is cut toIPropertyConfiguration.maxLabelLength(int)characters with an ellipsis. IfcustomLabel(Function)returns a non-null value, the header is that text only. If several pages provide a value, the page for the most specific type wins.- Parameters:
objectDescription- the function that returns the description- Returns:
- this configuration
-
customLabel
Sets the whole property panel header, replacing thedescription (type)form. If the function returns null, the header is built fromobjectDescription(Function)andobjectTypeName(Function).The header has the form
description (type). Line breaks in the description are replaced with spaces, and a long description is cut toIPropertyConfiguration.maxLabelLength(int)characters with an ellipsis. IfcustomLabel(Function)returns a non-null value, the header is that text only. If several pages provide a value, the page for the most specific type wins.- Parameters:
customLabel- the function that returns the header text- Returns:
- this configuration
-
features
Adds EMF features whose changes update the header. Works only forEmfPage.- Parameters:
features- the features to observe- Returns:
- this configuration
-
featurePaths
Adds EMF feature paths whose changes update the header. Works only forEmfPage.- Parameters:
featurePaths- the feature paths to observe- Returns:
- this configuration
-