|
||||||||||
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.text.JTextComponent
javax.swing.JEditorPane
org.jdesktop.swingx.JXEditorPane
public class JXEditorPane
An extended editor pane which has the following features built in:
Nested Class Summary | |
---|---|
class |
JXEditorPane.DocumentSearchable
|
Nested classes/interfaces inherited from class javax.swing.JEditorPane |
---|
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport |
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
---|
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JEditorPane |
---|
HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITS |
Fields inherited from class javax.swing.text.JTextComponent |
---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
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.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 | |
---|---|
JXEditorPane()
|
|
JXEditorPane(String url)
|
|
JXEditorPane(String type,
String text)
|
|
JXEditorPane(URL initialPage)
|
Method Summary | |
---|---|
protected void |
applyTag(HTML.Tag tag)
Applys the tag to the current selection |
boolean |
doCommand(Object command,
Object value)
Perform the command using the object value. |
Object[] |
getCommands()
Returns an array of supported commands. |
JComboBox |
getParagraphSelector()
Retrieves a component which will be used as the paragraph selector. |
Searchable |
getSearchable()
|
boolean |
hasCommand(Object command)
Return a flag that indicates if a command is supported. |
protected void |
initActions()
Register the actions that this class can handle. |
void |
paste()
The paste method has been overloaded to strip off the tags This doesn't really work. |
void |
setEditorKit(EditorKit kit)
Overidden to perform document initialization based on type. |
void |
setSearchable(Searchable searchable)
sets the Searchable for this editor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JXEditorPane()
public JXEditorPane(String url) throws IOException
IOException
public JXEditorPane(String type, String text)
public JXEditorPane(URL initialPage) throws IOException
IOException
Method Detail |
---|
public void setEditorKit(EditorKit kit)
setEditorKit
in class JEditorPane
kit
- the desired editor behaviorJEditorPane.getEditorKit()
protected void initActions()
public JComboBox getParagraphSelector()
Note: This is only valid for the HTMLEditorKit
protected void applyTag(HTML.Tag tag)
public void paste()
paste
in class JTextComponent
JTextComponent.replaceSelection(java.lang.String)
,
Toolkit.getSystemClipboard()
,
Clipboard
public Searchable getSearchable()
public void setSearchable(Searchable searchable)
searchable
- public boolean hasCommand(Object command)
Targetable
hasCommand
in interface Targetable
command
- is a Action.ACTION_COMMAND_KEY
public Object[] getCommands()
Targetable
getCommands
in interface Targetable
public boolean doCommand(Object command, Object value)
Targetable
doCommand
in interface Targetable
command
- is a Action.ACTION_COMMAND_KEYvalue
- an arbitrary value. Usually this will be
EventObject which trigered the command.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |