|
SilverStream Application Server 3.5 |
||||||||
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 | +--com.sssw.rt.jform.AgcJEditorPane
A lightweight component that provides an editing area for text. The AgcJEditorPane class extends javax.swing.JEditorPane, adding data binding.
JEditorPane is a text component that enables editing of various kinds of content. This component uses implementations of the EditorKit to accomplish its behavior. It effectively morphs into the proper kind of text editor for the kind of content it is given. The content type that editor is bound to at any given time is determined by the EditorKit currently installed. If the content is set to a new URL, its type is used to determine the EditorKit that should be used to load the content.
By default, the following types of content are known:
There are several ways to load content into an editor pane:
JEditorPane.setText(String)
JEditorPane.read(InputStream, Object)
JEditorPane.setPage(String)
or
JEditorPane.setPage(URL)
For more information, see JEditorPane
.
Inner 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 |
Field Summary | |
static int |
NO_LIMIT
Used to remove a limit on the allowed number of characters. |
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 | |
AgcJEditorPane()
AgcJEditorPane constructor. |
Method Summary | |
boolean |
getEmptyStringIsNull()
Returns true if the value of an empty text control is null, instead of the empty String, when the text control is empty. |
int |
getMaxLength()
Gets the maximum number of characters allowed in the control. |
int |
getMinLength()
Gets the minimum number of characters allowed in the control. |
void |
setEmptyStringIsNull(boolean b)
Specifies whether the control's value is null or an empty String when the control is empty. |
void |
setMaxLength(int length)
Sets the maximum number of characters allowed in the control. |
void |
setMinLength(int length)
Sets the minimum number of characters allowed in the control. |
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,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Methods implemented from interface com.sssw.rt.form.AgiHelpInfo |
getHelpInfo,
setHelpInfo |
Field Detail |
public static final int NO_LIMIT
Constructor Detail |
public AgcJEditorPane()
Method Detail |
public boolean getEmptyStringIsNull()
public void setEmptyStringIsNull(boolean b)
AgcJEditorPane.getEmptyStringIsNull()
public int getMaxLength()
AgcJEditorPane.setMaxLength(int)
public int getMinLength()
AgcJEditorPane.setMinLength(int)
public void setMaxLength(int length)
public void setMinLength(int length)
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |