|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo2.app.Component
echopointng.ComponentEx
echopointng.AbleComponent
echopointng.ListSection
The ListSection
class provides a Component
that
can contain other Component
s, XhtmlFragment
s
or Object
s in a list.
The list can be ordered or unordered. The default is unordered.
The class uses the ListModel
interface to provide its
contents.
If a ListSection
is added as a child of another
ListSection
, then a new level of list is rendered.
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 class nextapp.echo2.app.Component |
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY |
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(nextapp.echo2.app.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(nextapp.echo2.app.Component c,
int index)
Adds a Component to the ListSection at the
specified index. -1 indicates to add to the end of the list
Note that this will only be performed if the underlying model is derived
from DefaultListModel . |
void |
add(java.lang.Object object)
Adds an Object to the ListSection
Note that this will only be performed if the underlying model is derived
from DefaultListModel . |
void |
add(java.lang.Object object,
int index)
Adds an Object to the ListSection at the
specified index.
|
void |
addListDataListener(nextapp.echo2.app.event.ListDataListener l)
Adds a ListDataListener to the section |
int |
getBullets()
|
nextapp.echo2.app.ImageReference |
getBulletsImage()
|
java.lang.Object[] |
getList()
|
nextapp.echo2.app.list.ListModel |
getModel()
|
int |
getOrdering()
|
void |
remove(nextapp.echo2.app.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.Object object)
Removes a String from the ListSection
Note that this will only be performed if the underlying model is derived
from DefaultListModel . |
void |
removeListDataListener(nextapp.echo2.app.event.ListDataListener l)
Removes a ListDataListener from this component. |
void |
setBullets(int newBullets)
Sets the bullets in use for the ListSection . |
void |
setBulletsImage(nextapp.echo2.app.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(nextapp.echo2.app.list.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 nextapp.echo2.app.Component |
addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, processInput, remove, removeAll, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf |
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 |
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.Object object)
Object
to the ListSection
Note that this will only be performed if the underlying model is derived
from DefaultListModel
.
public void add(java.lang.Object object, int index)
Object
to the ListSection
at the
specified index.
Note that this will only be performed if the underlying model is derived
from DefaultListModel
.
public void add(nextapp.echo2.app.Component c)
Component
to the ListSection
Note that this will only be performed if the underlying model is derived
from DefaultListModel
.
public void add(nextapp.echo2.app.Component c, int index)
Component
to the ListSection
at the
specified index. -1 indicates to add to the end of the list
Note that this will only be performed if the underlying model is derived
from DefaultListModel
.
public void addListDataListener(nextapp.echo2.app.event.ListDataListener l)
ListDataListener
to the section
l
- The ListDataListener
to be added.public int getBullets()
ListSection
Can be one of the following values.
public nextapp.echo2.app.ImageReference getBulletsImage()
ImageReference
of the
ListSection's
bullets.public java.lang.Object[] getList()
ListModel
of the
ListSection
as an array.public nextapp.echo2.app.list.ListModel getModel()
ListModel
of the ListSection
.public int getOrdering()
ListSection
Can be one of the following values.
public void remove(java.lang.Object object)
String
from the ListSection
Note that this will only be performed if the underlying model is derived
from DefaultListModel
.
public void remove(nextapp.echo2.app.Component c)
Component
from the ListSection
Note that this will only be performed if the underlying model is derived
from DefaultListModel
.
public void removeListDataListener(nextapp.echo2.app.event.ListDataListener l)
l
- the ListDataListener to removepublic void setBullets(int newBullets)
ListSection
.
public void setBulletsImage(nextapp.echo2.app.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(nextapp.echo2.app.list.ListModel newModel)
ListModel
of the ListSection
.
public void setOrdering(int newOrdering)
ListSection
.
|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |