|
TV-Browser 2.7.5 API | ||||||||
| 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
util.ui.OrderChooser
public class OrderChooser
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 | |
|---|---|
OrderChooser(Object[] currOrder,
Object[] allItems)
Construcst an OrderChooser without selection Buttons. |
|
OrderChooser(Object[] currOrder,
Object[] allItems,
boolean showSelectionButtons)
Konstruiert einen OrderChooser. |
|
| Method Summary | |
|---|---|
void |
addElement(Object value)
Add a value to the end of the list. |
void |
addListSelectionListener(ListSelectionListener listener)
Add a list selection listener to the list. |
void |
addMouseListener(MouseListener listener)
|
void |
clearSelection()
|
void |
drop(JList source,
JList target,
int rows,
boolean move)
The method that is called by the drop event. |
JButton |
getDownButton()
|
int |
getItemCount()
Get the number of items in the order chooser |
Object[] |
getOrder()
|
int |
getSelectedIndex()
Gets the selected index of the list. |
Object |
getSelectedValue()
Gets the selected value of this list. |
JButton |
getUpButton()
|
void |
invertSelection()
|
void |
refreshList()
Refreshes the list UI. |
void |
removeElementAt(int index)
Remove the value at the given index |
void |
selectAll()
|
void |
setEnabled(boolean value)
|
void |
setOrder(Object[] currOrder,
Object[] allItems)
|
void |
setSelectedIndex(int index)
Set the selection index |
void |
setSelectionMode(int value)
Set the selection mode of the list. |
| 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 |
| Constructor Detail |
|---|
public OrderChooser(Object[] currOrder,
Object[] allItems)
currOrder - Die aktuelle ReihenfolgeallItems - Alle moeglichen Objekte (die Objekte der aktuellen Reihenfolge
eingeschlossen)
public OrderChooser(Object[] currOrder,
Object[] allItems,
boolean showSelectionButtons)
Die Reihenfolge wird aus currOrder Uebernommen. Dann wird das Array allItems durchgegangen und jedes Objekt, das nicht in der Reihenfolge vorkommt, wird aufgenommen.
currOrder - Die aktuelle ReihenfolgeallItems - Alle moeglichen Objekte (die Objekte der aktuellen Reihenfolge
eingeschlossen)showSelectionButtons - Shows the selection buttons.| Method Detail |
|---|
public JButton getUpButton()
public JButton getDownButton()
public Object[] getOrder()
public void invertSelection()
public void selectAll()
public void setOrder(Object[] currOrder,
Object[] allItems)
public void clearSelection()
public void drop(JList source,
JList target,
int rows,
boolean move)
ListDropAction
drop in interface ListDropActionsource - The source JList.target - The target JList.rows - The number of the row to move the entries to.move - Only move one entry from the source to the target list.public void setEnabled(boolean value)
setEnabled in class JComponentpublic void setSelectionMode(int value)
value - The new selection mode.public void addListSelectionListener(ListSelectionListener listener)
listener - The listener to add.public void addMouseListener(MouseListener listener)
addMouseListener in class Componentpublic void refreshList()
public void addElement(Object value)
value - public void removeElementAt(int index)
index - The index to remove.public int getSelectedIndex()
public Object getSelectedValue()
public void setSelectedIndex(int index)
index - index of to be selected itempublic int getItemCount()
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||