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 voidcancel()Cancels the edit process.voidsave(java.lang.String value)Saves the value.voidstart()Starts the edit process.voidtextChange(com.vaadin.v7.event.FieldEvents.TextChangeEvent event)voidvalidate(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:
cancelin interfaceI_CmsFilePropertyEditHandler- See Also:
I_CmsFilePropertyEditHandler.cancel()
-
save
public void save(java.lang.String value)
Description copied from interface:I_CmsFilePropertyEditHandlerSaves the value.- Specified by:
savein 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_CmsFilePropertyEditHandlerStarts the edit process.- Specified by:
startin interfaceI_CmsFilePropertyEditHandler- See Also:
I_CmsFilePropertyEditHandler.start()
-
textChange
public void textChange(com.vaadin.v7.event.FieldEvents.TextChangeEvent event)
- Specified by:
textChangein 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:
validatein interfacecom.vaadin.v7.data.Validator- Throws:
com.vaadin.v7.data.Validator.InvalidValueException- See Also:
com.vaadin.data.Validator#validate(java.lang.Object)
-
-