|
JIDE 3.5.15 | ||||||||
| 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.JPanel
com.jidesoft.combobox.AbstractComboBox.EditorComponent
com.jidesoft.combobox.AbstractComboBox.DefaultRendererComponent
public class AbstractComboBox.DefaultRendererComponent
| 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 | |
|---|---|
protected CellRendererPane |
_rendererPane
|
| Fields inherited from class com.jidesoft.combobox.AbstractComboBox.EditorComponent |
|---|
_class, _value |
| 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 | |
|---|---|
AbstractComboBox.DefaultRendererComponent(Class<?> clazz)
Creates a DefaultRendererComponent. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener l)
|
Component |
getEditorComponent()
|
int |
getHorizontalAlignment()
Returns the horizontal alignment of the content. |
Dimension |
getPreferredSize()
Gets the default preferred size {100, 18}. |
String |
getText()
Gets the text. |
int |
getVerticalAlignment()
Returns the vertical alignment of the content. |
boolean |
isEditable()
Gets the editable attribute. |
protected void |
paintComponent(Graphics g)
|
protected void |
paintRendererPane(Graphics g,
Component c)
Paint renderer pane to an appropriate place. |
void |
removeActionListener(ActionListener l)
|
void |
selectAll()
|
void |
setEditable(boolean editable)
Sets the editable attribute. |
void |
setHorizontalAlignment(int horizontalAlignment)
Sets the horizontal alignment of the content. |
void |
setText(String text)
Sets the text. |
void |
setVerticalAlignment(int verticalAlignment)
Sets the vertical alignment of the content. |
| Methods inherited from class com.jidesoft.combobox.AbstractComboBox.EditorComponent |
|---|
convertElementToString, convertStringToElement, getItem, registerKeys, setItem, textChanged |
| 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 |
| Field Detail |
|---|
protected CellRendererPane _rendererPane
| Constructor Detail |
|---|
public AbstractComboBox.DefaultRendererComponent(Class<?> clazz)
clazz - class type which this editor can handle.| Method Detail |
|---|
public Dimension getPreferredSize()
AbstractComboBox.EditorComponent
getPreferredSize in class AbstractComboBox.EditorComponentprotected void paintComponent(Graphics g)
paintComponent in class JComponent
protected void paintRendererPane(Graphics g,
Component c)
g - the Graphics instancec - the componentpublic Component getEditorComponent()
public void selectAll()
public void addActionListener(ActionListener l)
public void removeActionListener(ActionListener l)
public String getText()
AbstractComboBox.EditorComponent
getText in class AbstractComboBox.EditorComponentpublic void setText(String text)
AbstractComboBox.EditorComponent
setText in class AbstractComboBox.EditorComponenttext - the textpublic void setEditable(boolean editable)
AbstractComboBox.EditorComponent
setEditable in class AbstractComboBox.EditorComponenteditable - true or false.public boolean isEditable()
AbstractComboBox.EditorComponent
isEditable in class AbstractComboBox.EditorComponentpublic int getHorizontalAlignment()
AlignmentSupportAbstractButton's default is SwingConstants.CENTER,
but subclasses such as JCheckBox may use a different default.
getHorizontalAlignment in interface AlignmentSupportgetHorizontalAlignment in class AbstractComboBox.EditorComponenthorizontalAlignment property,
one of the following values:
SwingConstants.RIGHT
SwingConstants.LEFT
SwingConstants.CENTER
SwingConstants.LEADING
SwingConstants.TRAILING
public void setHorizontalAlignment(int horizontalAlignment)
AlignmentSupportAbstractButton's default is SwingConstants.CENTER,
but subclasses such as JCheckBox may use a different default.
setHorizontalAlignment in interface AlignmentSupportsetHorizontalAlignment in class AbstractComboBox.EditorComponenthorizontalAlignment - the alignment value, one of the following values:
SwingConstants.RIGHT
SwingConstants.LEFT
SwingConstants.CENTER
SwingConstants.LEADING
SwingConstants.TRAILING
public int getVerticalAlignment()
AlignmentSupport
getVerticalAlignment in interface AlignmentSupportgetVerticalAlignment in class AbstractComboBox.EditorComponentverticalAlignment property, one of the
following values:
SwingConstants.CENTER (the default)
SwingConstants.TOP
SwingConstants.BOTTOM
public void setVerticalAlignment(int verticalAlignment)
AlignmentSupport
setVerticalAlignment in interface AlignmentSupportsetVerticalAlignment in class AbstractComboBox.EditorComponentverticalAlignment - one of the following values:
SwingConstants.CENTER (the default)
SwingConstants.TOP
SwingConstants.BOTTOM
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||