|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.infoengine.modeler.ModelerPanel
com.infoengine.modeler.UI.EditorPanel
Nested Class Summary | |
(package private) class |
EditorPanel.PageTreeSelectionListener
handles changes when the selection the design tree changes... |
(package private) class |
EditorPanel.UndoHandler
internal class that keeps the undo manager and document state up to date. |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
EditorPanel()
no arg construct kept for JBuilder designer should never be used otherwise... |
|
EditorPanel(EditorContainer ec,
MainPanel mp,
boolean t)
|
Method Summary | |
(package private) boolean |
canRedo()
is there anything that can be redone? |
(package private) boolean |
canUndo()
is there anything that can be undone? |
private void |
caretInTag()
|
private void |
checkDrop()
|
private void |
checkTaglib(JSPTag jt)
single out taglib JSP tags to set up associations... |
(package private) void |
checkTaglibs()
package so code insight can access... |
(package private) void |
copy()
copy selection to clipboard |
private boolean |
cursorInEditableTag()
|
(package private) void |
cut()
cut selection to clipboard |
(package private) void |
DesignTree_mouseClicked(MouseEvent e)
mouse clicked in the design tree... |
(package private) void |
edit()
|
private boolean |
editableText(String text)
|
(package private) void |
EditMenuItem_actionPerformed(ActionEvent e)
user selected the "Edit" item from the popup menu |
(package private) void |
EditorTabbedPane_stateChanged(ChangeEvent e)
tabbed pane event handler (switch from design to source mode) KEEP? |
(package private) String |
getAbsoluteName()
|
private String |
getIndent(int from)
return the indent of the line containing a specific caret position |
(package private) IOManager |
getIOManager()
|
private Dropable |
getParentDropable()
get a Dropable item from the parent object |
(package private) String |
getRelativeName()
|
String |
getSource()
|
JTextComponent |
getTextComponent()
|
(package private) void |
goTo()
preset goto dialog |
(package private) void |
goToLine(int lineNo)
move the cursor to a specific line number |
(package private) boolean |
hasChanged()
has the internal document changed? |
private void |
insert(int offset,
String string)
|
(package private) boolean |
isJSP()
does this Panel contain JSP source? |
(package private) boolean |
isTask()
does this Panel contain task source? |
(package private) void |
jbInit()
|
void |
matchBraces(KeyEvent e)
|
(package private) void |
open(SourceTree sourceTree)
|
(package private) void |
paste()
paste text from clipboard |
(package private) void |
redo()
if possible redo the last thing undone? |
private void |
refresh()
some basic initialization/re-initialization |
(package private) void |
resetCursor()
reset the editor's cursor to its default. |
(package private) void |
resetUndo()
reset the undo manager. |
(package private) boolean |
save()
|
(package private) boolean |
save(SourceTree sourceTree)
|
(package private) void |
selectAll()
set selection to entire document |
(package private) void |
setEditorCursor(Cursor c)
set the cursor this editor should display |
(package private) void |
setHasChanged(boolean newChanged)
update the state of the internal document |
(package private) void |
setIOManager(IOManager manager)
|
(package private) void |
setSource(String text)
fill this text editor with some arbitrary text |
(package private) void |
setSourceTree(SourceTree tree)
|
(package private) void |
SourceTextArea_caretUpdate(CaretEvent e)
caret update handler... |
(package private) void |
SourceTextArea_keyPressed(KeyEvent e)
key pressed in text component |
(package private) void |
SourceTextArea_mouseClicked(MouseEvent e)
mouse clicked in the text area event handler... |
(package private) void |
undo()
if possible undo the last thing done. |
private void |
updateLineColumn()
update the line and column info in the status bar |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
BorderLayout borderLayout1
JTabbedPane EditorTabbedPane
TagInsightKeyListener myTagInsightListener
UndoManager undoM
JPopupMenu EditorPopupMenu
JMenuItem EditMenuItem
JPanel SourcePanel
BorderLayout borderLayout4
JTextComponent SourceTextArea
JScrollPane SourceScrollPane
JList VDBList
JSplitPane DesignSplitPane
PageTree DesignTree
JPanel DesignPanel
BorderLayout borderLayout2
JScrollPane TreeScrollPane
JScrollPane VDBScrollPane
JLabel FileNameLabel
JPanel StatusPanel
BorderLayout borderLayout3
JLabel LineColumnLabel
private MainPanel myMainPanel
private EditorContainer myContainer
private boolean changed
private TaskExecutionPanel executorPanel
private boolean task
private TagWizard currentTagWizard
private Tag currentTag
private IOManager ioManager
private SourceTree sourceTree
Timer caretTimer
Object EDIT_LOCK
private int editSelectionStart
private int editSelectionLength
private boolean ambiguousTag
Constructor Detail |
public EditorPanel()
public EditorPanel(EditorContainer ec, MainPanel mp, boolean t)
Method Detail |
void jbInit() throws Exception
Exception
private void insert(int offset, String string)
boolean isTask()
boolean isJSP()
boolean hasChanged()
void setHasChanged(boolean newChanged)
newChanged
- - new value for changedvoid setEditorCursor(Cursor c)
c
- - the cursor to useprivate Dropable getParentDropable()
void resetCursor()
void cut()
void copy()
void paste()
void selectAll()
void goTo()
public String getSource()
public JTextComponent getTextComponent()
private void checkTaglib(JSPTag jt)
void checkTaglibs()
private void refresh()
void setSource(String text)
text
- - the new text...private String getIndent(int from)
from
- - the caret position of the line we want the indent for
private void updateLineColumn()
void goToLine(int lineNo)
lineNo
- - the line number to move the cursor to.void resetUndo()
boolean canUndo()
void undo()
boolean canRedo()
void redo()
void SourceTextArea_caretUpdate(CaretEvent e)
private void caretInTag()
void SourceTextArea_mouseClicked(MouseEvent e)
void EditMenuItem_actionPerformed(ActionEvent e)
private boolean editableText(String text)
private boolean cursorInEditableTag()
void edit()
void DesignTree_mouseClicked(MouseEvent e)
void SourceTextArea_keyPressed(KeyEvent e)
private void checkDrop()
void EditorTabbedPane_stateChanged(ChangeEvent e)
IOManager getIOManager()
void setIOManager(IOManager manager)
String getAbsoluteName()
String getRelativeName()
void setSourceTree(SourceTree tree)
void open(SourceTree sourceTree)
boolean save()
boolean save(SourceTree sourceTree)
public void matchBraces(KeyEvent e)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |