Package com.iizigo.text
Class KStringStyledText
- All Implemented Interfaces:
- Drawable
Controller class for editing a KString as a styled string.
- Author:
- Christopher Mindus
- Field Summary
- Constructor SummaryConstructorsConstructorDescription- KStringStyledText- (Composite parent, int style, IPropUndoRedo undoRedo, Runnable stateChange) Constructor.
- Method SummaryModifier and TypeMethodDescription- static ArrayList<StyleRange>- buildStyleRanges- (ArrayList<KStringStyleRange> styles) Constructs a StyleRange ArrayList from KString styles ranges.Gets the edited property.- static KString.TypeGets the last used type.- static booleanGets the last used "useTags".- voidSets dialog mode, i.e.- void- setKStringProp- (KStringProp newKStringProp, ModuleModel model) Sets the KStringProp being edited.- static voidSets the last used type.- static void- setLastKStringUseTags- (boolean useTags) Sets the last used type.- void- updateText- (KString ks, IPropErrorItem pei) Updates the text editor from the property.- Methods inherited from class com.iizix.swt.widget.IZ_StyledText- checkSubclass, setBackground, setForeground- Methods inherited from class org.eclipse.swt.custom.StyledText- addBidiSegmentListener, addCaretListener, addExtendedModifyListener, addLineBackgroundListener, addLineStyleListener, addModifyListener, addPaintObjectListener, addSelectionListener, addVerifyKeyListener, addVerifyListener, addWordMovementListener, append, computeSize, copy, copy, cut, getAlignment, getAlwaysShowScrollBars, getBackground, getBaseline, getBaseline, getBidiColoring, getBlockSelection, getBlockSelectionBounds, getBottomMargin, getCaretOffset, getCharCount, getContent, getDoubleClickEnabled, getDragDetect, getEditable, getForeground, getHorizontalIndex, getHorizontalPixel, getIndent, getJustify, getKeyBinding, getLeftMargin, getLine, getLineAlignment, getLineAtOffset, getLineBackground, getLineBullet, getLineCount, getLineDelimiter, getLineHeight, getLineHeight, getLineIndent, getLineIndex, getLineJustify, getLinePixel, getLineSpacing, getLineTabStops, getLineVerticalIndent, getLineWrapIndent, getLocationAtOffset, getMarginColor, getMouseNavigatorEnabled, getOffsetAtLine, getOffsetAtLocation, getOffsetAtPoint, getOrientation, getRanges, getRanges, getRightMargin, getSelection, getSelectionBackground, getSelectionCount, getSelectionForeground, getSelectionRange, getSelectionRanges, getSelectionText, getStyleRangeAtOffset, getStyleRanges, getStyleRanges, getStyleRanges, getStyleRanges, getTabs, getTabStops, getText, getText, getTextBounds, getTextLimit, getTextRange, getTopIndex, getTopMargin, getTopPixel, getWordWrap, getWrapIndent, insert, invokeAction, isTextSelected, paste, print, print, print, redraw, redraw, redrawRange, removeBidiSegmentListener, removeCaretListener, removeExtendedModifyListener, removeLineBackgroundListener, removeLineStyleListener, removeModifyListener, removePaintObjectListener, removeSelectionListener, removeVerifyKeyListener, removeVerifyListener, removeWordMovementListener, replaceStyleRanges, replaceTextRange, scroll, selectAll, setAlignment, setAlwaysShowScrollBars, setBidiColoring, setBlockSelection, setBlockSelectionBounds, setBlockSelectionBounds, setBottomMargin, setCaret, setCaretOffset, setContent, setCursor, setDoubleClickEnabled, setDragDetect, setEditable, setEnabled, setFixedLineMetrics, setFocus, setFont, setHorizontalIndex, setHorizontalPixel, setIndent, setJustify, setKeyBinding, setLeftMargin, setLineAlignment, setLineBackground, setLineBullet, setLineIndent, setLineJustify, setLineSpacing, setLineSpacingProvider, setLineTabStops, setLineVerticalIndent, setLineWrapIndent, setMarginColor, setMargins, setMouseNavigatorEnabled, setOrientation, setRightMargin, setSelection, setSelection, setSelection, setSelectionBackground, setSelectionForeground, setSelectionRange, setSelectionRanges, setStyleRange, setStyleRanges, setStyleRanges, setStyleRanges, setTabs, setTabStops, setText, setTextDirection, setTextLimit, setTopIndex, setTopMargin, setTopPixel, setWordWrap, setWrapIndent, showSelection- Methods inherited from class org.eclipse.swt.widgets.Canvas- drawBackground, getCaret, getIME, setIME- Methods inherited from class org.eclipse.swt.widgets.Composite- changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList, toString- 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, dragDetect, dragDetect, forceFocus, getAccessible, getBackgroundImage, getBorderWidth, getBounds, getCursor, getEnabled, getFont, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, 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- Methods inherited from class java.lang.Object- clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait- Methods inherited from interface org.eclipse.swt.graphics.Drawable- isAutoScalable
- Constructor Details- KStringStyledTextConstructor.
 
- Method Details- getLastKStringTypeGets the last used type.- Returns:
- The last used type that was stored using setLastKStringType(KString.Type).
 
- setLastKStringTypeSets the last used type.- Parameters:
- type- The last used type to be stored for retrieval using- getLastKStringType().
 
- getLastKStringUseTagspublic static boolean getLastKStringUseTags()Gets the last used "useTags".- Returns:
- The last used "useTags" that was stored using setLastKStringUseTags(boolean).
 
- setLastKStringUseTagspublic static void setLastKStringUseTags- (boolean useTags) Sets the last used type.- Parameters:
- useTags- The last used "useTags" to be stored for retrieval using- getLastKStringUseTags().
 
- setDialogModepublic void setDialogMode()Sets dialog mode, i.e. Enter to go to default button in dialog, tab keys as normal.
- getKStringPropGets the edited property.- Returns:
- The edited property, or null for none.
 
- setKStringPropSets the KStringProp being edited.- Parameters:
- newKStringProp- The new KString property.
- model- The Module model.
 
- buildStyleRangesConstructs a StyleRange ArrayList from KString styles ranges.
- updateTextUpdates the text editor from the property.- Parameters:
- ks- The KString, null for none.
- pei- Potential error.