|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component diamondedge.swing.DsIconList
public class DsIconList
Contains a collection of Icon objects, each of which can be referred to by its index or key.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 | |
---|---|
DsIconList()
|
Method Summary | |
---|---|
void |
add(Icon icon)
Appends the Icon to the list. |
void |
add(int index,
String key,
Icon icon)
Adds the Icon to the list at the given position and set its key. |
void |
add(int index,
String key,
Image image)
Adds an ImageIcon for the Image to the list at the given position and set its key. |
void |
add(String key,
Icon icon)
Appends the Icon to the list and set its key. |
void |
clear()
Removes all Icons from the list. |
Icon |
getIcon(int index)
Returns the Icon at the given position in the list. |
static Icon |
getIcon(Object indexOrKeyOrIcon,
IconList iconList)
Returns an Icon from the icons loaded into the IconList. |
Icon |
getIcon(String key)
Returns the Icon for the given key. |
int |
getIconCount()
Returns the number Icons in the list. |
void |
remove(int index)
Removes the Icon at the given position from the list. |
void |
remove(String key)
Removes the Icon with the given key from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DsIconList()
Method Detail |
---|
public Icon getIcon(int index)
getIcon
in interface IconList
public Icon getIcon(String key)
getIcon
in interface IconList
public static Icon getIcon(Object indexOrKeyOrIcon, IconList iconList)
public int getIconCount()
public void add(Icon icon) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public void add(String key, Icon icon) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public void add(int index, String key, Icon icon) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public void add(int index, String key, Image image) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public void remove(int index)
public void remove(String key)
public void clear()
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |