Class RenameActionFactory
java.lang.Object
bibliothek.gui.dock.facile.action.RenameActionFactory
A factory creating
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.- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RenameActionCreates a new action for the specified type.Gets an action forowner.protected RenameActionSearches or creates aRenameActionforowner.Gets the controller which is used to create the actions.
-
Constructor Details
-
RenameActionFactory
Creates a new factory- Parameters:
controller- the controller for which actions will be created
-
-
Method Details
-
getController
Gets the controller which is used to create the actions.- Returns:
- the controller
-
find
Gets an action forowner.- Parameters:
owner- the Dockable for which an action is searched- Returns:
- the action
-
find
Searches or creates aRenameActionforowner.- Parameters:
owner- the owner for which an action is searched- Returns:
- the action or
nullif no rule forownerwas found
-
create
Creates a new action for the specified type. Subclasses may override this method to support more classes. Currently supported areDefaultDockable,SplitDockStation,FlapDockStationandStackDockStation.- Parameters:
owner- the type for which the action is created- Returns:
- the new action and the type which can use the action.
-