org.kde.koala
Class KNamedCommand

java.lang.Object
  extended by org.kde.koala.KCommand
      extended by org.kde.koala.KNamedCommand
All Implemented Interfaces:
org.kde.qt.QtSupport
Direct Known Subclasses:
KMacroCommand

public class KNamedCommand
extends KCommand

A command which stores its name. It is more memory-efficient to use KCommand and to implement the name() method, but in some cases it's more simple or more flexible to store the name at creation time.


Constructor Summary
protected KNamedCommand(java.lang.Class dummy)
           
 
Method Summary
 java.lang.String name()
           
 void setName(java.lang.String name)
          Updates the name of this command.
 
Methods inherited from class org.kde.koala.KCommand
execute, unexecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KNamedCommand

protected KNamedCommand(java.lang.Class dummy)
Method Detail

name

public java.lang.String name()
Overrides:
name in class KCommand
Returns:
the name of this command

setName

public void setName(java.lang.String name)
Updates the name of this command. Rarely necessary.