public class Workspace.TaskDefinition extends java.lang.Object implements XMLPersistent
Modifier and Type | Class and Description |
---|---|
class |
Workspace.TaskDefinition.BandDefinition |
Modifier and Type | Method and Description |
---|---|
Workspace.TaskDefinition.BandDefinition |
addBand(org.pushingpixels.flamingo.api.ribbon.JRibbonBand ribbonBand)
Add a BandDefinition from JRibbonBand component
|
Workspace.TaskDefinition.BandDefinition |
addBand(java.lang.String bandName)
Add a BandDefinition
|
boolean |
addBands(org.pushingpixels.flamingo.api.ribbon.RibbonTask ribbonTask)
Add bands from specified RibbonTask.
|
Workspace.TaskDefinition.BandDefinition.ItemDefinition |
addItem(java.lang.String bandName,
java.lang.String className) |
void |
clear()
remove all bands from the task
|
Workspace.TaskDefinition.BandDefinition |
findBand(java.lang.String name) |
Workspace.TaskDefinition.BandDefinition.ItemDefinition |
findItem(java.lang.String className) |
java.util.ArrayList<Workspace.TaskDefinition.BandDefinition> |
getBands() |
java.lang.String |
getName() |
Workspace |
getWorkspace() |
java.lang.String |
getWorkspaceName() |
boolean |
loadFrom(org.pushingpixels.flamingo.api.ribbon.RibbonTask ribbonTask)
Load from the specified RibbonTask.
|
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
boolean |
removeBand(java.lang.String bandName)
Remove a BandDefinition by name
|
boolean |
removeBand(Workspace.TaskDefinition.BandDefinition band)
Remove a band definition
|
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
public Workspace getWorkspace()
public java.lang.String getWorkspaceName()
public Workspace.TaskDefinition.BandDefinition addBand(org.pushingpixels.flamingo.api.ribbon.JRibbonBand ribbonBand)
public Workspace.TaskDefinition.BandDefinition addBand(java.lang.String bandName)
public boolean addBands(org.pushingpixels.flamingo.api.ribbon.RibbonTask ribbonTask)
public boolean removeBand(java.lang.String bandName)
bandName
- : name of the band to removepublic boolean removeBand(Workspace.TaskDefinition.BandDefinition band)
public Workspace.TaskDefinition.BandDefinition.ItemDefinition addItem(java.lang.String bandName, java.lang.String className)
public void clear()
public boolean loadFrom(org.pushingpixels.flamingo.api.ribbon.RibbonTask ribbonTask)
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
public Workspace.TaskDefinition.BandDefinition findBand(java.lang.String name)
public Workspace.TaskDefinition.BandDefinition.ItemDefinition findItem(java.lang.String className)
public java.lang.String getName()
public java.util.ArrayList<Workspace.TaskDefinition.BandDefinition> getBands()