public class XLayout extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_AUTO_COMPLETION |
static String |
ATTR_CATEGORY |
static String |
ATTR_ELEMENT_NAME |
static String |
ATTR_INPUT_TYPE |
static String |
ATTR_ITEMS |
static String |
ATTR_MULTI_LINES |
static String |
ATTR_OPTIONAL |
static String |
ATTR_RELATED_ATTRIBUTE_NAME |
static String |
ATTR_REQUIRED |
static String |
ATTR_TEXT |
Modifier | Constructor and Description |
---|---|
protected |
XLayout(Map<String,ControlHandlerConfig> handlerConfigs,
ClassLoader resourceClassLoader) |
Modifier and Type | Method and Description |
---|---|
boolean |
controlExists(String id)
Returns true if a control with the given name exists.
|
void |
dispose()
Disposes all registered controls to release their resources and removes
them from the layout.
|
void |
draw(Composite parent,
com.logabit.xlayout.source.XLayoutSource source,
String type,
boolean showButtons)
Renders the editor.
|
void |
fireFocusEvent()
To be called When the controls lost the focus.
|
List<info.textgrid.lab.core.metadataeditor.elements.IControl> |
getAllControlElements() |
List<Control> |
getAllControls()
Returns a list of all used controls in the Metadata editor.
|
info.textgrid.lab.core.metadataeditor.elements.SourceControlElement |
getCollectingSourceElement() |
Control |
getControl(String id)
Return the control instance as given by id in the xLayout file.
|
info.textgrid.lab.core.metadataeditor.elements.IControl |
getControlElementById(String id) |
info.textgrid.lab.core.metadataeditor.elements.CustomControlElement |
getCustomElement() |
ScrolledForm |
getForm() |
Label |
getInfoLabel() |
org.apache.axiom.om.OMElement |
getOMElement()
Returns an OMElement which represents the meta data in the meta data
editor.
|
Map<String,info.textgrid.lab.core.metadataeditor.elements.ICheckableElement> |
getPathControlsMap() |
info.textgrid.lab.core.metadataeditor.elements.SpecificControlElement |
getSpecificElement() |
boolean |
isDisposed() |
boolean |
isDoCollectSourceElements() |
boolean |
isEditable()
is used metadata part editable?
|
boolean |
isModified()
Determines whether the content of the editor was modified or not.
|
boolean |
isThrowExceptionIfControlNotFound()
Returns whether an
|
boolean |
isVisible()
Determines whether the Metadata editor is visible or hidden
|
Composite |
parseTable(org.dom4j.Element tableElement,
Composite parent)
Parses the given table element.
|
void |
registerMetadataPart(IMetadataPart part)
Registers the meta data's view
|
void |
setCollectingSourceElement(info.textgrid.lab.core.metadataeditor.elements.SourceControlElement collectingSourceElement) |
void |
setDoCollectSourceElements(boolean doCollectSourceElements) |
void |
setModified(boolean modified)
Sets the editor as modified or not-modified.
|
void |
setOMElement(org.apache.axiom.om.OMElement root,
String specificElementName,
String textGridUri)
Sets the meta data in the Metadata editor.
|
void |
setThrowExceptionIfControlNotFound(boolean throwException)
Sets whether an
|
void |
setVisible(boolean visible)
Controls the visibility of the Metadata editor.
|
void |
updateDecorationForAgents() |
public static final String ATTR_ELEMENT_NAME
public static final String ATTR_RELATED_ATTRIBUTE_NAME
public static final String ATTR_INPUT_TYPE
public static final String ATTR_REQUIRED
public static final String ATTR_MULTI_LINES
public static final String ATTR_CATEGORY
public static final String ATTR_OPTIONAL
public static final String ATTR_ITEMS
public static final String ATTR_TEXT
public static final String ATTR_AUTO_COMPLETION
protected XLayout(Map<String,ControlHandlerConfig> handlerConfigs, ClassLoader resourceClassLoader)
public info.textgrid.lab.core.metadataeditor.elements.SourceControlElement getCollectingSourceElement()
public void setCollectingSourceElement(info.textgrid.lab.core.metadataeditor.elements.SourceControlElement collectingSourceElement)
public boolean isDoCollectSourceElements()
public void setDoCollectSourceElements(boolean doCollectSourceElements)
public Control getControl(String id)
id
- The id of the control within the xLayout file.public void setThrowExceptionIfControlNotFound(boolean throwException)
throwException
- True if an exception must be thrown.must be thrown if a control with given id
was requested but was not found.
public boolean isThrowExceptionIfControlNotFound()
must be thrown if a control with given id
was requested but was not found.
public void draw(Composite parent, com.logabit.xlayout.source.XLayoutSource source, String type, boolean showButtons)
parent
- source
- showButtons
- public ScrolledForm getForm()
public Composite parseTable(org.dom4j.Element tableElement, Composite parent) throws ParseException
tableElement
- The table element which contains the layout information.parent
- The parent composite to use or null if a new one should be
created.ParseException
public void setOMElement(org.apache.axiom.om.OMElement root, String specificElementName, String textGridUri)
root
- the meta data OM-Elementpublic org.apache.axiom.om.OMElement getOMElement()
public info.textgrid.lab.core.metadataeditor.elements.CustomControlElement getCustomElement()
public info.textgrid.lab.core.metadataeditor.elements.SpecificControlElement getSpecificElement()
public List<info.textgrid.lab.core.metadataeditor.elements.IControl> getAllControlElements()
public info.textgrid.lab.core.metadataeditor.elements.IControl getControlElementById(String id)
public boolean isModified()
public void setModified(boolean modified)
modified
- public void setVisible(boolean visible)
visible
- true or falsepublic boolean isVisible()
public boolean isEditable()
public List<Control> getAllControls()
public boolean controlExists(String id)
id
- public void registerMetadataPart(IMetadataPart part)
view
- public void fireFocusEvent()
public void updateDecorationForAgents()
#setDecorationForControls()}
public Map<String,info.textgrid.lab.core.metadataeditor.elements.ICheckableElement> getPathControlsMap()
public Label getInfoLabel()
public boolean isDisposed()
public void dispose()