|
|||||||||
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.lib.base_parent_interactor | +--sub_arctic.lib.listbox_helper
This class is the helper for the listbox. It holds the listbox_child_display and the horizontal scrollbar. It handles drawing the appropriate borders around the object. It is the internal use only of the listbox code. It may change without notice.
Field Summary | |
protected int |
_above_space
This variable holds the amount of space above of the list. |
protected int |
_below_space
This variable holds the amount of space below of the list. |
protected int |
_left_space
This variable holds the amount of space to the left of the list. |
protected int |
_right_space
This variable holds the amount of space to the right of the list. |
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 | |
listbox_helper()
Create a listbox helper. |
Method Summary | |
int |
available_height()
Return the amount of usable vertical pixels in this object. |
int |
available_width()
Return the amount of usable horizontal pixels in this object. |
void |
draw_self_local(drawable d)
We need to implement the border handling code, so we override the drawing code to do this. |
boolean |
has_h_scrollbar()
This is just a utility to find out if we have an h scrollbar or not. |
void |
pick(int pt_x,
int pt_y,
pick_collector pick_list)
This is the pick routine for the listbox helper. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int _right_space
protected int _left_space
protected int _above_space
protected int _below_space
Constructor Detail |
public listbox_helper()
Method Detail |
public void draw_self_local(drawable d)
drawable
- d the drawable to display onpublic int available_width()
public int available_height()
public void pick(int pt_x, int pt_y, pick_collector pick_list)
int
- pt_x the x coordinate of the pointint
- pt_y the y coordinate of the pointpick_collector
- the object to put yourself in if you are pickedpublic boolean has_h_scrollbar()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |