|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.text.JTextComponent | +--javax.swing.JEditorPane | +--javax.swing.JTextPane | +--kiwi.ui.SimpleStyledEditor
A simple text editor that supports styles like bold, italic, and underline, and that is able to render embedded markup using proxies.
SimpleEditor
, Serialized FormInner classes inherited from class javax.swing.JEditorPane |
JEditorPane.AccessibleJEditorPane,
JEditorPane.AccessibleJEditorPaneHTML,
JEditorPane.JEditorPaneAccessibleHypertextSupport |
Inner classes inherited from class javax.swing.text.JTextComponent |
JTextComponent.AccessibleJTextComponent,
JTextComponent.KeyBinding |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
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 |
Constructor Summary | |
SimpleStyledEditor(MarkupProxyFactory proxyFactory)
Construct a new SimpleStyledEditor . |
Method Summary | |
String |
getText()
Get the text currently displayed in the editor. |
void |
insertMarkupProxy(MarkupProxy proxy)
Insert a markup proxy at the current insertion point. |
void |
insertText(String text)
Insert text at the current insertion point. |
void |
setBold()
Boldify the currently-selected content. |
void |
setItalic()
Italicize the currently-selected content. |
void |
setPlain()
Remove all style attributes from the currently-selected content. |
void |
setText(String text)
Set the text to be displayed in the editor. |
void |
setUnderline()
Underline the currently-selected content. |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SimpleStyledEditor(MarkupProxyFactory proxyFactory)
SimpleStyledEditor
.proxyFactory
- The MarkupProxyFactory
that will provide
proxies for rendering markup content.Method Detail |
public void setText(String text)
text
- The text to display.getText()
public String getText()
setText(java.lang.String)
public void insertText(String text)
text
- The text to insert.public void insertMarkupProxy(MarkupProxy proxy)
proxy
- The proxy to insert.public void setItalic()
public void setBold()
public void setUnderline()
public void setPlain()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |