public class DruListPanel extends DruGCPanel implements ListDisplay, LabelActor, ClickListener, ListWatcher, List
Modifier and Type | Field and Description |
---|---|
(package private) java.util.ArrayList<DruListClickActor> |
clickActors |
(package private) DList |
dList |
(package private) java.lang.Object[] |
items |
(package private) boolean |
multiple |
static int |
NORMAL_ORDER |
(package private) int |
nrow |
(package private) int |
order |
static int |
REVERSE_ORDER |
(package private) static long |
serialVersionUID |
(package private) KeyedList<? extends IDd> |
targetKL |
(package private) java.lang.String[] |
tooltips |
actionRelay, methodName
infoReceiver, SCROLLABLE
Constructor and Description |
---|
DruListPanel() |
DruListPanel(int nr) |
Modifier and Type | Method and Description |
---|---|
void |
able(boolean b) |
void |
addClickAction(DruListClickActor actor) |
void |
addLine() |
void |
clear() |
void |
ensureHasSelection() |
int |
getSelectedIndex() |
int[] |
getSelectedIndexes() |
java.lang.Object |
getSelectedItem() |
java.lang.String |
getSelectedName() |
boolean |
isSelectionEmpty() |
void |
labelAction(java.lang.String s,
boolean b) |
void |
listChanged(java.lang.Object src) |
int |
listSize() |
void |
pointClicked(int x,
int y,
int b) |
void |
removeLine() |
void |
selectAt(int i) |
void |
setBg(java.awt.Color c) |
void |
setCellRenderer(DruListCellRenderer obj) |
void |
setItems(java.util.ArrayList<? extends java.lang.Object> obal) |
void |
setItems(java.lang.Object[] sain) |
void |
setKeyedList(KeyedList<? extends IDd> idkl) |
void |
setMultiple() |
void |
setOrder(int ord) |
void |
setSelected(java.lang.Object obj) |
void |
setSelectedItem(java.lang.Object obj) |
private void |
syncFromKeyedList() |
void |
updateDisplay() |
action, action, action, action, action, action, action, disableRelaying, getAction, getActionRelay, hasAction, hasRelay, performAction, performAction, setAction, setActionMethod, setActionRelay, setMethodName, unstoredValueChange, valueChange, valueChange, valueChange, valueChange, valueChange
addBorder, addCardPanel, addDComponent, addDComponent, addEtchedBorder, addMenu, addPanel, addPanel, addRaw, addSingleDComponent, addSunkenBorder, addTitledBorder, exportInfo, getBg, getGUIPeer, getID, getInfo, getInfoReceiver, getLocation, getPreferredSize, getTip, getTitle, getXYLocationOnScreen, mouseButtonPressed, postApply, removeAll, removeDComponent, removePanel, repaint, revalidate, seForegroundColor, setBackgroundColor, setBorderLayout, setColors, setColors, setEmptyBorder, setEtchedBorder, setEtchedUpBorder, setFallbackBackgroundColor, setFallbackForegroundColor, setFg, setFlowCenter, setFlowLayout, setFlowLeft, setFlowRight, setGridLayout, setID, setInfo, setInfoReceiver, setPreferredSize, setPreferredSize, setSingle, setSunkenBorder, setTip, setTitle, setTitleInfo, setTooltipTarget, toString, validate
static final long serialVersionUID
public static final int NORMAL_ORDER
public static final int REVERSE_ORDER
int order
int nrow
DList dList
java.lang.Object[] items
java.lang.String[] tooltips
java.util.ArrayList<DruListClickActor> clickActors
boolean multiple
public void setItems(java.lang.Object[] sain)
public void setItems(java.util.ArrayList<? extends java.lang.Object> obal)
setItems
in interface ListDisplay
public void setMultiple()
public void setCellRenderer(DruListCellRenderer obj)
public void updateDisplay()
updateDisplay
in interface Display
public java.lang.Object getSelectedItem()
public int getSelectedIndex()
public java.lang.String getSelectedName()
public void labelAction(java.lang.String s, boolean b)
labelAction
in interface LabelActor
public void clear()
public void selectAt(int i)
public void setSelectedItem(java.lang.Object obj)
public void setSelected(java.lang.Object obj)
setSelected
in interface List
public void addClickAction(DruListClickActor actor)
public void pointClicked(int x, int y, int b)
pointClicked
in interface ClickListener
public void setKeyedList(KeyedList<? extends IDd> idkl)
setKeyedList
in interface List
private void syncFromKeyedList()
public void listChanged(java.lang.Object src)
listChanged
in interface ListWatcher
public void addLine()
public void removeLine()
public void ensureHasSelection()
public boolean isSelectionEmpty()
public int listSize()
public void setOrder(int ord)
public int[] getSelectedIndexes()
Copyright © 2013. All Rights Reserved.