Class XViewerEditAdapter

  • Direct Known Subclasses:
    XViewerMultiEditAdapter

    public class XViewerEditAdapter
    extends java.lang.Object
    Adapter to edit cells in the XViewer

    To edit your columns the columns must be ExtendedViewerColumns.
    Use the map in the ExtendedViewerColumn class to define the cells
    • Field Detail

      • klickedCell

        org.eclipse.jface.viewers.ViewerCell klickedCell
      • klickedColumn

        org.eclipse.swt.widgets.TreeColumn klickedColumn
      • orientationStyle

        int orientationStyle
      • swtEvent

        private int swtEvent
        TODO MouseDoubleClick and MouseUp not implemented yet swtEvent - SWT.MouseDoubleClick or SWT.MouseDown or SWT.MouseUp
      • InInput

        private static boolean InInput
    • Method Detail

      • activate

        public void activate​(XViewer xv)
      • doHandleEvent

        private void doHandleEvent​(org.eclipse.swt.widgets.Event event)
      • handleEditEvent

        boolean handleEditEvent​(org.eclipse.swt.widgets.Event event)
      • getNeighbor

        private boolean getNeighbor​(int directionMask,
                                    boolean sameLevel)
      • getInput

        void getInput​(org.eclipse.swt.widgets.Control c)
      • refreshElement

        void refreshElement​(java.lang.Object toRefresh)
      • getInputToModify

        java.lang.Object getInputToModify()
      • setInput

        void setInput​(org.eclipse.swt.widgets.Control c)
      • setInputControlOrientation

        public void setInputControlOrientation​(int style)
        controls the positioning of the input control in the case the CellEditDescriptor Control does not take up the whole cell space. Default value assumes right placement.
        Parameters:
        style -