|
||||||||||
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
org.basex.gui.layout.BaseXBack
org.basex.gui.layout.BaseXPanel
org.basex.gui.layout.BaseXText
public class BaseXText
This class offers a fast text input, using the BaseXTextRenderer
class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class org.basex.gui.layout.BaseXPanel |
---|
gui |
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 | |
---|---|
BaseXText(boolean edit,
Window win)
Default constructor. |
Method Summary | |
---|---|
void |
addSearch(BaseXTextField f)
Adds a search dialog. |
void |
componentResized(ComponentEvent e)
|
void |
error(int s)
Refreshes the syntax highlighting. |
void |
find(int y)
Displays the search term. |
void |
find(String t,
boolean b)
Finds the specified term. |
byte[] |
getText()
Returns the output text. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
mouseWheelMoved(MouseWheelEvent e)
|
void |
scrollToEnd()
Jumps to the end of the text. |
void |
selectAll()
Selects the whole text. |
void |
setCaret(int p)
Sets a new cursor position. |
void |
setEnabled(boolean e)
|
void |
setFont(Font f)
|
void |
setSyntax(BaseXSyntax s)
Sets a syntax highlighter. |
void |
setText(byte[] t)
Sets the output text. |
void |
setText(byte[] t,
int s)
Sets the output text. |
void |
showCursor(int align)
Displays the currently edited text area. |
Methods inherited from class org.basex.gui.layout.BaseXPanel |
---|
componentHidden, componentMoved, componentShown, mouseClicked, mouseMoved |
Methods inherited from class org.basex.gui.layout.BaseXBack |
---|
paintComponent, setBorder, setMode |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BaseXText(boolean edit, Window win)
edit
- editable flagwin
- parent windowMethod Detail |
---|
public void setText(byte[] t)
t
- output textpublic final void addSearch(BaseXTextField f)
f
- search fieldpublic final void find(String t, boolean b)
t
- output textb
- backward browsingpublic final void find(int y)
y
- vertical positionpublic final void setText(byte[] t, int s)
t
- output texts
- text sizepublic final void setSyntax(BaseXSyntax s)
s
- syntax referencepublic final void setCaret(int p)
p
- cursor positionpublic final void scrollToEnd()
public final byte[] getText()
public final void setFont(Font f)
setFont
in class JComponent
public final void error(int s)
s
- start of optional error markpublic final void setEnabled(boolean e)
setEnabled
in class JComponent
public final void selectAll()
public final void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
mouseEntered
in class BaseXPanel
public final void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class BaseXPanel
public final void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class BaseXPanel
public final void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class BaseXPanel
public final void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class BaseXPanel
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
keyPressed
in class BaseXPanel
public final void showCursor(int align)
align
- vertical alignmentpublic final void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
keyTyped
in class BaseXPanel
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
keyReleased
in class BaseXPanel
public final void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved
in interface MouseWheelListener
mouseWheelMoved
in class BaseXPanel
public final void componentResized(ComponentEvent e)
componentResized
in interface ComponentListener
componentResized
in class BaseXPanel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |