|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
echopointng.ComponentEx
echopointng.AbleComponent
echopointng.ListSection
public class ListSection
The ListSection class provides a Component
that can contain other Components or objects in a list.
The list can be ordered or unordered. The default is unordered.
The class uses the ListModel interface to provide
its contents.
| Field Summary | |
|---|---|
static int |
BULLETS_CIRCLE
|
static int |
BULLETS_DECIMAL
|
static int |
BULLETS_DECIMAL_LEADING_ZERO
|
static int |
BULLETS_DEFAULT
default bullets |
static int |
BULLETS_DISC
|
static int |
BULLETS_LOWER_ALPHA
|
static int |
BULLETS_LOWER_GREEK
|
static int |
BULLETS_LOWER_LATIN
|
static int |
BULLETS_LOWER_ROMAN
|
static int |
BULLETS_NONE
Determines what type of bullet points are used |
static int |
BULLETS_SQUARE
|
static int |
BULLETS_UPPER_ALPHA
|
static int |
BULLETS_UPPER_LATIN
|
static int |
BULLETS_UPPER_ROMAN
|
static int |
ORDERED
Determines whether the list is ordered or not |
static java.lang.String |
PROPERTY_BULLETS
|
static java.lang.String |
PROPERTY_BULLETS_IMAGE
|
static java.lang.String |
PROPERTY_MODEL
|
static java.lang.String |
PROPERTY_ORDERING
|
static int |
UNORDERED
|
| Fields inherited from class echopointng.ComponentEx |
|---|
PROPERTY_HIDDEN |
| Fields inherited from interface echopointng.able.AccessKeyable |
|---|
PROPERTY_ACCESS_KEY |
| Fields inherited from interface echopointng.able.Borderable |
|---|
PROPERTY_BORDER |
| Fields inherited from interface echopointng.able.MouseCursorable |
|---|
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI |
| Fields inherited from interface echopointng.able.Insetable |
|---|
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.able.ToolTipable |
|---|
PROPERTY_TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
ListSection()
Constructs a ListSection with nothing in it |
|
ListSection(int ordering)
Constructs a ListSection
Ordering can be one of the following values. |
|
ListSection(int ordering,
java.util.List newList)
Constructs a ListSection with the objects supplied
in the provided list. |
|
ListSection(int ordering,
java.lang.Object[] arrList)
Constructs a ListSection with the objects supplied
in the provided array. |
|
ListSection(java.lang.Object[] arrList)
Constructs a ListSection with the list contents as arrList. |
|
| Method Summary | |
|---|---|
void |
add(Component c)
Adds a Component to the ListSection
Note that this will only be performed if the underlying model
is derived from DefaultListModel. |
void |
add(Component c,
int index)
Adds a Component to the ListSectionat
the specified index
Note that this will only be performed if the underlying model
is derived from DefaultListModel. |
void |
add(java.lang.String s)
Adds a String to the ListSection
Note that this will only be performed if the underlying model
is derived from DefaultListModel. |
void |
add(java.lang.String s,
int index)
Adds a String to the ListSectionat
the specified index
Note that this will only be performed if the underlying model
is derived from DefaultListModel. |
void |
addListDataListener(ListDataListener l)
Adds a ListDataListener to the section |
int |
getBullets()
|
ImageReference |
getBulletsImage()
|
java.lang.Object[] |
getList()
|
ListModel |
getModel()
|
int |
getOrdering()
|
void |
remove(Component c)
Removes a Component from the ListSection
Note that this will only be performed if the underlying model
is derived from DefaultListModel. |
void |
remove(java.lang.String s)
Removes a String from the ListSection
Note that this will only be performed if the underlying model
is derived from DefaultListModel. |
void |
removeListDataListener(ListDataListener l)
Removes a ListDataListener from this component. |
void |
setBullets(int newBullets)
Sets the bullets in use for the ListSection. |
void |
setBulletsImage(ImageReference newBulletsImage)
Sets the ImageReference of the ListSection's bullets. |
void |
setList(java.util.List newList)
Sets the contents of the ListModel of the ListSection. |
void |
setList(java.lang.Object[] newList)
Sets the contents of the ListModel of the ListSection. |
void |
setModel(ListModel newModel)
Sets the ListModel of the ListSection. |
void |
setOrdering(int newOrdering)
Sets the ordering in use for the ListSection. |
| Methods inherited from class echopointng.AbleComponent |
|---|
getAccessKey, getBorder, getHeight, getInsets, getMouseCursor, getMouseCursorURI, getOutsets, getToolTipText, getWidth, setAccessKey, setBorder, setHeight, setInsets, setMouseCursor, setMouseCursorURI, setOutsets, setToolTipText, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_ORDERING
public static final java.lang.String PROPERTY_BULLETS
public static final java.lang.String PROPERTY_BULLETS_IMAGE
public static final java.lang.String PROPERTY_MODEL
public static final int BULLETS_NONE
public static final int BULLETS_DISC
public static final int BULLETS_CIRCLE
public static final int BULLETS_SQUARE
public static final int BULLETS_DECIMAL
public static final int BULLETS_DECIMAL_LEADING_ZERO
public static final int BULLETS_LOWER_ROMAN
public static final int BULLETS_UPPER_ROMAN
public static final int BULLETS_LOWER_ALPHA
public static final int BULLETS_UPPER_ALPHA
public static final int BULLETS_LOWER_GREEK
public static final int BULLETS_LOWER_LATIN
public static final int BULLETS_UPPER_LATIN
public static final int BULLETS_DEFAULT
public static final int ORDERED
public static final int UNORDERED
| Constructor Detail |
|---|
public ListSection()
ListSection with nothing in it
public ListSection(java.lang.Object[] arrList)
ListSection with the list contents as arrList.
public ListSection(int ordering)
ListSection
Ordering can be one of the following values.
public ListSection(int ordering,
java.lang.Object[] arrList)
ListSection with the objects supplied
in the provided array.
Ordering can be one of the following values.
public ListSection(int ordering,
java.util.List newList)
ListSection with the objects supplied
in the provided list.
Ordering can be one of the following values.
| Method Detail |
|---|
public void add(java.lang.String s)
String to the ListSection
Note that this will only be performed if the underlying model is derived from DefaultListModel.
public void add(java.lang.String s,
int index)
String to the ListSectionat
the specified index
Note that this will only be performed if the underlying model is derived from DefaultListModel.
public void add(Component c)
Component to the ListSection
Note that this will only be performed if the underlying model is derived from DefaultListModel.
add in class Componentc - the child Component to add
public void add(Component c,
int index)
Component to the ListSectionat
the specified index
Note that this will only be performed if the underlying model is derived from DefaultListModel.
add in class Componentc - the child component to addindex - the index at which to add the child component, or -1 to add the
component at the endpublic void addListDataListener(ListDataListener l)
ListDataListener to the section
l - The ListDataListener to be added.public int getBullets()
ListSection
Can be one of the following values.
public ImageReference getBulletsImage()
ImageReference of the ListSection's bullets.public java.lang.Object[] getList()
ListModel of the ListSection as an array.public ListModel getModel()
ListModel of the ListSection.public int getOrdering()
ListSection
Can be one of the following values.
public void remove(java.lang.String s)
String from the ListSection
Note that this will only be performed if the underlying model is derived from DefaultListModel.
public void remove(Component c)
Component from the ListSection
Note that this will only be performed if the underlying model is derived from DefaultListModel.
remove in class Componentc - the child Component to removepublic void removeListDataListener(ListDataListener l)
l - the ListDataListener to removepublic void setBullets(int newBullets)
ListSection.
public void setBulletsImage(ImageReference newBulletsImage)
ImageReference of the ListSection's bullets.
public void setList(java.lang.Object[] newList)
ListModel of the ListSection.
public void setList(java.util.List newList)
ListModel of the ListSection.
public void setModel(ListModel newModel)
ListModel of the ListSection.
public void setOrdering(int newOrdering)
ListSection.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||