|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.action.actions.RenameActionFactory
public class RenameActionFactory
A factory creating RenameActions
for a
DockController
. Note that actions created by this factory
are never deleted unless the factory and its DockController
are
deleted.
Field Summary | |
---|---|
private java.util.Map<java.lang.Class<?>,RenameAction> |
actions
Already created actions |
private DockController |
controller
The controller for which actions are created |
Constructor Summary | |
---|---|
RenameActionFactory(DockController controller)
Creates a new factory |
Method Summary | |
---|---|
protected RenameAction |
create(java.lang.Class<?> owner)
Creates a new action for the specified type |
protected RenameAction |
find(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DockController controller
private java.util.Map<java.lang.Class<?>,RenameAction> actions
Constructor Detail |
---|
public RenameActionFactory(DockController controller)
controller
- the controller for which actions will be createdMethod Detail |
---|
public DockController getController()
public RenameAction find(Dockable owner)
owner
.
owner
- the Dockable for which an action is searched
protected RenameAction find(java.lang.Class<?> owner)
RenameAction
for owner
.
owner
- the owner for which an action is searched
null
if no rule for owner
was foundprotected RenameAction create(java.lang.Class<?> owner)
owner
- the type for which the action is created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |