Class RefactorFormElementNameEvent
- java.lang.Object
-
- de.xima.fc.gui.bean.designer.event.RefactorFormElementNameEvent
-
- All Implemented Interfaces:
IDesignerConversationEvent
,IApplicationEvent
,ISessionConversationEvent
,ISessionEvent
,Serializable
public class RefactorFormElementNameEvent extends Object
Event that is triggered when the name of a form element was refactored. Listeners may perform additional refactoring in their context (e.g. the workflow designer context might refactor placeholders in workflow actions etc.)- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RefactorFormElementNameEvent(EContentView contentView, String oldName, String newName, boolean renameInWorkflow, boolean renameInProjectJavaScript, boolean renameInProjectStyleSheet)
A new POJO with the given data.RefactorFormElementNameEvent(String sourceTabId, String oldName, String newName, boolean renameInWorkflow, boolean renameInProjectJavaScript, boolean renameInProjectStyleSheet)
A new POJO with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNewName()
String
getOldName()
String
getSourceTabId()
boolean
isRenameInProjectFiles()
boolean
isRenameInProjectJavaScript()
boolean
isRenameInProjectStyleSheet()
boolean
isRenameInWorkflow()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.gui.bean.designer.event.IDesignerConversationEvent
getSourceTabView
-
-
-
-
Constructor Detail
-
RefactorFormElementNameEvent
public RefactorFormElementNameEvent(EContentView contentView, String oldName, String newName, boolean renameInWorkflow, boolean renameInProjectJavaScript, boolean renameInProjectStyleSheet)
A new POJO with the given data.- Parameters:
contentView
- Content view whoseEContentView.getId()
will be returned byIDesignerConversationEvent.getSourceTabId()
.oldName
- Value returned bygetOldName()
.newName
- Value returned bygetNewName()
.renameInWorkflow
- Value returned byisRenameInWorkflow()
.renameInProjectJavaScript
- Value returned byisRenameInProjectJavaScript()
.renameInProjectStyleSheet
- Value returned byisRenameInProjectStyleSheet()
.
-
RefactorFormElementNameEvent
public RefactorFormElementNameEvent(String sourceTabId, String oldName, String newName, boolean renameInWorkflow, boolean renameInProjectJavaScript, boolean renameInProjectStyleSheet)
A new POJO with the given data.- Parameters:
sourceTabId
- Value returned byIDesignerConversationEvent.getSourceTabId()
.oldName
- Value returned bygetOldName()
.newName
- Value returned bygetNewName()
.renameInWorkflow
- Value returned byisRenameInWorkflow()
.renameInProjectJavaScript
- Value returned byisRenameInProjectJavaScript()
.renameInProjectStyleSheet
- Value returned byisRenameInProjectStyleSheet()
.
-
-
Method Detail
-
getNewName
public String getNewName()
- Returns:
- Then new name of the form element after it got refactored.
-
getOldName
public String getOldName()
- Returns:
- The old name of the form element (before it got refactored).
-
isRenameInProjectFiles
public boolean isRenameInProjectFiles()
- Returns:
- Whether placeholders in project files should be renamed.
-
isRenameInProjectJavaScript
public boolean isRenameInProjectJavaScript()
- Returns:
- Whether placeholders in project JavaScript files should be renamed.
-
isRenameInProjectStyleSheet
public boolean isRenameInProjectStyleSheet()
- Returns:
- Whether placeholders in project CSS files should be renamed.
-
isRenameInWorkflow
public boolean isRenameInWorkflow()
- Returns:
- Whether placeholders in the workflow should be renamed.
-
getSourceTabId
public String getSourceTabId()
- Specified by:
getSourceTabId
in interfaceIDesignerConversationEvent
- Returns:
- ID of the tab (see
TabModel.getId()
) that issued the event. Empty string if the event was issued by the designer parent frame.
-
-