|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.lib.min_interactor | +--sub_arctic.lib.base_interactor | +--sub_arctic.contrib.multilist
The multilist class manages a coordinated set of lists (specifically, multilist_list instances).
Field Summary | |
protected callback_object |
cb
|
protected boolean |
coord
|
static int |
DOUBLE_CLICK
An item in the list has been double-clicked. |
static int |
DRAG
An item in the list has been dragged. |
static int |
LIST_DRAG
An entire list column is being dragged. |
protected java.util.Vector |
mlists
|
protected int |
numlists
|
protected listbox_v_scrollbar |
sb
|
protected java.util.Vector |
seps
|
static int |
SINGLE_CLICK_FINAL
An item in the list has a final single click received. |
static int |
SINGLE_CLICK_PENDING
An item in the list has a single click pending. |
protected int |
size
|
Fields inherited from class sub_arctic.lib.base_interactor |
_child_index,
_child_list,
_clip_bounds,
_constraint_flags,
_enabled_constraint,
_flags,
_h,
_h_constraint,
_parent,
_part_a_constraint,
_part_b_constraint,
_user_data,
_visible_constraint,
_w,
_w_constraint,
_x,
_x_constraint,
_y,
_y_constraint,
default_child_hint |
Constructor Summary | |
multilist(int x,
int y,
int w,
int h,
boolean coord,
java.util.Vector mlists,
callback_object cb)
Construct a new multilist. |
|
multilist(java.util.Vector mlists)
Create a multilist from only a vector of multilist_lists. |
Method Summary | |
void |
add_list(multilist_list l)
|
callback_object |
callback_obj()
|
void |
callback(interactor from,
event evt,
int cbNum,
java.lang.Object ui)
This callback method collects callbacks from multllist_lists that don't have a "private" callback object set on them and forwards to our callback object. |
boolean |
drag_end(event evt,
java.lang.Object ui)
drag_end |
boolean |
drag_feedback(event evt,
java.lang.Object ui)
drag_feedback does nothing. |
boolean |
drag_start(event evt,
java.lang.Object ui)
Implements dragging of entire lists. |
int |
first_callback_num()
Indicate the first callback number used by this interactor (in this case DOUBLE_CLICK). |
multilist_list |
first_list()
Return the first multilist_list in the multilist. |
void |
insert_list_at(multilist_list l,
int index)
|
int |
last_callback_num()
Indicate the last callback number used by this interactor (in this case LIST_DRAG). |
multilist_list |
last_list()
Return the last multilist_list in the multilist. |
multilist_list |
listbox_at(int index)
Return the multilist_list at the specified position. |
static void |
main(java.lang.String[] argv)
|
java.util.Enumeration |
multilists()
Return an enumeration of all multilist_lists. |
int |
numlists()
Return the number of multilists we're currently managing. |
void |
pick(int ptx,
int pty,
pick_collector pickList)
We override pick because we want to see if a pick occurs on any of our titles. |
void |
remove_all_lists()
|
void |
remove_list_at(int index)
|
void |
remove_list(multilist_list l)
|
void |
set_callback_obj(callback_object cb)
|
void |
set_list_at(multilist_list l,
int index)
Replace the multilist_list at the specified index with the provided one. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int DOUBLE_CLICK
public static final int DRAG
public static final int SINGLE_CLICK_PENDING
public static final int SINGLE_CLICK_FINAL
public static final int LIST_DRAG
protected listbox_v_scrollbar sb
protected int numlists
protected java.util.Vector mlists
protected java.util.Vector seps
protected boolean coord
protected int size
protected callback_object cb
Constructor Detail |
public multilist(int x, int y, int w, int h, boolean coord, java.util.Vector mlists, callback_object cb)
int
- x Initial X positionint
- y Initial Y positionint
- w Initial widthint
- h Initial heightboolean
- coord Indicates whether the contained lists are "coordinated"
or not. Coordinated means that selecting an item in one column causes
the corresponding items in other columns to be selected. It also means that
all lists must contain the same number of elements, and that they will
be scrolled together. Non-coordinated multilists can contain lists of different
numbers of elements and can be individually-selectable. The scrollbar will
only control the first list though, so this is probably not what you want.Vector
- mlists A Vector of all of the multilist_lists that this multilist
will contain.public multilist(java.util.Vector mlists)
Method Detail |
public int first_callback_num()
sub_arctic.lib.input#callback_object
public int last_callback_num()
sub_arctic.lib.input#callback_object
public multilist_list listbox_at(int index)
public int numlists()
public void add_list(multilist_list l)
public void insert_list_at(multilist_list l, int index)
public void set_list_at(multilist_list l, int index)
public void remove_list(multilist_list l)
public void remove_list_at(int index)
public void remove_all_lists()
public multilist_list first_list()
public multilist_list last_list()
public java.util.Enumeration multilists()
public boolean drag_start(event evt, java.lang.Object ui)
public boolean drag_feedback(event evt, java.lang.Object ui)
public boolean drag_end(event evt, java.lang.Object ui)
public void callback(interactor from, event evt, int cbNum, java.lang.Object ui)
public void pick(int ptx, int pty, pick_collector pickList)
public callback_object callback_obj()
public void set_callback_obj(callback_object cb)
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |