|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel org.softsmithy.lib.swing.JStyledPanel org.softsmithy.lib.swing.customizer.AbstractCustomizer org.softsmithy.lib.swing.JCustomizer org.softsmithy.lib.swing.customizer.AbstractTextCustomizer org.softsmithy.lib.swing.JHtmlCustomizer
public class JHtmlCustomizer
A basic HTML text customizer using JEditorPane to display and edit the HTML text.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 | |
---|---|
JHtmlCustomizer()
Creates a new instance of this class. |
Method Summary | |
---|---|
HorizontalAlignment |
getHorizontalAlignment()
Gets the horizontal alignment of the text. |
String |
getHtmlBody()
Gets the HTML body. |
String |
getText()
Gets the HTML body. |
void |
setComponent(JComponent component)
Sets and configures the JEditorPane to wrap. |
void |
setDefaultFont(Font f)
Sets the font of this customizer. |
void |
setDefaultForeground(Color c)
Sets the forground color of this customizer. |
protected void |
setHorizontalAlignmentOnly(HorizontalAlignment alignment)
Sets the horizontal alignment of the text. |
void |
setHtmlBody(String htmlBody)
Sets the HTML body. |
void |
setText(String text)
Sets the HTML text. |
Methods inherited from class org.softsmithy.lib.swing.customizer.AbstractTextCustomizer |
---|
getEditableStateManager, getEditor, isEditable, isEditorScrollable, setEditable, setEditableStateManager, setEditor, setEditorScrollable, setHorizontalAlignment, setStateManager, toString |
Methods inherited from class org.softsmithy.lib.swing.customizer.AbstractCustomizer |
---|
getCommonCustomizableProperties, getCustomizableProperties, setCustomizableProperties |
Methods inherited from class org.softsmithy.lib.swing.JStyledPanel |
---|
getBackground, getDefaultBackground, getDefaultFont, getDefaultForeground, getFont, getForeground, getNoneStyle, getParentStyle, getStyle, isDefaultOpaque, isOpaque, setBackground, setFont, setForeground, setOpaque, setStyle |
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 |
Methods inherited from interface org.softsmithy.lib.swing.style.Styleable |
---|
addHierarchyListener, getParent, removeHierarchyListener |
Constructor Detail |
---|
public JHtmlCustomizer()
Method Detail |
---|
public void setText(String text)
setText
in class AbstractTextCustomizer
text
- the HTML textpublic void setComponent(JComponent component)
setComponent
in class JCustomizer
component
- the JEditorPane to wrap
IllegalArgumentException
- if the component is not a JEditorPanepublic String getText()
getText
in class AbstractTextCustomizer
protected void setHorizontalAlignmentOnly(HorizontalAlignment alignment)
setHorizontalAlignmentOnly
in class AbstractTextCustomizer
alignment
- the horizontal alignment of the textpublic HorizontalAlignment getHorizontalAlignment()
getHorizontalAlignment
in class AbstractTextCustomizer
public void setDefaultForeground(Color c)
setDefaultForeground
in interface Styleable
setDefaultForeground
in class JCustomizer
c
- the forground colorpublic void setDefaultFont(Font f)
setDefaultFont
in interface Styleable
setDefaultFont
in class JCustomizer
f
- the fontpublic String getHtmlBody()
public void setHtmlBody(String htmlBody)
htmlBody
- the HTML body
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |