Package org.pentaho.di.ui.core.widget
Class StyledTextComp
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.pentaho.di.ui.core.widget.StyledTextComp
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
public class StyledTextComp
extends org.eclipse.swt.widgets.Composite
-
Field Summary
Fields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandle
Fields inherited from class org.eclipse.swt.widgets.Widget
handle
-
Constructor Summary
ConstructorDescriptionStyledTextComp
(org.pentaho.di.core.variables.VariableSpace space, org.eclipse.swt.widgets.Composite parent, int args, String strTabName) StyledTextComp
(org.pentaho.di.core.variables.VariableSpace space, org.eclipse.swt.widgets.Composite parent, int args, String strTabName, boolean varsSensitive) StyledTextComp
(org.pentaho.di.core.variables.VariableSpace space, org.eclipse.swt.widgets.Composite parent, int args, String strTabName, boolean varsSensitive, boolean variableIconOnTop) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFocusListener
(org.eclipse.swt.events.FocusAdapter focusAdapter) void
addKeyListener
(org.eclipse.swt.events.KeyAdapter keyAdapter) void
addLineStyleListener
(org.eclipse.swt.custom.LineStyleListener lineStyler) void
addModifyListener
(org.eclipse.swt.events.ModifyListener lsMod) void
addMouseListener
(org.eclipse.swt.events.MouseAdapter mouseAdapter) int
org.eclipse.swt.graphics.Image
getImage()
Returns theImage
that theStyledText
is decorated with.int
getLineAtOffset
(int iOffset) int
org.eclipse.swt.custom.StyledText
getText()
void
boolean
void
setEditable
(boolean canEdit) void
setEnabled
(boolean enabled) void
setFont
(org.eclipse.swt.graphics.Font fnt) void
setSelection
(int arg0) void
setSelection
(int arg0, int arg1) void
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
-
Constructor Details
-
StyledTextComp
public StyledTextComp(org.pentaho.di.core.variables.VariableSpace space, org.eclipse.swt.widgets.Composite parent, int args, String strTabName) -
StyledTextComp
public StyledTextComp(org.pentaho.di.core.variables.VariableSpace space, org.eclipse.swt.widgets.Composite parent, int args, String strTabName, boolean varsSensitive) -
StyledTextComp
public StyledTextComp(org.pentaho.di.core.variables.VariableSpace space, org.eclipse.swt.widgets.Composite parent, int args, String strTabName, boolean varsSensitive, boolean variableIconOnTop)
-
-
Method Details
-
getSelectionText
-
getText
-
setText
-
getCaretOffset
public int getCaretOffset() -
getLineAtOffset
public int getLineAtOffset(int iOffset) -
insert
-
addModifyListener
public void addModifyListener(org.eclipse.swt.events.ModifyListener lsMod) -
addLineStyleListener
public void addLineStyleListener(org.eclipse.swt.custom.LineStyleListener lineStyler) -
addKeyListener
public void addKeyListener(org.eclipse.swt.events.KeyAdapter keyAdapter) -
addFocusListener
public void addFocusListener(org.eclipse.swt.events.FocusAdapter focusAdapter) -
addMouseListener
public void addMouseListener(org.eclipse.swt.events.MouseAdapter mouseAdapter) -
getSelectionCount
public int getSelectionCount() -
setSelection
public void setSelection(int arg0) -
setSelection
public void setSelection(int arg0, int arg1) -
setFont
public void setFont(org.eclipse.swt.graphics.Font fnt) - Overrides:
setFont
in classorg.eclipse.swt.widgets.Control
-
getImage
public org.eclipse.swt.graphics.Image getImage()Returns theImage
that theStyledText
is decorated with.- Returns:
- the
Image
that theStyledText
is decorated with.
-
getStyledText
public org.eclipse.swt.custom.StyledText getStyledText() -
isEditable
public boolean isEditable() -
setEditable
public void setEditable(boolean canEdit) -
setEnabled
public void setEnabled(boolean enabled) - Overrides:
setEnabled
in classorg.eclipse.swt.widgets.Control
-