Package snap.viewx
Class TextPane
java.lang.Object
snap.props.PropObject
snap.view.ViewOwner
snap.viewx.TextPane
- All Implemented Interfaces:
PropChange.DoChange
A panel for editing text files.
-
Field Summary
Fields inherited from class snap.view.ViewOwner
Action, DragDrop, DragEnter, DragEvents, DragExit, DragGesture, DragOver, KeyEvents, KeyPress, KeyRelease, KeyType, MouseDrag, MouseEnter, MouseEvents, MouseExit, MouseMove, MousePress, MouseRelease, Showing_Prop, WinClose
Fields inherited from class snap.props.PropObject
_pcs, EMPTY_OBJECT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TextArea
Creates the TextArea.protected View
createUI()
Create UI.void
Finds the given string.Get compile info.Returns the TextArea.Returns the toolbar pane.protected void
initUI()
Initialize UI panel.static void
Silly test.protected void
resetUI()
Reset UI.protected void
Respond to UI controls.void
Save file.protected void
Save file.void
Shows the LineNumberPanel.protected void
Called when TextArea does prop change.protected void
Called when TextBlock does prop change.Methods inherited from class snap.view.ViewOwner
addKeyActionFilter, addKeyActionHandler, addViewEventHandler, beep, cancelReset, createUIForClass, dispatchEventToOwner, enableEvents, fireActionEventForObject, getEnv, getFirstFocus, getImage, getNative, getToggleGroup, getUI, getUI, getUISource, getView, getView, getViewBoolValue, getViewFloatValue, getViewIntValue, getViewItems, getViewSelIndex, getViewSelItem, getViewStringValue, getViewText, getViewValue, getWindow, initShowing, initWindow, invokeResetUI, invokeRespondUI, isEventThread, isSendEventDisabled, isShowing, isUISet, isViewDisabled, isViewEnabled, isViewVisible, isWindowSet, isWindowVisible, requestFocus, resetLater, runDelayed, runLater, setFirstFocus, setSendEventDisabled, setShowing, setViewDisabled, setViewEnabled, setViewItems, setViewItems, setViewSelIndex, setViewSelItem, setViewText, setViewValue, setViewVisible, setWindowVisible
Methods inherited from class snap.props.PropObject
addDeepChangeListener, addPropChangeListener, addPropChangeListener, clone, firePropChange, firePropChange, firePropChange, getPropDefault, getPropForName, getPropParent, getPropSet, getPropsForArchival, getPropsForArchivalExtra, getPropsString, getPropValue, initProps, isPropDefault, processPropChange, removeDeepChangeListener, removePropChangeListener, removePropChangeListener, setPropsString, setPropValue, setPropValues, toString, toStringProps
-
Constructor Details
-
TextPane
public TextPane()Constructor.
-
-
Method Details
-
getTextArea
Returns the TextArea. -
createTextArea
Creates the TextArea. -
getToolBarPane
Returns the toolbar pane. -
createUI
Create UI. -
initUI
protected void initUI()Initialize UI panel. -
resetUI
protected void resetUI()Reset UI. -
respondUI
Respond to UI controls. -
saveChanges
public void saveChanges()Save file. -
saveChangesImpl
protected void saveChangesImpl()Save file. -
getSelectionInfo
Get compile info. -
find
Finds the given string. -
showLineNumberPanel
public void showLineNumberPanel()Shows the LineNumberPanel. -
textAreaDidPropChange
Called when TextArea does prop change. -
textBlockDidPropChange
Called when TextBlock does prop change. -
main
Silly test.
-