| java.lang.Object org.columba.core.command.Command org.columba.mail.folder.command.CreateVFolderOnMessageCommand
CreateVFolderOnMessageCommand | public class CreateVFolderOnMessageCommand extends Command (Code) | | This class is used to create a virtual folder based on the currently
selected message (if multiple selected, the first one in the selection array
is used) - either using Subject, To or From.
author: Karl Peder Olesen (karlpeder), 20030621 |
Method Summary | |
public VirtualFolder | createVirtualFolder(String folderName, String headerField, String pattern, IMailbox parent) Private utility for creating a virtual folder on a given headerfield. | public void | execute(IWorkerStatusController worker) This method generates a virtual folder based on Subject, From or To
(depending on parameter transferred to constructor) of the currently
selected message. | public void | updateGUI() Displays search dialog for user modifications after creation of the
virtual folder in execute. |
VFOLDER_ON_FROM | final public static String VFOLDER_ON_FROM(Code) | | Used for creating a virtual folder based on From
|
VFOLDER_ON_SUBJECT | final public static String VFOLDER_ON_SUBJECT(Code) | | Used for creating a virtual folder based on Subject
|
VFOLDER_ON_TO | final public static String VFOLDER_ON_TO(Code) | | Used for creating a virtual folder based on To
|
CreateVFolderOnMessageCommand | public CreateVFolderOnMessageCommand(IFrameMediator frameController, ICommandReference reference, String vfolderType)(Code) | | Constructor for CreateVFolderOnMessageCommand. Calls super constructor
and saves flag for which kind of virtual folder to create. Default for
filter type is FILTER_ON_SUBJECT.
Parameters: frameMediator - Parameters: references - Parameters: vfolderType - Which type of filter to create. Used defined constants |
createVirtualFolder | public VirtualFolder createVirtualFolder(String folderName, String headerField, String pattern, IMailbox parent)(Code) | | Private utility for creating a virtual folder on a given headerfield.
The criteria used is "contains".
Parameters: folderName - Name of virtual folder Parameters: headerField - The header field to base virtual folder on Parameters: pattern - The pattern to use in the virtual folder Parameters: parent - Parent folder The filter created |
execute | public void execute(IWorkerStatusController worker) throws Exception(Code) | | This method generates a virtual folder based on Subject, From or To
(depending on parameter transferred to constructor) of the currently
selected message.
Parameters: worker - See Also: org.columba.api.command.Command.execute(Worker) |
updateGUI | public void updateGUI() throws Exception(Code) | | Displays search dialog for user modifications after creation of the
virtual folder in execute. Also refreshes the tree view.
See Also: org.columba.api.command.Command.updateGUI |
|
|