public class Layout extends Object implements IClipboardAware<Layout>
| Modifier and Type | Field and Description |
|---|---|
static String |
LAYOUT_VERSION |
| Constructor and Description |
|---|
Layout() |
Layout(Layout layout) |
Layout(LayoutElement.LayoutRoot root) |
Layout(String layoutName) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Reset the layout to not loaded state.
|
Layout |
fromClipboard(String data)
Converts from clipboard format.
|
String |
getName()
Returns the name of the currently loaded layout, or null if none loaded.
|
Class<? extends ElementBase> |
getRootClass()
Returns the class of the element at the root of the layout.
|
boolean |
isEmpty()
Returns true if the layout has no content.
|
ElementUI |
materialize(ElementUI parent)
Materializes the layout, under the specified parent, starting from the layout origin.
|
boolean |
saveToProperty(LayoutIdentifier layoutId)
Saves the layout as a property value using the specified identifier.
|
void |
setName(String value)
Sets the name of the current layout.
|
String |
toClipboard()
Converts to clipboard format.
|
String |
toString()
Returns the layout as an xml-formatted string.
|
public static final String LAYOUT_VERSION
public Layout()
public Layout(Layout layout)
public Layout(String layoutName)
public Layout(LayoutElement.LayoutRoot root)
public ElementUI materialize(ElementUI parent)
parent - Parent UI element at this level of the hierarchy. May be null.public String getName()
public void setName(String value)
value - New name for the layout.public void clear()
public boolean saveToProperty(LayoutIdentifier layoutId)
layoutId - Layout identifierpublic Class<? extends ElementBase> getRootClass()
public boolean isEmpty()
public String toString()
public String toClipboard()
toClipboard in interface IClipboardAware<Layout>public Layout fromClipboard(String data)
fromClipboard in interface IClipboardAware<Layout>data - String data from clipboard.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.