|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.parsing.DragConfiguration
public class DragConfiguration
A 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 Summary | |
---|---|
DragConfiguration(ArooaConfiguration configuration)
|
Method Summary | |
---|---|
DragTransaction |
beginChange(ChangeHow how)
Begin a change. |
String |
copy()
Provide a copy of the configuration at from this DragPoint as XML. |
void |
cut()
Remove this DragPoint from it's underlying configuration and remove any components in the configuration from the ComponentPool |
ConfigurationHandle |
parse(ArooaContext 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. |
boolean |
supportsCut()
True if this DragPoint supports the cut operation. |
boolean |
supportsPaste()
True if this DragPoint supports the paste operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DragConfiguration(ArooaConfiguration configuration)
Method Detail |
---|
public DragTransaction beginChange(ChangeHow how)
DragPoint
beginChange
in interface DragPoint
how
- Should an existing transaction be in progress or not.
public ConfigurationHandle parse(ArooaContext parentContext) throws ArooaParseException
ArooaConfiguration
parse
in interface ArooaConfiguration
parentContext
- The parent context to use.
ConfigurationHandle
.
ArooaParseException
public boolean supportsPaste()
DragPoint
supportsPaste
in interface DragPoint
public boolean supportsCut()
DragPoint
supportsCut
in interface DragPoint
public String copy()
DragPoint
copy
in interface DragPoint
public void cut()
DragPoint
ComponentPool
This operation must be done within the context of a transaction.
cut
in interface DragPoint
public void paste(int index, String config)
DragPoint
This operation must be done within the context of a transaction.
paste
in interface DragPoint
index
- The index. -1 will append.config
- The configuration.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |