Package com.orchestranetworks.ui.form
Interface UIExpandCollapseBlock
-
public interface UIExpandCollapseBlockIn the context of a form, specifies an expand/collapse block specification.By default, this specification represents a collapsed block with an empty title.
To write it into a form, use
UIComponentWriter.startExpandCollapseBlock(UIExpandCollapseBlock).Note: The expand/collapse block must be terminated using UIComponentWriter.endExpandCollapseBlock().
- Since:
- 5.8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcollapse()Makes the block rendered collapsed.voidexpand()Makes the block rendered expanded.StringgetId()Returns the id previously defined, ornull.UserMessagegetLabel()Returns the previously defined label, or an empty one if none was defined.booleanisCollapsed()Returnstrueif the component is configured to be rendered collapsed.voidsetId(String anId)Sets an id for the expand/collapse block.voidsetLabel(UserMessage aLabel)Sets the label of the expand/collapse block.voidsetLabel(String aLabel)Sets the label of the expand/collapse block.
-
-
-
Method Detail
-
setLabel
void setLabel(String aLabel)
Sets the label of the expand/collapse block.aLabelmust not benull.- Parameters:
aLabel- the label to set
-
setLabel
void setLabel(UserMessage aLabel)
Sets the label of the expand/collapse block.aLabelmust not benull.- Parameters:
aLabel- the label to set
-
getLabel
UserMessage getLabel()
Returns the previously defined label, or an empty one if none was defined.Never returns
null.
-
expand
void expand()
Makes the block rendered expanded.
-
collapse
void collapse()
Makes the block rendered collapsed.
-
isCollapsed
boolean isCollapsed()
Returnstrueif the component is configured to be rendered collapsed.If
expand()norcollapse()have not been called yet, returnstrue.
-
setId
void setId(String anId)
Sets an id for the expand/collapse block.When components ordering is dynamic over pages refresh (that is, their order depends on the record state, or any other parameter), it is recommended to invoke this method with a stable identifier, to ensure the block state remains the same if the page is redisplayed after a page submit.
- Parameters:
anId- The id to set for the block; the id attribute must respect the W3C Recommendation (in particular, by being unique in the page).- See Also:
- https://www.w3.org/TR/REC-html40/struct/global.html#adef-id
-
getId
String getId()
Returns the id previously defined, ornull.
-
-