com.supermap.data
Class DatasetGroupRenamingEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.supermap.data.DatasetGroupRenamingEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class DatasetGroupRenamingEvent extends java.util.EventObject
Indicates an event in which the dataset grouping name was modified.This event is triggered before the dataset name is modified.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DatasetGroupRenamingEvent(java.lang.Object source, java.lang.String oldName, java.lang.String newName, boolean cancel)
Construct a new object of DatasetGroupRenamingEvent based on the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getNewName()
Returns a new name for the dataset grouping.java.lang.String
getOldName()
Returns the original name of the dataset grouping.boolean
isCancel()
Returns a value that indicates whether the event should be canceled.void
setCancel(boolean value)
Set a value that indicates whether the event should be canceled.void
setNewName(java.lang.String value)
Set a new name for the dataset grouping.
-
-
-
Constructor Detail
-
DatasetGroupRenamingEvent
public DatasetGroupRenamingEvent(java.lang.Object source, java.lang.String oldName, java.lang.String newName, boolean cancel)
Construct a new object of DatasetGroupRenamingEvent based on the given parameters.- Parameters:
source
- object to initiate the event.oldName
- The name of the dataset grouping that will be renamed.newName
- The new name of the dataset grouping.cancel
- indicates whether the event should be canceled. True if the event should be canceled; false otherwise.
-
-
Method Detail
-
getOldName
public java.lang.String getOldName()
Returns the original name of the dataset grouping.- Returns:
- The original name of the dataset grouping.
-
getNewName
public java.lang.String getNewName()
Returns a new name for the dataset grouping.- Returns:
- The new name of the dataset grouping.
-
setNewName
public void setNewName(java.lang.String value)
Set a new name for the dataset grouping.- Parameters:
new
- name for the value dataset grouping.
-
isCancel
public boolean isCancel()
Returns a value that indicates whether the event should be canceled.- Returns:
- A Boolean value that indicates whether the event should be canceled, true representing the event should be canceled.
-
setCancel
public void setCancel(boolean value)
Set a value that indicates whether the event should be canceled.- Parameters:
value
- is a Boolean value that indicates whether the event should be canceled, true means that the event should be canceled.
-
-