Package org.opencms.ui.contextmenu
Class CmsContextMenuEditHandler
- java.lang.Object
-
- org.opencms.ui.contextmenu.CmsContextMenuEditHandler
-
- All Implemented Interfaces:
com.vaadin.event.ConnectorEventListener
,com.vaadin.event.SerializableEventListener
,com.vaadin.v7.data.Validator
,com.vaadin.v7.event.FieldEvents.TextChangeListener
,java.io.Serializable
,java.util.EventListener
,I_CmsFilePropertyEditHandler
public class CmsContextMenuEditHandler extends java.lang.Object implements I_CmsFilePropertyEditHandler
Handles inline editing within the file table.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsContextMenuEditHandler(CmsUUID editId, CmsResourceTableProperty editProperty, CmsFileTable fileTable, I_CmsDialogContext context)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancels the edit process.void
save(java.lang.String value)
Saves the value.void
start()
Starts the edit process.void
textChange(com.vaadin.v7.event.FieldEvents.TextChangeEvent event)
void
validate(java.lang.Object value)
-
-
-
Constructor Detail
-
CmsContextMenuEditHandler
public CmsContextMenuEditHandler(CmsUUID editId, CmsResourceTableProperty editProperty, CmsFileTable fileTable, I_CmsDialogContext context)
Constructor.- Parameters:
editId
- the content structure ideditProperty
- the property to editfileTable
- the file tablecontext
- the dialog context
-
-
Method Detail
-
cancel
public void cancel()
Cancels the edit process. Unlocks the resource if required.- Specified by:
cancel
in interfaceI_CmsFilePropertyEditHandler
- See Also:
I_CmsFilePropertyEditHandler.cancel()
-
save
public void save(java.lang.String value)
Description copied from interface:I_CmsFilePropertyEditHandler
Saves the value.- Specified by:
save
in interfaceI_CmsFilePropertyEditHandler
- Parameters:
value
- the value to save- See Also:
I_CmsFilePropertyEditHandler.save(java.lang.String)
-
start
public void start()
Description copied from interface:I_CmsFilePropertyEditHandler
Starts the edit process.- Specified by:
start
in interfaceI_CmsFilePropertyEditHandler
- See Also:
I_CmsFilePropertyEditHandler.start()
-
textChange
public void textChange(com.vaadin.v7.event.FieldEvents.TextChangeEvent event)
- Specified by:
textChange
in interfacecom.vaadin.v7.event.FieldEvents.TextChangeListener
- See Also:
com.vaadin.event.FieldEvents.TextChangeListener#textChange(com.vaadin.event.FieldEvents.TextChangeEvent)
-
validate
public void validate(java.lang.Object value) throws com.vaadin.v7.data.Validator.InvalidValueException
- Specified by:
validate
in interfacecom.vaadin.v7.data.Validator
- Throws:
com.vaadin.v7.data.Validator.InvalidValueException
- See Also:
com.vaadin.data.Validator#validate(java.lang.Object)
-
-