Search in sources :

Example 16 with ScrolledComposite

use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.

the class UIManager method moveInputScrollBarZoneAtSelectedTable.

private void moveInputScrollBarZoneAtSelectedTable() {
    Rectangle bounds = currentSelectedInputTableView.getBounds();
    int selection = bounds.y - 30;
    ScrolledComposite scrolledCompositeViewInputs = getScrolledCompositeViewInputs();
    setPositionOfVerticalScrollBarZone(scrolledCompositeViewInputs, selection);
}
Also used : Rectangle(org.eclipse.swt.graphics.Rectangle) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) Point(org.eclipse.swt.graphics.Point)

Example 17 with ScrolledComposite

use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.

the class UIManager method moveInputScrollBarZoneAtSelectedTable.

private void moveInputScrollBarZoneAtSelectedTable() {
    Rectangle bounds = currentSelectedInputTableView.getBounds();
    int selection = bounds.y - 30;
    ScrolledComposite scrolledCompositeViewInputs = getScrolledCompositeViewInputs();
    setPositionOfVerticalScrollBarZone(scrolledCompositeViewInputs, selection);
}
Also used : Rectangle(org.eclipse.swt.graphics.Rectangle) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) Point(org.eclipse.swt.graphics.Point)

Example 18 with ScrolledComposite

use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.

the class UIManager method moveOutputScrollBarZoneToMax.

public void moveOutputScrollBarZoneToMax() {
    ScrolledComposite scrolledCompositeViewOutputs = getScrolledCompositeViewOutputs();
    setPositionOfVerticalScrollBarZone(scrolledCompositeViewOutputs, scrolledCompositeViewOutputs.getVerticalBar().getMaximum());
}
Also used : ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite)

Example 19 with ScrolledComposite

use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.

the class UIManager method moveOutputScrollBarZoneAtSelectedTable.

private void moveOutputScrollBarZoneAtSelectedTable() {
    Rectangle bounds = currentSelectedOutputTableView.getBounds();
    int selection = bounds.y - 30;
    ScrolledComposite scrolledCompositeViewOutputs = getScrolledCompositeViewOutputs();
    setPositionOfVerticalScrollBarZone(scrolledCompositeViewOutputs, selection);
}
Also used : Rectangle(org.eclipse.swt.graphics.Rectangle) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) Point(org.eclipse.swt.graphics.Point)

Example 20 with ScrolledComposite

use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.

the class SearchZoneMapper method moveScrollBarZoneAtSelectedTableItem.

public void moveScrollBarZoneAtSelectedTableItem(ITableEntry entry) {
    if (entry != null) {
        DataMapTableView dataMapTableView = mapperManager.retrieveIDataMapTableView(entry.getParent());
        Rectangle tableViewBounds = dataMapTableView.getBounds();
        IDataMapTable table = entry.getParent();
        TableItem tableItem = mapperManager.retrieveTableItem(entry);
        if (table != null && tableItem != null) {
            Rectangle tableItemBounds = tableItem.getBounds();
            int selection = tableViewBounds.y + tableItemBounds.y;
            ScrolledComposite scrollComposite = null;
            if (table instanceof InputTable) {
                scrollComposite = uiManager.getScrolledCompositeViewInputs();
            } else if (table instanceof OutputTable) {
                scrollComposite = uiManager.getScrolledCompositeViewOutputs();
            }
            if (scrollComposite != null) {
                setPositionOfVerticalScrollBarZone(scrollComposite, selection);
            }
        }
    }
}
Also used : InputTable(org.talend.designer.dbmap.model.table.InputTable) TableItem(org.eclipse.swt.widgets.TableItem) Rectangle(org.eclipse.swt.graphics.Rectangle) IDataMapTable(org.talend.designer.abstractmap.model.table.IDataMapTable) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) DataMapTableView(org.talend.designer.dbmap.ui.visualmap.table.DataMapTableView) OutputTable(org.talend.designer.dbmap.model.table.OutputTable)

Aggregations

ScrolledComposite (org.eclipse.swt.custom.ScrolledComposite)61 GridData (org.eclipse.swt.layout.GridData)45 Composite (org.eclipse.swt.widgets.Composite)44 GridLayout (org.eclipse.swt.layout.GridLayout)40 Label (org.eclipse.swt.widgets.Label)27 FillLayout (org.eclipse.swt.layout.FillLayout)16 SelectionEvent (org.eclipse.swt.events.SelectionEvent)15 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)13 Point (org.eclipse.swt.graphics.Point)12 Button (org.eclipse.swt.widgets.Button)12 Text (org.eclipse.swt.widgets.Text)12 Control (org.eclipse.swt.widgets.Control)10 ControlEvent (org.eclipse.swt.events.ControlEvent)9 Group (org.eclipse.swt.widgets.Group)9 HistoryComposite (com.cubrid.cubridmanager.ui.monitoring.editor.internal.HistoryComposite)8 Rectangle (org.eclipse.swt.graphics.Rectangle)7 ArrayList (java.util.ArrayList)5 ControlListener (org.eclipse.swt.events.ControlListener)5 FormAttachment (org.eclipse.swt.layout.FormAttachment)5 FormData (org.eclipse.swt.layout.FormData)5