public interface Renameable
Modifier and Type | Method and Description |
---|---|
Font |
getFont()
method should return the font that is used in the component that displays
the name to change.
|
String |
getName()
this method returns the name of the object, so that it can be displayed
at the beginning of the rename process
|
boolean |
isMultiLine()
this method should be implemented in a way that allows it to return true,
if a MultiLineRenamer is needed, or false if a SingleLineRenamer is
sufficient.
|
boolean |
isValidName(String name)
this method tests whether the new name of the object is valid or invalid
|
void |
setName(String name)
this method sets the new name to the object it is called by
|
boolean isMultiLine()
boolean isValidName(String name)
name
- the new name, which should be tested if it is a valid oneFont getFont()
String getName()
void setName(String name)
name
- the name, which should be set