public class CutAndPasteSupport extends Object
ArooaConfiguraion
.Modifier and Type | Class and Description |
---|---|
static class |
CutAndPasteSupport.ReplaceResult
Result for replace.
|
Constructor and Description |
---|
CutAndPasteSupport(ArooaContext instanceContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static String |
copy(ArooaContext context) |
void |
cut(ArooaContext childContext)
Remove the component who's context is given.
|
static int |
cut(ArooaContext parentContext,
ArooaContext childContext)
Cut when the parent context is known.
|
static ConfigurationHandle |
paste(ArooaContext parentContext,
int index,
ArooaConfiguration config)
Add any configuration to the parent context.
|
ConfigurationHandle |
paste(int index,
ArooaConfiguration config)
Paste the
ArooaConfiguration . |
CutAndPasteSupport.ReplaceResult |
replace(ArooaContext childContext,
ArooaConfiguration config)
Replace the childContext with the given configuration.
|
static CutAndPasteSupport.ReplaceResult |
replace(ArooaContext parentContext,
ArooaContext childContext,
ArooaConfiguration config)
Replaces a child context with the contents of the configuration.
|
boolean |
supportsPaste()
Does this instance support pasting.
|
public CutAndPasteSupport(ArooaContext instanceContext)
instanceContext
- The context of the component we are providing
the support for.public boolean supportsPaste()
public void cut(ArooaContext childContext) throws ArooaConfigurationException
childContext
- ArooaConfigurationException
public ConfigurationHandle paste(int index, ArooaConfiguration config) throws ArooaParseException, ArooaConfigurationException
ArooaConfiguration
.index
- config
- ArooaParseException
ArooaConfigurationException
public CutAndPasteSupport.ReplaceResult replace(ArooaContext childContext, ArooaConfiguration config) throws ArooaParseException, ArooaConfigurationException
childContext
- config
- ArooaParseException
ArooaConfigurationException
public static int cut(ArooaContext parentContext, ArooaContext childContext) throws ArooaConfigurationException
parentContext
- childContext
- ArooaConfigurationException
public static ConfigurationHandle paste(ArooaContext parentContext, int index, ArooaConfiguration config) throws ArooaParseException
parentContext
- index
- ArooaParseException
public static CutAndPasteSupport.ReplaceResult replace(ArooaContext parentContext, ArooaContext childContext, ArooaConfiguration config) throws ArooaParseException, ArooaConfigurationException
parentContext
- childContext
- config
- ArooaParseException
ArooaConfigurationException
public static String copy(ArooaContext context)