public class BasicSectionCopyOption extends CopyOption implements SectionCopyOption
Modifier and Type | Field and Description |
---|---|
protected boolean |
defaultDuplicationPolicy |
protected Hashtable |
panelInstancesToDuplicate |
DEFAULT_SECTION_COPY_OPTION_OTHER_WORKSPACE, DEFAULT_SECTION_COPY_OPTION_SAME_WORKSPACE
COPY_ALL, COPY_MODE, COPY_NONE, COPY_SOME
Constructor and Description |
---|
BasicSectionCopyOption(boolean duplicateByDefault)
Creates a new BasicSectionCopyOption with given default duplication policy.
|
Modifier and Type | Method and Description |
---|---|
void |
addPanelInstanceToDuplicate(String panelInstance,
boolean duplicate)
Adds a panelInstanceId to duplicate.
|
boolean |
isDuplicatePanelInstance(String panelInstanceId)
Determines if given panelInstance has to be duplicated or not.
|
protected boolean defaultDuplicationPolicy
protected Hashtable panelInstancesToDuplicate
public BasicSectionCopyOption(boolean duplicateByDefault)
duplicateByDefault
- Indicates if default behavior is to duplicate panelInstances or not.public boolean isDuplicatePanelInstance(String panelInstanceId)
isDuplicatePanelInstance
in interface SectionCopyOption
panelInstanceId
- public void addPanelInstanceToDuplicate(String panelInstance, boolean duplicate)
addPanelInstanceToDuplicate
in interface SectionCopyOption
panelInstance
- PanelInstance Id that is specified to be copied or not.duplicate
- Indicates if this PanelInstance Id must be registered as to be duplicated or not.Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.