Modifier and Type | Field and Description |
---|---|
static int |
SCROLL_DIR_ALL
Allow scroll any directions, i.e.
|
static int |
SCROLL_DIR_BOTTOM
Allow scroll down
|
static int |
SCROLL_DIR_HORIZONTAL
Allow scroll horizontally, i.e.
|
static int |
SCROLL_DIR_LEFT
Allow scroll left
|
static int |
SCROLL_DIR_NONE
Disallow scroll
|
static int |
SCROLL_DIR_RIGHT
Allow scroll right
|
static int |
SCROLL_DIR_TOP
Allow scroll up
|
static int |
SCROLL_DIR_VERTICAL
Allow scroll vertically, i.e.
|
static int |
SCROLLBAR_MODE_ACTIVE
Show scroll bars when object is being scrolled
|
static int |
SCROLLBAR_MODE_AUTO
Show scroll bars when the content is large enough to be scrolled
|
static int |
SCROLLBAR_MODE_OFF
Never show scrollbars
|
static int |
SCROLLBAR_MODE_ON
Always show scrollbars
|
static int |
STATE_CHECKED
Toggled or checked state
|
static int |
STATE_DEFAULT
Normal, released state
|
static int |
STATE_DISABLED
Disabled state
|
static int |
STATE_SCROLLED
Being scrolled
|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, objImpl, SIDE_BOTTOM, SIDE_FULL, SIDE_LEFT, SIDE_RIGHT, SIDE_TOP, SIZE_CONTENT, TEXT_DECOR_NONE, TEXT_DECOR_STRIKETHROUGH, TEXT_DECOR_UNDERLINE
Modifier | Constructor and Description |
---|---|
protected |
AbstractUIObject(com.joshvm.ui.UIObjectImpl obj) |
Modifier and Type | Method and Description |
---|---|
UIObject |
getObjectOfState(int state)
Gets a virtual ui object which represents the object which is in
specified state.
|
UIObject |
getScrollbar()
Gets a virtual ui object which represents the scrollbar of the object.
|
int |
getScrollbarMode()
Returns the scrollbar mode of the object.
|
UIObject |
getScrollbarOfState(int state)
Gets a virtual ui object which represents the scrollbar of the object in
specified state.
|
int |
getScrollBottom()
Return the height of the area below the object.
|
int |
getScrollDirection()
Returns the scroll direction of the object.
|
int |
getScrollLeft()
Return the width of the area on the left of the object.
|
int |
getScrollRight()
Return the width of the area on the right of the object.
|
int |
getScrollTop()
Returns the height of the area above the object.
|
int |
getScrollX()
Gets current X scroll position.
|
int |
getScrollY()
Gets current Y scroll position.
|
boolean |
isChecked()
Returns whether the object is checked
|
boolean |
isClickable()
Returns whether the object is clickable
|
boolean |
isDisabled()
Returns whether the object is disabled
|
boolean |
isFloating()
Returns whether the object is floating
|
boolean |
isHidden()
Returns whether the object is hidden
|
boolean |
isIgnoreLayout()
Returns whether the object is Ignore Layout
|
boolean |
isScrollable()
Returns whether the object is scrollable
|
boolean |
isScrolled()
Returns whether the object is being scrolled
|
void |
resetAllListeners()
Resets all of listeners of the object
|
void |
scrollToView()
Scroll to the object until it becomes visible on its parent
|
void |
scrollToView(boolean immediately)
Scroll to the object until it becomes visible on its parent
|
void |
scrollToX(int x)
Scrolls to a given X coordinate.
|
void |
scrollToX(int x,
boolean immediately)
Scrolls to a given X coordinate.
|
void |
scrollToY(int y)
Scrolls to a given Y coordinate.
|
void |
scrollToY(int y,
boolean immediately)
Scrolls to a given Y coordinate.
|
void |
setCancelListener(CancelListener listener)
Sets the CancelListener of the object
|
void |
setChecked(boolean checked)
Sets the object to checked state or not checked state
|
void |
setClickable(boolean clickable)
Makes the object clickable or not clickable by input devices
|
void |
setClickedListener(ClickedListener listener)
Sets the ClickedListener of the object
|
void |
setDisabled(boolean disabled)
Sets the object to disabled state or not disabled state
|
void |
setFloating(boolean floating)
Sets the object Floating or not.
|
void |
setHidden(boolean hidden)
Makes the object hidden or visible
|
void |
setIgnoreLayout(boolean ignore)
Sets the object Ignore Layout or not.
|
void |
setReadyListener(ReadyListener listener)
Sets the ReadyListener of the object
|
void |
setScrollable(boolean scrollable)
Makes the object scrollable or not scrollable
|
void |
setScrollbarMode(int mode)
Sets the scrollbar mode of the object.
|
void |
setScrollDirection(int direction)
Sets the scroll direction of the object.
|
void |
setScrollListener(ScrollListener listener)
Sets the ScrollListener of the object
|
void |
setValueChangedListener(ValueChangedListener listener)
Sets the ValueChangedListener of the object
|
enableClipCorner, forceNewTrack, getBackgroundColor, getBorderColor, getBorderWidth, getColumnPadding, getCoordinates, getFlexGrow, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getName, getPadding, getParent, getPropertyBooleanValue, getPropertyIntValue, getRadius, getRowPadding, getShadowColor, getShadowOffsetX, getShadowOffsetY, getShadowWidth, getTextColor, getTextLetterSpace, getTextLineSpace, getTranslateX, getTranslateY, getUserData, getWidth, getX, getY, isClipCornerEnabled, setAlign, setBackgroundColor, setBorderColor, setBorderWidth, setColumnPadding, setFlexGrow, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setName, setPadding, setPadding, setParent, setPos, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setRadius, setRecolor, setRowPadding, setShadowColor, setShadowOffsetX, setShadowOffsetY, setShadowWidth, setSize, setTextAlign, setTextColor, setTextDecor, setTextFont, setTextLetterSpace, setTextLineSpace, setTranslateX, setTranslateY, setUserData, setWidth, setX, setY
public static final int SCROLLBAR_MODE_OFF
public static final int SCROLLBAR_MODE_ON
public static final int SCROLLBAR_MODE_ACTIVE
public static final int SCROLLBAR_MODE_AUTO
public static final int SCROLL_DIR_NONE
public static final int SCROLL_DIR_LEFT
public static final int SCROLL_DIR_RIGHT
public static final int SCROLL_DIR_TOP
public static final int SCROLL_DIR_BOTTOM
public static final int SCROLL_DIR_HORIZONTAL
public static final int SCROLL_DIR_VERTICAL
public static final int SCROLL_DIR_ALL
public static final int STATE_DEFAULT
public static final int STATE_CHECKED
public static final int STATE_DISABLED
public static final int STATE_SCROLLED
public void setChecked(boolean checked)
checked
- true to be checked, false to be not checkedpublic boolean isChecked()
public void setDisabled(boolean disabled)
disabled
- true to be disabled, false to be not disabledpublic boolean isDisabled()
public boolean isScrolled()
public void setHidden(boolean hidden)
hidden
- true to be hidden, false to be visiblepublic boolean isHidden()
public void setClickable(boolean clickable)
clickable
- true to be clickable, false to be not clickablepublic boolean isClickable()
public void setScrollable(boolean scrollable)
scrollable
- true to be scrollable, false to be not scrollablepublic boolean isScrollable()
public void setIgnoreLayout(boolean ignore)
ignore
- true to set coordinates as usual, false to set by layoutspublic boolean isIgnoreLayout()
public void setFloating(boolean floating)
floating
- true to set be floatingpublic boolean isFloating()
public void setValueChangedListener(ValueChangedListener listener)
listener
- ValueChangedListenerpublic void setClickedListener(ClickedListener listener)
listener
- ClickedListenerpublic void setReadyListener(ReadyListener listener)
listener
- ReadyListenerpublic void setCancelListener(CancelListener listener)
listener
- CancelListenerpublic void setScrollListener(ScrollListener listener)
listener
- ScrollListenerpublic void resetAllListeners()
public UIObject getObjectOfState(int state)
state
- a combination of states. such as STATE_CHECKED
,
STATE_SCROLLED
, ...public UIObject getScrollbar()
public UIObject getScrollbarOfState(int state)
state
- a combination of states. such as STATE_CHECKED
,
STATE_SCROLLED
, ...public void setScrollbarMode(int mode)
mode
- SCROLLBAR_MODE_OFF
or SCROLLBAR_MODE_ON
or
SCROLLBAR_MODE_ACTIVE
or SCROLLBAR_MODE_AUTO
public int getScrollbarMode()
public void setScrollDirection(int direction)
direction
- SCROLL_DIR_NONE
, or a combination of
SCROLL_DIR_LEFT
, SCROLL_DIR_RIGHT
,
SCROLL_DIR_TOP
and SCROLL_DIR_BOTTOM
.public int getScrollDirection()
public int getScrollX()
public int getScrollY()
public int getScrollLeft()
public int getScrollRight()
public int getScrollTop()
public int getScrollBottom()
public void scrollToX(int x)
x
- scroll position in pixelsgetScrollX()
public void scrollToX(int x, boolean immediately)
x
- scroll position in pixelsimmediately
- true:scroll immediately, false:scroll with animationgetScrollX()
public void scrollToY(int y)
y
- scroll position in pixelsgetScrollY()
public void scrollToY(int y, boolean immediately)
y
- scroll position in pixelsimmediately
- true:scroll immediately, false:scroll with animationgetScrollY()
public void scrollToView()
public void scrollToView(boolean immediately)
immediately
- true:scroll immediately, false:scroll with animation