|
|||||||||||
| 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.text.JTextComponent
|
+--javax.swing.JEditorPane
|
+--javax.swing.JTextPane
|
+--planetj.gui.CMTextPaneJ
Supports I18N
| Field Summary |
| Fields inherited from class javax.swing.text.JTextComponent |
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| 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 | |
CMTextPaneJ()
CMTextPaneJ constructor comment. |
|
CMTextPaneJ(StyledDocument doc)
CMTextPaneJ constructor comment. |
|
| Method Summary | |
String |
getTranslation()
Gets the translated String. |
String |
getTranslationId()
Gets the key of the translated String. |
boolean |
isBlank()
Returns true if this TextPane is blank or contains no text. |
void |
setEnabled(boolean e)
override the super method to do a bit more |
void |
setText(String key)
Overrides the superclass to set the key for the translated String. |
void |
setTranslation(String newTranslation)
Sets the String without translating it. |
| Methods inherited from class javax.swing.JTextPane |
addStyle, getCharacterAttributes, getInputAttributes, getLogicalStyle, getParagraphAttributes, getStyle, getStyledDocument, getUIClassID, insertComponent, insertIcon, removeStyle, replaceSelection, setCharacterAttributes, setDocument, setEditorKit, setLogicalStyle, setParagraphAttributes, setStyledDocument |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CMTextPaneJ()
public CMTextPaneJ(StyledDocument doc)
doc - javax.swing.text.StyledDocument| Method Detail |
public String getTranslation()
public String getTranslationId()
public void setEnabled(boolean e)
setEnabled in class JComponentpublic void setText(String key)
setText in class JEditorPanepublic void setTranslation(String newTranslation)
public boolean isBlank()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||