1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.jvm
.mle
.constants
;
12 import cc
.squirreljme
.jvm
.mle
.brackets
.UIItemBracket
;
13 import cc
.squirreljme
.runtime
.cldc
.annotation
.Exported
;
16 * Integer and String properties for {@link UIItemBracket}.
21 public interface UIWidgetProperty
28 /** The label of the item. */
43 /** Signals that a repaint should happen. */
45 byte INT_SIGNAL_REPAINT
=
63 /** Width and height in old+new. */
65 byte INT_WIDTH_AND_HEIGHT
=
68 /** The type of {@link UIListType} to use. */
73 /** The number of elements to appear on a list. */
75 byte INT_NUM_ELEMENTS
=
78 /** Enable or get enabled for a given list item */
80 byte INT_LIST_ITEM_DISABLED
=
84 * Select or get select for a given list item. If the locking code is not
85 * the same, this is likely from another sequence.
87 * @squirreljme.uiwidgetparam 1 The locking code, to check which list
88 * selection update sequence this is in.
89 * @squirreljme.uiwidgetparam 2 The selection state of the item.
92 byte INT_LIST_ITEM_SELECTED
=
95 /** The dimension of the drawn icon image ({@code DxD}). */
97 byte INT_LIST_ITEM_ICON_DIMENSION
=
100 /** The label for a list item. */
102 byte STRING_LIST_ITEM_LABEL
=
105 /** The ID for a list entry, to detect changes. */
107 byte INT_LIST_ITEM_ID_CODE
=
110 /** The font to use for the item ({@code pxsize|style|name}). */
112 byte INT_LIST_ITEM_FONT
=
115 /** The {@link UIItemType} this item is. */
117 byte INT_UIITEM_TYPE
=
121 * Select or get select for a given list item.
123 * @squirreljme.uiwidgetparam 1 The current locking code this is intended
124 * for, for new codes this should be zero.
125 * @squirreljme.uiwidgetparam 2 The new locking code, zero clears.
128 byte INT_UPDATE_LIST_SELECTION_LOCK
=
131 /** The form title. */
133 byte STRING_FORM_TITLE
=
136 /** Signal focus on this item. */
138 byte INT_SIGNAL_FOCUS
=
141 /** The number of properties. */
143 byte NUM_PROPERTIES
=