public final class CutCopyPasteSupport extends java.lang.Object implements CopyProvider, CutProvider, PasteProvider
Constructor and Description |
---|
CutCopyPasteSupport(GuiEditor uiEditor) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<RadComponent> |
copyComponents(GuiEditor editor,
java.util.List<RadComponent> components) |
boolean |
isCopyEnabled(DataContext dataContext) |
boolean |
isCopyVisible(DataContext dataContext) |
boolean |
isCutEnabled(DataContext dataContext) |
boolean |
isCutVisible(DataContext dataContext) |
boolean |
isPasteEnabled(DataContext dataContext) |
boolean |
isPastePossible(DataContext dataContext)
Should perform fast and memory cheap negation.
|
void |
performCopy(DataContext dataContext) |
void |
performCut(DataContext dataContext) |
void |
performPaste(DataContext dataContext) |
public CutCopyPasteSupport(GuiEditor uiEditor)
public boolean isCopyEnabled(DataContext dataContext)
isCopyEnabled
in interface CopyProvider
public boolean isCopyVisible(DataContext dataContext)
isCopyVisible
in interface CopyProvider
public void performCopy(DataContext dataContext)
performCopy
in interface CopyProvider
public boolean isCutEnabled(DataContext dataContext)
isCutEnabled
in interface CutProvider
public boolean isCutVisible(DataContext dataContext)
isCutVisible
in interface CutProvider
public void performCut(DataContext dataContext)
performCut
in interface CutProvider
public boolean isPastePossible(DataContext dataContext)
PasteProvider
isPastePossible
in interface PasteProvider
public boolean isPasteEnabled(DataContext dataContext)
isPasteEnabled
in interface PasteProvider
public void performPaste(DataContext dataContext)
performPaste
in interface PasteProvider
public static java.util.List<RadComponent> copyComponents(GuiEditor editor, java.util.List<RadComponent> components)