public class DragConfiguration extends Object implements DragPoint
DragPoint for an ArooaConfiguration.
This DragPoint only has enough implementation to support the Designer for the configuration. It won't support drag and drop within the configuration. That will be supported by the Design View once the configuration is parsed.
| Constructor and Description |
|---|
DragConfiguration(ArooaConfiguration configuration,
NamespaceMappings namespaceMappings) |
| Modifier and Type | Method and Description |
|---|---|
DragTransaction |
beginChange(ChangeHow how)
Begin a change.
|
String |
copy()
Provide a copy of the configuration at from this DragPoint
as XML.
|
String |
cut()
Copy this
DragPoints configuration and remove it. |
void |
delete()
Remove this DragPoint from it's underlying configuration and
remove any components in the configuration from the
ComponentPool |
<P extends ParseContext<P>> |
parse(P parentContext)
Parse the encapsulated configuration.
|
void |
paste(int index,
String config)
Parse an XML Text configuration and add the resultant component
to this DragPoint with the given index.
|
QTag[] |
possibleChildren()
List the possible children a Drag Point can have for Add Job
functionality.
|
boolean |
supportsCut()
True if this DragPoint supports the cut operation.
|
boolean |
supportsPaste()
True if this DragPoint supports the paste operation.
|
public DragConfiguration(ArooaConfiguration configuration, NamespaceMappings namespaceMappings)
public DragTransaction beginChange(ChangeHow how)
DragPointbeginChange in interface DragPointhow - Should an existing transaction be in progress or not.public <P extends ParseContext<P>> ConfigurationHandle<P> parse(P parentContext) throws ArooaParseException
ArooaConfigurationparse in interface ArooaConfigurationP - The type of the context in which parsing occurs.parentContext - The context in which this configuration will be
parsed. This context will provide the
ArooaHandler, and therefore
subsequent child contexts.ConfigurationHandle. The handle provides access to the context created
as the result of the parse and a way of saving this context back into the configuration.ArooaParseException - If parsing fails.public boolean supportsPaste()
DragPointsupportsPaste in interface DragPointpublic boolean supportsCut()
DragPointsupportsCut in interface DragPointpublic String copy()
DragPointpublic String cut()
DragPointDragPoints configuration and remove it.
This is used by the Web Front end. The Swing UI uses DragPoint.delete().
public void delete()
DragPointComponentPool
This is used by the swing GUI ArooaTransferHandler
to perform the CUT operation.
This operation must be done within the context of a transaction.
public void paste(int index,
String config)
DragPointThis operation must be done within the context of a transaction.
public QTag[] possibleChildren()
DragPointDragPoint.supportsPaste() must be true for this
to work.possibleChildren in interface DragPointCopyright © 2023. All rights reserved.