|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.parsing.CutAndPasteSupport
public class CutAndPasteSupport
Provide support for Cutting and Pasting from any form of parsed
ArooaConfiguraion
.
Nested Class Summary | |
---|---|
static class |
CutAndPasteSupport.ReplaceResult
Result for replace. |
Constructor Summary | |
---|---|
CutAndPasteSupport(ArooaContext instanceContext)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CutAndPasteSupport(ArooaContext instanceContext)
instanceContext
- The context of the component we are providing
the support for.Method Detail |
---|
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)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |