org.solovyev.android.keyboard
Class DragAKeyboardButtonDefImpl
java.lang.Object
org.solovyev.android.keyboard.DragAKeyboardButtonDefImpl
- All Implemented Interfaces:
- DragAKeyboardButtonDef, ButtonDef, DirectionDragButtonDef, DragButtonDef, ViewDef
public class DragAKeyboardButtonDefImpl
- extends Object
- implements DragAKeyboardButtonDef
|
Method Summary |
boolean |
allowRepeat()
|
Integer |
getBackgroundResId()
|
Integer |
getDirectionKeycode(DragDirection dragDirection)
|
Integer |
getDrawableResId()
|
Integer |
getKeycode()
|
Integer |
getLayoutMarginLeft()
|
Integer |
getLayoutMarginRight()
|
Float |
getLayoutWeight()
|
CharSequence |
getPreviewDirectionText(DragDirection direction)
|
Integer |
getPreviewDrawableResId()
|
CharSequence |
getPreviewText()
|
String |
getTag()
|
CharSequence |
getText()
|
CharSequence |
getText(DragDirection dragDirection)
|
static DragAKeyboardButtonDefImpl |
newDrawableInstance(int drawableResId,
int keycode)
|
static DragAKeyboardButtonDefImpl |
newDrawableInstance(int drawableResId,
int keycode,
int backgroundResId)
|
static DragAKeyboardButtonDefImpl |
newInstance(CharSequence text,
CharSequence up,
CharSequence right,
CharSequence down,
CharSequence left)
|
static DragAKeyboardButtonDefImpl |
newInstance(CharSequence text,
CharSequence up,
CharSequence right,
CharSequence down,
CharSequence left,
int drawableResId)
|
static DragAKeyboardButtonDefImpl |
newInstance(CharSequence text,
Integer keycode)
|
void |
setAllowRepeat(boolean allowRepeat)
|
void |
setBackgroundResId(int backgroundResId)
|
void |
setBackgroundResId(Integer backgroundResId)
|
void |
setDirectionKeycode(DragDirection direction,
Integer actionCode)
|
void |
setDirectionText(DragDirection key,
CharSequence text)
|
void |
setDrawableResId(Integer drawableResId)
|
void |
setImeOptions(android.content.res.Resources resources,
int imeOptions)
|
void |
setKeycode(Integer actionCode)
|
void |
setLayoutMarginLeft(Integer layoutMarginLeft)
|
void |
setLayoutMarginRight(Integer layoutMarginRight)
|
void |
setPreviewDirectionText(DragDirection direction,
CharSequence charSequence)
|
void |
setPreviewDrawableResId(Integer previewDrawableResId)
|
void |
setPreviewText(CharSequence previewText)
|
void |
setShifted(boolean shifted)
|
void |
setTag(String tag)
|
void |
setText(CharSequence text)
|
void |
setWeight(Float weight)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DragAKeyboardButtonDefImpl
public DragAKeyboardButtonDefImpl()
getText
@Nullable
public CharSequence getText(@Nonnull
DragDirection dragDirection)
- Specified by:
getText in interface DirectionDragButtonDef
getDrawableResId
@Nullable
public Integer getDrawableResId()
- Specified by:
getDrawableResId in interface ButtonDef
getText
@Nullable
public CharSequence getText()
- Specified by:
getText in interface ButtonDef
getLayoutWeight
@Nullable
public Float getLayoutWeight()
- Specified by:
getLayoutWeight in interface ViewDef
getLayoutMarginLeft
@Nullable
public Integer getLayoutMarginLeft()
- Specified by:
getLayoutMarginLeft in interface ViewDef
getLayoutMarginRight
@Nullable
public Integer getLayoutMarginRight()
- Specified by:
getLayoutMarginRight in interface ViewDef
getTag
@Nullable
public String getTag()
- Specified by:
getTag in interface ViewDef
getBackgroundResId
@Nullable
public Integer getBackgroundResId()
- Specified by:
getBackgroundResId in interface ViewDef
allowRepeat
public boolean allowRepeat()
- Specified by:
allowRepeat in interface DragAKeyboardButtonDef
getKeycode
@Nullable
public Integer getKeycode()
- Specified by:
getKeycode in interface DragAKeyboardButtonDef
getPreviewDrawableResId
@Nullable
public Integer getPreviewDrawableResId()
- Specified by:
getPreviewDrawableResId in interface DragAKeyboardButtonDef
setKeycode
public void setKeycode(@Nullable
Integer actionCode)
getDirectionKeycode
public Integer getDirectionKeycode(@Nonnull
DragDirection dragDirection)
- Specified by:
getDirectionKeycode in interface DragAKeyboardButtonDef
setDirectionKeycode
public void setDirectionKeycode(@Nonnull
DragDirection direction,
@Nullable
Integer actionCode)
setAllowRepeat
public void setAllowRepeat(boolean allowRepeat)
newInstance
@Nonnull
public static DragAKeyboardButtonDefImpl newInstance(@Nullable
CharSequence text,
@Nullable
CharSequence up,
@Nullable
CharSequence right,
@Nullable
CharSequence down,
@Nullable
CharSequence left)
newInstance
public static DragAKeyboardButtonDefImpl newInstance(@Nullable
CharSequence text,
@Nullable
CharSequence up,
@Nullable
CharSequence right,
@Nullable
CharSequence down,
@Nullable
CharSequence left,
int drawableResId)
newInstance
public static DragAKeyboardButtonDefImpl newInstance(@Nullable
CharSequence text,
@Nullable
Integer keycode)
newDrawableInstance
public static DragAKeyboardButtonDefImpl newDrawableInstance(int drawableResId,
int keycode)
newDrawableInstance
public static DragAKeyboardButtonDefImpl newDrawableInstance(int drawableResId,
int keycode,
int backgroundResId)
setWeight
public void setWeight(@Nullable
Float weight)
setLayoutMarginRight
public void setLayoutMarginRight(@Nullable
Integer layoutMarginRight)
setLayoutMarginLeft
public void setLayoutMarginLeft(@Nullable
Integer layoutMarginLeft)
setBackgroundResId
public void setBackgroundResId(int backgroundResId)
setTag
public void setTag(@Nullable
String tag)
setText
public void setText(@Nullable
CharSequence text)
setBackgroundResId
public void setBackgroundResId(@Nullable
Integer backgroundResId)
setDrawableResId
public void setDrawableResId(@Nullable
Integer drawableResId)
setDirectionText
public void setDirectionText(@Nonnull
DragDirection key,
@Nullable
CharSequence text)
setPreviewText
public void setPreviewText(@Nullable
CharSequence previewText)
setPreviewDirectionText
public void setPreviewDirectionText(@Nonnull
DragDirection direction,
@Nullable
CharSequence charSequence)
setImeOptions
public void setImeOptions(@Nonnull
android.content.res.Resources resources,
int imeOptions)
- Specified by:
setImeOptions in interface DragAKeyboardButtonDef
setShifted
public void setShifted(boolean shifted)
- Specified by:
setShifted in interface DragAKeyboardButtonDef
getPreviewText
@Nullable
public CharSequence getPreviewText()
- Specified by:
getPreviewText in interface DragAKeyboardButtonDef
getPreviewDirectionText
@Nullable
public CharSequence getPreviewDirectionText(@Nonnull
DragDirection direction)
- Specified by:
getPreviewDirectionText in interface DragAKeyboardButtonDef
setPreviewDrawableResId
public void setPreviewDrawableResId(@Nullable
Integer previewDrawableResId)
Copyright © 2013. All Rights Reserved.