public class SubPanelController
extends java.lang.Object
Constructor and Description |
---|
SubPanelController() |
SubPanelController(SubPanel panel,
long minOccurs,
long maxOccurs,
int level,
java.lang.String udBgColour,
java.lang.String udAltBgColour) |
Modifier and Type | Method and Description |
---|---|
SubPanel |
addSubPanel(SubPanel newPanel)
Adds a new, cloned subpanel to this controller
|
void |
assignStyleToSubPanels(int maxLevel) |
boolean |
canVaryOccurs() |
SubPanelController |
clone()
clone this controller
|
static int |
convertOccurs(java.lang.String occurs) |
java.lang.String |
getAltBgColour() |
java.lang.String |
getBgColour() |
long |
getCurrOccurs() |
int |
getDepthlevel() |
long |
getMaxOccurs() |
long |
getMinOccurs() |
java.lang.String |
getName() |
java.util.List<SubPanel> |
getSubPanels() |
java.lang.String |
getSubPanelStyleClass() |
java.lang.String |
getUserDefinedBackgroundColour() |
boolean |
hasPanel(SubPanel panel) |
void |
incSubPanelTops(int top,
int adjustment)
reset the tops of all subpanels lower than the top specified
|
SubPanel |
removeSubPanel(SubPanel oldPanel)
Remove a subpanel from the set
|
void |
setAltBgColour(java.lang.String colour) |
void |
setBgColour(java.lang.String colour) |
void |
setCurrOccurs(long currOccurs) |
void |
setDepthlevel(int depthlevel) |
void |
setMaxOccurs(long maxOccurs) |
void |
setMaxOccurs(java.lang.String maxOccurs) |
void |
setMinOccurs(long minOccurs) |
void |
setMinOccurs(java.lang.String minOccurs) |
void |
setName(java.lang.String name) |
void |
setOccursButtonsEnablement()
enable/disable the occurs buttons as required
|
void |
storeSubPanel(SubPanel panel)
Adds a subpanel to the set without making any surrounding adjustments to
screen coordinates
|
public SubPanelController()
public SubPanelController(SubPanel panel, long minOccurs, long maxOccurs, int level, java.lang.String udBgColour, java.lang.String udAltBgColour)
public long getMinOccurs()
public void setMinOccurs(long minOccurs)
public void setMinOccurs(java.lang.String minOccurs)
public long getMaxOccurs()
public void setMaxOccurs(long maxOccurs)
public void setMaxOccurs(java.lang.String maxOccurs)
public long getCurrOccurs()
public void setCurrOccurs(long currOccurs)
public int getDepthlevel()
public void setDepthlevel(int depthlevel)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getAltBgColour()
public void setAltBgColour(java.lang.String colour)
public java.lang.String getBgColour()
public void setBgColour(java.lang.String colour)
public java.util.List<SubPanel> getSubPanels()
public boolean hasPanel(SubPanel panel)
public static int convertOccurs(java.lang.String occurs)
public java.lang.String getSubPanelStyleClass()
public java.lang.String getUserDefinedBackgroundColour()
public boolean canVaryOccurs()
public void assignStyleToSubPanels(int maxLevel)
public SubPanel addSubPanel(SubPanel newPanel)
newPanel
- the subpanel to addpublic SubPanel removeSubPanel(SubPanel oldPanel)
oldPanel
- the panel to removepublic void incSubPanelTops(int top, int adjustment)
top
- the y-coord below which subpanels should be moved downadjustment
- how much to move them down bypublic void setOccursButtonsEnablement()
public SubPanelController clone()
clone
in class java.lang.Object
public void storeSubPanel(SubPanel panel)
panel
- the panel to addCopyright © 2004-2014 The YAWL Foundation.