org.eclipse.nebula.widgets.nattable.style.editor
Class AbstractEditorPanel<T>

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.eclipse.nebula.widgets.nattable.style.editor.AbstractEditorPanel<T>
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
Direct Known Subclasses:
BorderStyleEditorPanel, CellStyleEditorPanel, ColumnLabelPanel, GridColorsEditorPanel

public abstract class AbstractEditorPanel<T>
extends org.eclipse.swt.widgets.Composite

SWT Panel to edit object of type T


Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
view
 
Constructor Summary
AbstractEditorPanel(org.eclipse.swt.widgets.Composite parent, int style)
           
 
Method Summary
abstract  void edit(T t)
          Initialize UI widgets to match the initial state of T
abstract  String getEditorName()
          Use friendly name for this editor (used as tab labels).
abstract  T getNewValue()
          Get the new value of T with the user modifications
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractEditorPanel

public AbstractEditorPanel(org.eclipse.swt.widgets.Composite parent,
                           int style)
Method Detail

edit

public abstract void edit(T t)
                   throws Exception
Initialize UI widgets to match the initial state of T

Throws:
Exception

getNewValue

public abstract T getNewValue()
Get the new value of T with the user modifications


getEditorName

public abstract String getEditorName()
Use friendly name for this editor (used as tab labels).



Copyright © 2015. All rights reserved.