@ClientOnly public class RenameActionFactory extends Object
RenameActions
for a
DockController
. There is one action created for each Class
,
these actions are not removed before this factory is collected by the
garbage collector.Constructor and Description |
---|
RenameActionFactory(DockController controller)
Creates a new factory
|
Modifier and Type | Method and Description |
---|---|
protected RenameAction |
create(Class<?> owner)
Creates a new action for the specified type.
|
protected RenameAction |
find(Class<?> owner)
Searches or creates a
RenameAction for owner . |
RenameAction |
find(Dockable owner)
Gets an action for
owner . |
DockController |
getController()
Gets the controller which is used to create the actions.
|
public RenameActionFactory(DockController controller)
controller
- the controller for which actions will be createdpublic DockController getController()
public RenameAction find(Dockable owner)
owner
.owner
- the Dockable for which an action is searchedprotected RenameAction find(Class<?> owner)
RenameAction
for owner
.owner
- the owner for which an action is searchednull
if no rule for owner
was foundprotected RenameAction create(Class<?> owner)
DefaultDockable
,
SplitDockStation
, FlapDockStation
and StackDockStation
.owner
- the type for which the action is created