public class Workspace extends java.lang.Object implements XMLPersistent, java.lang.Comparable<Workspace>
Modifier and Type | Class and Description |
---|---|
class |
Workspace.TaskDefinition |
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
DEFAULT_ACTIVE_WORKSPACES |
static java.lang.String |
WORKSPACE_SYSTEM_NAME |
Constructor and Description |
---|
Workspace()
empty workspace
|
Workspace(java.io.File file)
workspace loaded from file
|
Workspace(java.lang.String name)
workspace loaded from his name
|
Workspace(java.net.URL url,
RepositoryPreferences.RepositoryInfo repos)
workspace loaded from url (online)
|
Modifier and Type | Method and Description |
---|---|
Workspace.TaskDefinition.BandDefinition |
addBand(java.lang.String taskName,
java.lang.String bandName)
add a BandDefinition
|
Workspace.TaskDefinition.BandDefinition.ItemDefinition |
addItem(java.lang.String taskName,
java.lang.String bandName,
java.lang.String className)
add a ItemDefinition
|
Workspace.TaskDefinition |
addTask(org.pushingpixels.flamingo.api.ribbon.RibbonTask ribbonTask)
add a TaskDefinition from RibbonTask component
|
Workspace.TaskDefinition |
addTask(java.lang.String taskName)
add a TaskDefinition
|
static boolean |
addWorkspace(java.util.List<Workspace> list,
Workspace workspace) |
void |
clear()
Clear all tasks.
|
int |
compareTo(Workspace o) |
static boolean |
contains(java.util.List<Workspace.TaskDefinition.BandDefinition> bands,
Workspace.TaskDefinition.BandDefinition band) |
static boolean |
contains(java.util.List<Workspace.TaskDefinition> tasks,
Workspace.TaskDefinition task) |
Workspace.TaskDefinition.BandDefinition |
findBand(java.lang.String taskName,
java.lang.String bandName) |
Workspace.TaskDefinition.BandDefinition.ItemDefinition |
findItem(java.lang.String className) |
Workspace.TaskDefinition |
findTask(java.lang.String taskName) |
java.util.ArrayList<Workspace.TaskDefinition.BandDefinition.ItemDefinition> |
getAllItems() |
java.lang.String |
getDescription() |
java.lang.String |
getLocalFilename() |
java.lang.String |
getName() |
RepositoryPreferences.RepositoryInfo |
getRepository() |
java.util.ArrayList<Workspace.TaskDefinition> |
getTasks() |
static Workspace |
getWorkspace(java.util.List<Workspace> list,
java.lang.String name) |
int |
install(ProgressFrame progressFrame)
Install the workspace.
|
boolean |
isEmpty() |
boolean |
isInstalling() |
boolean |
load()
load from local
|
boolean |
load(java.io.File file)
load from file
|
boolean |
load(java.net.URL url)
load from file
|
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
boolean |
removeTask(java.lang.String taskName) |
static boolean |
removeWorkspace(java.util.List<Workspace> list,
java.lang.String name) |
boolean |
save()
save
|
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
void |
setDescription(java.lang.String description) |
void |
setName(java.lang.String name) |
public static final java.lang.String[] DEFAULT_ACTIVE_WORKSPACES
public static final java.lang.String WORKSPACE_SYSTEM_NAME
public Workspace()
public Workspace(java.io.File file) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public Workspace(java.net.URL url, RepositoryPreferences.RepositoryInfo repos) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public Workspace(java.lang.String name) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static boolean contains(java.util.List<Workspace.TaskDefinition> tasks, Workspace.TaskDefinition task)
public static boolean contains(java.util.List<Workspace.TaskDefinition.BandDefinition> bands, Workspace.TaskDefinition.BandDefinition band)
public static Workspace getWorkspace(java.util.List<Workspace> list, java.lang.String name)
public static boolean addWorkspace(java.util.List<Workspace> list, Workspace workspace)
public static boolean removeWorkspace(java.util.List<Workspace> list, java.lang.String name)
public java.lang.String getLocalFilename()
public java.lang.String getName()
public java.lang.String getDescription()
public boolean isEmpty()
public void setName(java.lang.String name)
name
- the name to setpublic void setDescription(java.lang.String description)
description
- the description to setpublic boolean isInstalling()
public RepositoryPreferences.RepositoryInfo getRepository()
public void clear()
public Workspace.TaskDefinition findTask(java.lang.String taskName)
public Workspace.TaskDefinition.BandDefinition findBand(java.lang.String taskName, java.lang.String bandName)
public Workspace.TaskDefinition.BandDefinition.ItemDefinition findItem(java.lang.String className)
public java.util.ArrayList<Workspace.TaskDefinition> getTasks()
public java.util.ArrayList<Workspace.TaskDefinition.BandDefinition.ItemDefinition> getAllItems()
public Workspace.TaskDefinition addTask(org.pushingpixels.flamingo.api.ribbon.RibbonTask ribbonTask)
public Workspace.TaskDefinition addTask(java.lang.String taskName)
public Workspace.TaskDefinition.BandDefinition addBand(java.lang.String taskName, java.lang.String bandName)
public Workspace.TaskDefinition.BandDefinition.ItemDefinition addItem(java.lang.String taskName, java.lang.String bandName, java.lang.String className)
public boolean removeTask(java.lang.String taskName)
public boolean load()
public boolean load(java.io.File file)
public boolean load(java.net.URL url)
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
public boolean save()
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
public int install(ProgressFrame progressFrame)