|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| 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.JLabel
com.ibm.etools.iseries.ui.JFormattedLabel
com.ibm.etools.iseries.ui.FormattedTextRenderer
public class FormattedTextRenderer
It extends JFormattedLabel and implements javax.swing.ListCellRenderer. It makes JFormattedLabel as cells of a comboBox pulldown list.
ListCellRenderer,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| 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 | |
|---|---|
static String |
Copyright
|
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| 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 com.ibm.etools.iseries.ui.JFormattedComponent |
|---|
copyright |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FormattedTextRenderer()
Constructs a new FormattedTextRenderer. |
|
FormattedTextRenderer(Attributes dataAttributes,
Formatter formatter,
Validator validator,
Font font)
Constructs a new FormattedTextRenderer with the specified DataAttributes, Formatter, Validator and Font. |
|
FormattedTextRenderer(Icon image)
Constructs a new FormattedTextRenderer with the specified Icon. |
|
FormattedTextRenderer(Icon image,
int horizontalAlignment)
Constructs a new FormattedTextRenderer with the specified Icon and horizontal alignment. |
|
FormattedTextRenderer(String text)
Constructs a new FormattedTextRenderer with the specified text. |
|
FormattedTextRenderer(String text,
Icon icon,
int horizontalAlignment)
Constructs a new FormattedTextRenderer with the specified text, icon and horizontal alignment. |
|
FormattedTextRenderer(String text,
int horizontalAlignment)
Constructs a new FormattedTextRenderer with the specified text and horizontal alignment. |
|
| Method Summary | |
|---|---|
static String |
Copyright()
This method returns the copyright notice for this class. |
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
Return a component that has been configured to display the specified value. |
| Methods inherited from class com.ibm.etools.iseries.ui.JFormattedLabel |
|---|
convertInternalToUnformatted, convertUnformattedToInternal, getFieldModel, getInternalValue, getUnformattedText, isValueValid, isValueValidForNumeric, setFieldModel, setInternalValue, setText, setUnformattedText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String Copyright
| Constructor Detail |
|---|
public FormattedTextRenderer()
public FormattedTextRenderer(Attributes dataAttributes,
Formatter formatter,
Validator validator,
Font font)
dataAttributes - com.ibm.etools.iseries.ui.Attributesformatter - com.ibm.etools.iseries.ui.Formattervalidator - com.ibm.etools.iseries.ui.Validatorfont - java.awt.Fontpublic FormattedTextRenderer(Icon image)
image - javax.swing.Icon
public FormattedTextRenderer(Icon image,
int horizontalAlignment)
image - javax.swing.IconhorizontalAlignment - intpublic FormattedTextRenderer(String text)
text - java.lang.String
public FormattedTextRenderer(String text,
int horizontalAlignment)
text - java.lang.StringhorizontalAlignment - int
public FormattedTextRenderer(String text,
Icon icon,
int horizontalAlignment)
text - java.lang.Stringicon - javax.swing.IconhorizontalAlignment - int| Method Detail |
|---|
public static String Copyright()
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
getListCellRendererComponent in interface ListCellRendererlist - The JList we're painting.value - The value returned by list.getModel().getElementAt(index).index - The cells index.isSelected - True if the specified cell was selected.cellHasFocus - True if the specified cell has the focus.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||