Enum Class Conlet.RenderMode
- All Implemented Interfaces:
Serializable
,Comparable<Conlet.RenderMode>
,Constable
- Enclosing interface:
Conlet
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionProvide content that is to be embedded in an area of the console page (seeAddConletType.addPageContent(String, java.util.Map)
) or in some other conlet’s content (seeRenderConlet
).Provide a dialog for modifying a conlet instance’s properties, typically by opening a modal dialog (seeOpenModalDialog
).Modifier, forces rendered view to be put in foreground.Provide help information, typically by opening a modal dialog (seeOpenModalDialog
) or using a notification (seeDisplayNotification
).Provide content to display in a card on the overview tab (by firing aRenderConlet
event).Modifier, indicates that aPreview
may not be removed.Provide content to display in a tab of its own (by firing aRenderConlet
event). -
Field Summary
Modifier and TypeFieldDescriptionstatic final Set
<Conlet.RenderMode> The basic modes (the modes without modifiers). -
Method Summary
Modifier and TypeMethodDescriptionaddModifiers
(Set<Conlet.RenderMode> modifiers) Adds the modifiers from the given set to this basic mode.static Set
<Conlet.RenderMode> asSet
(Conlet.RenderMode... modes) Utility method that creates aSet
of render modes from enumerated values.static Set
<Conlet.RenderMode> modifiers
(Set<Conlet.RenderMode> modes) Retrieves the modifiers.static Conlet.RenderMode
Returns the enum constant of this class with the specified name.static Conlet.RenderMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Preview
Provide content to display in a card on the overview tab (by firing aRenderConlet
event). -
View
Provide content to display in a tab of its own (by firing aRenderConlet
event). -
Edit
Provide a dialog for modifying a conlet instance’s properties, typically by opening a modal dialog (seeOpenModalDialog
). -
Help
Provide help information, typically by opening a modal dialog (seeOpenModalDialog
) or using a notification (seeDisplayNotification
). -
Content
Provide content that is to be embedded in an area of the console page (seeAddConletType.addPageContent(String, java.util.Map)
) or in some other conlet’s content (seeRenderConlet
).Conlets that want to include another conlet’s “content” must generate an HTML element as container (typically a
div
orspan
) with an attribute “data-conlet-type” and classes “conlet conlet-content”. Additional attributes “data-conlet-…” are considered properties of the conlet instance to be added and are passed to the server with theAddConletRequest
.Property “id” may be used if already known, but is usually assigned later by the component implementation when the component is rendered. Property “state” is reserved. Its value is provided by the console. The handler for
AddConletRequest
should pass the value of “state” back as attributedata-conlet-state
of the root (or first) element of the content. This allows the console to match the content provided with the conlet content container that caused the request. -
StickyPreview
Modifier, indicates that aPreview
may not be removed. -
Foreground
Modifier, forces rendered view to be put in foreground.
-
-
Field Details
-
basicModes
The basic modes (the modes without modifiers).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
asSet
Utility method that creates aSet
of render modes from enumerated values.- Parameters:
modes
- the modes- Returns:
- the sets the
-
modifiers
Retrieves the modifiers. -
addModifiers
Adds the modifiers from the given set to this basic mode.- Parameters:
modifiers
- the set with modifiers- Returns:
- the augmented basic mode
-