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 java.lang.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 Constructor Description AddButtonEmptyHandler(java.lang.String addButtonText)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
AddButtonEmptyHandler
public AddButtonEmptyHandler(java.lang.String addButtonText)
Creates a new instance.- Parameters:
addButtonText
- the text for the Add button
-
-
Method Detail
-
init
public void init(CmsEditableGroup group)
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:
CmsEditableGroup.I_EmptyHandler.init(org.opencms.ui.components.editablegroup.CmsEditableGroup)
-
setEmpty
public void setEmpty(boolean empty)
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:
CmsEditableGroup.I_EmptyHandler.setEmpty(boolean)
-
-