org.solovyev.android.view.drag
Class DirectionDragButtonDefImpl

java.lang.Object
  extended by org.solovyev.android.view.drag.DirectionDragButtonDefImpl
All Implemented Interfaces:
ButtonDef, DirectionDragButtonDef, DragButtonDef, ViewDef

public class DirectionDragButtonDefImpl
extends Object
implements DirectionDragButtonDef

User: serso Date: 11/3/12 Time: 1:57 PM


Method Summary
 Integer getBackgroundResId()
           
 Integer getDrawableResId()
           
 Integer getLayoutMarginLeft()
           
 Integer getLayoutMarginRight()
           
 Float getLayoutWeight()
           
 String getTag()
           
 CharSequence getText()
           
 CharSequence getText(DragDirection dragDirection)
           
static DirectionDragButtonDefImpl newDrawableInstance(Integer drawableResId)
           
static DirectionDragButtonDefImpl newDrawableInstance(Integer drawableResId, Integer backgroundColor)
           
static DirectionDragButtonDefImpl newInstance(CharSequence text)
           
static DirectionDragButtonDefImpl newInstance(CharSequence text, CharSequence up, CharSequence right, CharSequence down, CharSequence left)
           
static DirectionDragButtonDefImpl newInstance(CharSequence text, CharSequence up, CharSequence right, CharSequence down, CharSequence left, Integer backgroundColor)
           
 void setBackgroundResId(int backgroundResId)
           
 void setBackgroundResId(Integer backgroundResId)
           
 void setDirectionText(DragDirection key, CharSequence text)
           
 void setDrawableResId(Integer drawableResId)
           
 void setLayoutMarginLeft(Integer layoutMarginLeft)
           
 void setLayoutMarginRight(Integer layoutMarginRight)
           
 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
 

Method Detail

newInstance

@Nonnull
public static DirectionDragButtonDefImpl newInstance(@Nullable
                                                             CharSequence text)

newInstance

@Nonnull
public static DirectionDragButtonDefImpl newInstance(@Nullable
                                                             CharSequence text,
                                                             @Nullable
                                                             CharSequence up,
                                                             @Nullable
                                                             CharSequence right,
                                                             @Nullable
                                                             CharSequence down,
                                                             @Nullable
                                                             CharSequence left)

newInstance

@Nonnull
public static DirectionDragButtonDefImpl newInstance(@Nullable
                                                             CharSequence text,
                                                             @Nullable
                                                             CharSequence up,
                                                             @Nullable
                                                             CharSequence right,
                                                             @Nullable
                                                             CharSequence down,
                                                             @Nullable
                                                             CharSequence left,
                                                             @Nullable
                                                             Integer backgroundColor)

newDrawableInstance

@Nonnull
public static DirectionDragButtonDefImpl newDrawableInstance(@Nonnull
                                                                     Integer drawableResId)

newDrawableInstance

@Nonnull
public static DirectionDragButtonDefImpl newDrawableInstance(@Nonnull
                                                                     Integer drawableResId,
                                                                     @Nullable
                                                                     Integer backgroundColor)

getText

@Nullable
public CharSequence getText(@Nonnull
                                     DragDirection dragDirection)
Specified by:
getText in interface DirectionDragButtonDef

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

getDrawableResId

@Nullable
public Integer getDrawableResId()
Specified by:
getDrawableResId in interface ButtonDef

getTag

@Nullable
public String getTag()
Specified by:
getTag in interface ViewDef

getBackgroundResId

@Nullable
public Integer getBackgroundResId()
Specified by:
getBackgroundResId in interface ViewDef

getText

@Nullable
public CharSequence getText()
Specified by:
getText in interface ButtonDef

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)


Copyright © 2014 se.solovyev. All Rights Reserved.