|
|||||||||
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_list
multilist_list represents a single column in a multilist. This interactor manages the layout of a contained list and an optional title over that list.
Field Summary | |
static int |
ATTACH_CENTER
|
static int |
ATTACH_LEFT
|
static int |
ATTACH_RIGHT
|
protected callback_object |
cb
|
protected java.util.Vector |
contents
|
protected boolean |
fixedorder
|
protected boolean |
fixedsize
|
protected listbox |
listbox
|
protected multilist |
multilist
|
protected int |
position
|
protected java.lang.Object |
title
|
protected interactor |
titleInt
|
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_list()
|
|
multilist_list(java.lang.Object title)
Create a multilist_list with no list contents, providing only a title object. |
|
multilist_list(java.lang.Object title,
java.util.Vector contents,
boolean fixedsize,
boolean fixedorder,
int position,
callback_object cb)
Construct a new multilist_list. |
Method Summary | |
callback_object |
callback_obj()
Return the current callback_object for this interactor. |
void |
callback(interactor from,
event evt,
int cbNum,
java.lang.Object ui)
The multilist_list object implements the callback_object interface. |
java.util.Vector |
contents()
Return the contents vector of the list. |
boolean |
fixedorder()
Return the current value of fixedorder, indicating whether the list should be interactively re-orderable within its multilist via drag-and-drop. |
boolean |
fixedsize()
Return the current value of fixedsize, indicating whether the list should be resizable or not. |
listbox |
listbox()
Return the actual listbox interactor contained within this multilist_list. |
multilist |
multilist()
Return the multilist which contains us, or null. |
int |
position()
Return the current title position flag, either ATTACH_RIGHT, ATTACH_CENTER, or ATTACH_LEFT. |
void |
set_callback_obj(callback_object cb)
Set the callback object of this interactor. |
void |
set_contents(java.util.Vector contents)
Set the contents vector of the list. |
void |
set_fixedorder(boolean fixedord)
Set the fixedorder flag, indicating whether this list's position within its multilist should be interactively changeable. |
void |
set_fixedsize(boolean fixedsize)
Set the fixedsize flag, indicating whether this list's size is fixed within its multilist. |
protected void |
set_multilist(multilist m)
Set the multilist that contains us. |
void |
set_position(int position)
Set the title position flag to one of either ATTACH_LEFT, ATTACH_CENTER, or ATTACH_RIGHT. |
void |
set_title(java.lang.Object title)
Set the title object for this interactor. |
interactor |
title_interactor()
Return the actual title interactor contained within this multilist_list. |
java.lang.Object |
title()
Return the original object passed in to use as the title. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int ATTACH_LEFT
public static final int ATTACH_CENTER
public static final int ATTACH_RIGHT
protected java.lang.Object title
protected interactor titleInt
protected java.util.Vector contents
protected boolean fixedsize
protected boolean fixedorder
protected int position
protected listbox listbox
protected callback_object cb
protected multilist multilist
Constructor Detail |
public multilist_list(java.lang.Object title, java.util.Vector contents, boolean fixedsize, boolean fixedorder, int position, callback_object cb)
Object
- title Callers can pass any type of object to use as a title
for a multilist_list. If null is passed, the list will be constructed with no
title. If an interactor is passed, that interactor will be used as the title.
If some other, non-interactor object is passed, the constructor will create
a new multilist_title object (basically a label) that contains the stringified
representation of the passed object as its label.Vector
- contents The list will be initialized with the stringified
representation of the object in this vector.boolean
- fixedsize Indicates whether this column will be fixed in
size.boolean
- fixedorder Indicates whether this column can have its
position changed interactively via drag-and-drop.int
- position Indicates the preferred position for the title. This
value should be one of the contstants ATTACH_LEFT, ATTACH_CENTER, or
ATTACH_RIGHT.callback_object
- cb The callback object for this list. The callback
behavior for muiltilist_lists is a bit more involved than for basic lists.
Normally, callers will pass null here, and any list callbacks will be forwarded
to the containing multilist, which will then dispatch them to its
callback object. If, however, you want to specify per-list callback objects,
you can pass them here and any list callbacks will not get forwarded to
the multilist.public multilist_list(java.lang.Object title)
public multilist_list()
Method Detail |
public void callback(interactor from, event evt, int cbNum, java.lang.Object ui)
public java.lang.Object title()
public java.util.Vector contents()
public boolean fixedsize()
public boolean fixedorder()
public int position()
public listbox listbox()
public interactor title_interactor()
public callback_object callback_obj()
public multilist multilist()
public void set_title(java.lang.Object title)
public void set_contents(java.util.Vector contents)
public void set_fixedsize(boolean fixedsize)
public void set_fixedorder(boolean fixedord)
public void set_position(int position)
public void set_callback_obj(callback_object cb)
protected void set_multilist(multilist m)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |