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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(CmsEditableGroup group) Needs to be called initially with the group for which this is used.voidsetEmpty(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_EmptyHandlerNeeds to be called initially with the group for which this is used.- Specified by:
initin interfaceCmsEditableGroup.I_EmptyHandler- Parameters:
group- the group- See Also:
-
setEmpty
Description copied from interface:CmsEditableGroup.I_EmptyHandlerCalled when the group changes from empty to not empty, or vice versa.- Specified by:
setEmptyin interfaceCmsEditableGroup.I_EmptyHandler- Parameters:
empty- true if the group is empty- See Also:
-