Class CmsEditableGroup.AddButtonEmptyHandler
java.lang.Object
org.opencms.ui.components.editablegroup.CmsEditableGroup.AddButtonEmptyHandler
- All Implemented Interfaces:
CmsEditableGroup.I_EmptyHandler
- Enclosing class:
- CmsEditableGroup
public static class CmsEditableGroup.AddButtonEmptyHandler
extends Object
implements CmsEditableGroup.I_EmptyHandler
Empty handler which shows or hides an 'Add' button to add new rows, depending on whether the group is empty.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(CmsEditableGroup group) Needs to be called initially with the group for which this is used.void
setEmpty
(boolean empty) Called when the group changes from empty to not empty, or vice versa.
-
Constructor Details
-
AddButtonEmptyHandler
Creates a new instance.- Parameters:
addButtonText
- the text for the Add button
-
-
Method Details
-
init
Description copied from interface:CmsEditableGroup.I_EmptyHandler
Needs to be called initially with the group for which this is used.- Specified by:
init
in interfaceCmsEditableGroup.I_EmptyHandler
- Parameters:
group
- the group- See Also:
-
setEmpty
Description copied from interface:CmsEditableGroup.I_EmptyHandler
Called when the group changes from empty to not empty, or vice versa.- Specified by:
setEmpty
in interfaceCmsEditableGroup.I_EmptyHandler
- Parameters:
empty
- true if the group is empty- See Also:
-