|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.talend.commons.ui.swt.linking.BgDrawableComposite
org.talend.commons.ui.swt.linking.TreeToTablesLinker<java.lang.Object,java.lang.Object>
org.talend.repository.ui.wizards.metadata.connection.files.xml.extraction.XmlToXPathLinker
public class XmlToXPathLinker
DOC amaumont class global comment. Detailled comment
$Id$
| Field Summary |
|---|
| Fields inherited from class org.talend.commons.ui.swt.linking.TreeToTablesLinker |
|---|
linksManager |
| Constructor Summary | |
|---|---|
XmlToXPathLinker(org.eclipse.swt.widgets.Composite commonParent)
DOC amaumont XmlToMetadataTableLinker constructor comment. |
|
| Method Summary | |
|---|---|
void |
addFieldLink(org.eclipse.swt.widgets.TreeItem treeItem,
java.lang.Object dataItem1,
org.eclipse.swt.widgets.Table table,
SchemaTarget dataItem2)
DOC amaumont Comment method "addLink". |
void |
addLoopLink(org.eclipse.swt.widgets.TreeItem treeItem,
java.lang.Object dataItem1,
org.eclipse.swt.widgets.Table table,
XmlXPathLoopDescriptor dataItem2)
DOC amaumont Comment method "addLink". |
void |
createLinks()
DOC amaumont Comment method "createLinks". |
void |
drawBackground(org.eclipse.swt.graphics.GC gc)
|
java.lang.String |
getAbsoluteXPath(org.eclipse.swt.widgets.TreeItem treeItem)
|
java.util.ArrayList<org.w3c.dom.Node> |
getAllLoopNodes()
Getter for allLoopNodes. |
java.lang.String |
getCurrentLoopXPath()
|
protected java.util.Comparator<LinkDescriptor<org.eclipse.swt.widgets.TreeItem,java.lang.Object,org.eclipse.swt.widgets.Table,java.lang.Object>> |
getDrawingLinksComparator()
Define a comparator to draw links. |
ExtractionFieldsWithXPathEditorView |
getFieldsTableEditorView()
Getter for tableEditorView. |
ExtractionLoopWithXPathEditorView |
getLoopTableEditorView()
Getter for loopTableEditorView. |
java.util.ArrayList<java.lang.String> |
getLoopXpathNodes()
Getter for loopXpathNodes. |
SchemaTarget |
getNewSchemaTargetEntry(java.lang.String relativeXPathValue)
|
NodeRetriever |
getNodeRetriever()
Getter for nodeRetriever. |
StyleLink |
getSelectedLoopStyleLink()
|
java.util.ArrayList<org.w3c.dom.Node> |
getUniqueLoopNodes()
Getter for uniqueLoopNodes. |
void |
handleListenableListAfterTableViewerRefreshedEvent(ListenableListEvent<SchemaTarget> event)
|
void |
init(org.eclipse.swt.widgets.Tree tree,
ExtractionLoopWithXPathEditorView loopTableEditorView,
ExtractionFieldsWithXPathEditorView fieldsTableEditorView,
TreePopulator treePopulator)
|
boolean |
isFieldsTable(org.eclipse.swt.widgets.Table table)
DOC amaumont Comment method "isFieldsTable". |
boolean |
isLoopTable(org.eclipse.swt.widgets.Table table)
DOC amaumont Comment method "isLoopTable". |
void |
onXPathValueChanged(org.eclipse.swt.widgets.Table table,
java.lang.String newValue,
int itemIndex)
DOC amaumont Comment method "onXPathValueChanged". |
void |
parseAllFieldsXPathExpressions()
|
void |
removeAllLinks()
DOC amaumont Comment method "removeAllLinks". |
boolean |
removeLinksFromTableEntry(SchemaTarget schemaTarget)
|
void |
updateLinksStyleAndControlsSelection(org.eclipse.swt.widgets.Control currentControl)
|
java.lang.String |
validateXPathExpression(java.lang.String xpathExpression)
DOC amaumont Comment method "validateXPathExpression". |
| Methods inherited from class org.talend.commons.ui.swt.linking.TreeToTablesLinker |
|---|
createLinksComparators, getBackgroundRefresher, getDefaultStyleLink, getLinksManager, getSelectedStyleLink, getTables, getTree, getUnselectedStyleLink, init, setBackgroundRefresher, setSelectedStyleLink, setUnselectedStyleLink |
| Methods inherited from class org.talend.commons.ui.swt.linking.BgDrawableComposite |
|---|
getBgDrawableComposite, getOffset, setOffset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.talend.commons.ui.swt.drawing.background.IBgDrawableComposite |
|---|
getBgDrawableComposite, getOffset, setOffset |
| Constructor Detail |
|---|
public XmlToXPathLinker(org.eclipse.swt.widgets.Composite commonParent)
commonParent - common main parent of tree and table, it and its children should have backgoundMode
configured with SWT.INHERIT_FORCE, same configuration for parents of tree and table.tree - loopTableEditorView - table - | Method Detail |
|---|
public void init(org.eclipse.swt.widgets.Tree tree,
ExtractionLoopWithXPathEditorView loopTableEditorView,
ExtractionFieldsWithXPathEditorView fieldsTableEditorView,
TreePopulator treePopulator)
public java.lang.String getAbsoluteXPath(org.eclipse.swt.widgets.TreeItem treeItem)
public void createLinks()
public void drawBackground(org.eclipse.swt.graphics.GC gc)
drawBackground in interface IBgDrawableCompositedrawBackground in class TreeToTablesLinker<java.lang.Object,java.lang.Object>public void handleListenableListAfterTableViewerRefreshedEvent(ListenableListEvent<SchemaTarget> event)
public void addLoopLink(org.eclipse.swt.widgets.TreeItem treeItem,
java.lang.Object dataItem1,
org.eclipse.swt.widgets.Table table,
XmlXPathLoopDescriptor dataItem2)
treeItem - dataItem1 - table - dataItem2 -
public void addFieldLink(org.eclipse.swt.widgets.TreeItem treeItem,
java.lang.Object dataItem1,
org.eclipse.swt.widgets.Table table,
SchemaTarget dataItem2)
treeItem - dataItem1 - table - dataItem2 - public void removeAllLinks()
public boolean removeLinksFromTableEntry(SchemaTarget schemaTarget)
public void onXPathValueChanged(org.eclipse.swt.widgets.Table table,
java.lang.String newValue,
int itemIndex)
table - newValue - itemIndex - public boolean isLoopTable(org.eclipse.swt.widgets.Table table)
table -
public SchemaTarget getNewSchemaTargetEntry(java.lang.String relativeXPathValue)
public ExtractionFieldsWithXPathEditorView getFieldsTableEditorView()
public ExtractionLoopWithXPathEditorView getLoopTableEditorView()
public void updateLinksStyleAndControlsSelection(org.eclipse.swt.widgets.Control currentControl)
updateLinksStyleAndControlsSelection in interface IControlsLinkerupdateLinksStyleAndControlsSelection in class TreeToTablesLinker<java.lang.Object,java.lang.Object>public boolean isFieldsTable(org.eclipse.swt.widgets.Table table)
table -
public StyleLink getSelectedLoopStyleLink()
public java.lang.String getCurrentLoopXPath()
public void parseAllFieldsXPathExpressions()
public java.util.ArrayList<java.lang.String> getLoopXpathNodes()
public java.lang.String validateXPathExpression(java.lang.String xpathExpression)
newValue -
protected java.util.Comparator<LinkDescriptor<org.eclipse.swt.widgets.TreeItem,java.lang.Object,org.eclipse.swt.widgets.Table,java.lang.Object>> getDrawingLinksComparator()
TreeToTablesLinker
getDrawingLinksComparator in class TreeToTablesLinker<java.lang.Object,java.lang.Object>public java.util.ArrayList<org.w3c.dom.Node> getAllLoopNodes()
public java.util.ArrayList<org.w3c.dom.Node> getUniqueLoopNodes()
public NodeRetriever getNodeRetriever()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||