Public Member Functions | |
FittedComboBoxRenderer (JComponent fitToComponent) | |
FittedComboBoxRenderer (JComponent fitToComponent, String delimiter, String regexp) | |
int | getFitLimit () |
void | setFitLimit (int fitLimit) |
Override Component | getListCellRendererComponent (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) |
int | fitValue (Object value) |
int | fitValue (Object value, int fitLimit) |
Private Attributes | |
JComponent | fitToComponent |
int | fitLimit = -1 |
String | delimiter |
String | delimiterRegexp |
Definition at line 35 of file FittedComboBoxRenderer.java.
|
Creates a FittedComboBoxRenderer that will fit the list items to the width of a component. The list items' string values will be split using the "\" character.
Definition at line 50 of file FittedComboBoxRenderer.java. References ikayaki.gui.null. |
|
Creates a FittedComboBoxRenderer that will fit the list items to the width of a component. The list items' string values will be split using the specified pattern.
Definition at line 68 of file FittedComboBoxRenderer.java. References ikayaki.gui.null. |
|
Fits the specified object to this component. After this method call the possibly shortened string value of the object will be the text in this renderer component. Tells how many parts were removed from the text.
Definition at line 124 of file FittedComboBoxRenderer.java. References ikayaki.gui.FittedComboBoxRenderer.delimiter, ikayaki.gui.FittedComboBoxRenderer.delimiterRegexp, ikayaki.gui.FittedComboBoxRenderer.fitToComponent, ikayaki.gui.null, and ikayaki.gui.value. |
|
Fits the specified object to this component. After this method call the possibly shortened string value of the object will be the text in this renderer component. Tells how much had to be removed from the string value before it did fit.
Definition at line 112 of file FittedComboBoxRenderer.java. References ikayaki.gui.value. Referenced by ikayaki.gui.FittedComboBoxRenderer.getListCellRendererComponent(). |
|
Returns the number of parts that will be chopped of the text, or -1 if it is being detected automatically. Definition at line 80 of file FittedComboBoxRenderer.java. References ikayaki.gui.FittedComboBoxRenderer.fitLimit. |
|
Definition at line 93 of file FittedComboBoxRenderer.java. References ikayaki.gui.FittedComboBoxRenderer.fitLimit, ikayaki.gui.FittedComboBoxRenderer.fitValue(), and ikayaki.gui.value. |
Here is the call graph for this function:
|
Sets the number of parts that should be chopped of the text.
Definition at line 89 of file FittedComboBoxRenderer.java. |
|
Definition at line 40 of file FittedComboBoxRenderer.java. Referenced by ikayaki.gui.FittedComboBoxRenderer.fitValue(). |
|
Definition at line 41 of file FittedComboBoxRenderer.java. Referenced by ikayaki.gui.FittedComboBoxRenderer.fitValue(). |
|
Definition at line 38 of file FittedComboBoxRenderer.java. Referenced by ikayaki.gui.FittedComboBoxRenderer.getFitLimit(), and ikayaki.gui.FittedComboBoxRenderer.getListCellRendererComponent(). |
|
Definition at line 37 of file FittedComboBoxRenderer.java. Referenced by ikayaki.gui.FittedComboBoxRenderer.fitValue(). |