|
HOME | |||||||
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.ultraswing.DefaultListViewItem
This class is a default ListViewItem object
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static DefaultListViewItem |
EMPTY_ITEM
An empty DefaultListViewItem object |
static int |
HORIZONTAL
A style that aligns text and icon horizontally |
static int |
VERTICAL
A style that aligns text and icon vertically |
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 | |
DefaultListViewItem()
Creates a DefaultListViewItem object |
|
DefaultListViewItem(String text,
Icon icon)
Creates a DefaultListViewItem object with the passed text
and icon |
|
DefaultListViewItem(String text,
Icon icon,
int style)
Creates a DefaultListViewItem object with the passed text
and icon |
Method Summary | |
int |
compareTo(Object o)
|
Color |
getBackground()
|
int |
getColumnIndex()
Returns the column index |
Color |
getForeground()
|
Dimension |
getPreferredSize()
|
int |
getRowIndex()
Returns the row index |
void |
set(String text,
Icon icon)
|
void |
setBackground(Color c)
Sets background color |
void |
setColumnIndex(int column)
Sets the column index |
void |
setForeground(Color c)
Sets foreground color |
void |
setRowIndex(int row)
Sets the row index |
void |
setStyle(int style)
Sets style |
String |
toString()
|
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 |
public static final int HORIZONTAL
public static final int VERTICAL
public static final DefaultListViewItem EMPTY_ITEM
Constructor Detail |
public DefaultListViewItem()
public DefaultListViewItem(String text, Icon icon)
text
and icon
public DefaultListViewItem(String text, Icon icon, int style)
text
and icon
style
- one of {DefaultListViewItem.VERTICAL, DefaultListViewItem.HORIZONTAL}Method Detail |
public Dimension getPreferredSize()
public void setStyle(int style)
style
- one of {DefaultListViewItem.VERTICAL, DefaultListViewItem.HORIZONTAL}public void set(String text, Icon icon)
public void setBackground(Color c)
setBackground
in interface com.ultraswing.ListViewItem
public void setForeground(Color c)
setForeground
in interface com.ultraswing.ListViewItem
public int compareTo(Object o)
compareTo
in interface Comparable
public int getRowIndex()
public void setRowIndex(int row)
public int getColumnIndex()
public void setColumnIndex(int column)
public String toString()
public Color getBackground()
public Color getForeground()
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |