public class MapMenuButtonWidget extends RadialButtonWidget
Modifier and Type | Class and Description |
---|---|
static interface |
MapMenuButtonWidget.OnBackingColorChangedListener
Radial menu container containing buttons and controlling layout.
|
RadialButtonWidget.OnOrientationChangedListener, RadialButtonWidget.OnSizeChangedListener
AbstractButtonWidget.OnBackgroundChangedListener, AbstractButtonWidget.OnIconChangedListener, AbstractButtonWidget.OnStateChangedListener, AbstractButtonWidget.OnTextChangedListener
MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
STATE_DISABLED, STATE_PRESSED, STATE_SELECTED
Constructor and Description |
---|
MapMenuButtonWidget(android.content.Context context)
Button widget children of radial menu widgets.
|
Modifier and Type | Method and Description |
---|---|
void |
copyAction(IMapMenuButtonWidget other) |
void |
delayShow(int milliSeconds)
How long to delay showing widget, to animate menu
|
float |
getDelayAlpha()
Get menu widget alpha based on delay value
|
float |
getLayoutWeight()
Gets the layout weight for the button.
|
OnButtonClickHandler |
getOnButtonClickHandler() |
MapAction |
getOnClickAction()
Deprecated.
Use
IMapMenuButtonWidget#getOnButtonClickHandler() or
IMapMenuButtonWidget#onButtonClick(Object) |
java.util.List<java.lang.String> |
getPrefKeys()
Get preference keys associated with the button widget
|
java.util.List<java.lang.String> |
getPrefValues()
Get preference values associated with the button widget
|
int |
getState() |
IMapMenuWidget |
getSubmenu() |
MapMenuWidget |
getSubmenuWidget()
Deprecated.
Use
IMapMenuButtonWidget#getSubmenu() |
IWidgetBackground |
getWidgetBackground() |
IIcon |
getWidgetIcon() |
boolean |
isBackButton() |
boolean |
isDelaying() |
boolean |
isDisabled()
Get whether the state of the button includes a disabled flag
|
protected void |
onBackingColorChanged() |
void |
onButtonClick(java.lang.Object opaque) |
void |
setDisableActionSwap(boolean disableActionSwap) |
void |
setDisabled(boolean disabled)
Disable or enable the state of the button
|
void |
setDisableIconSwap(boolean disableIconSwap) |
void |
setIsBackButton(boolean _isBackButton)
Set this as a back button in a submenu
|
void |
setLayoutWeight(float weight)
Set the layout weight for the button to determine is span
dimension upon layout.
|
void |
setOnButtonClickHandler(OnButtonClickHandler o) |
void |
setOnClickAction(MapAction mapAction)
Deprecated.
Use
IMapMenuButtonWidget#setOnButtonClickHandler(OnButtonClickHandler) |
void |
setPrefKeys(java.util.List<java.lang.String> keys)
Set preference keys associated with the button widget
|
void |
setPrefValues(java.util.List<java.lang.String> values)
Set preference values associated with the button widget
|
void |
setSelectable(boolean selectable) |
void |
setShowSubmenu(boolean showSubmenu) |
void |
setShowSubmenuPref(java.lang.String showSubmenuPref) |
void |
setState(int state) |
void |
setSubmenu(IMapMenuWidget mapMenuWidget) |
void |
setSubmenuWidget(MapMenuWidget submenuWidget)
Deprecated.
Use
IMapMenuButtonWidget#setSubmenu(IMapMenuWidget) |
void |
setWidgetBackground(IWidgetBackground bg) |
void |
setWidgetIcon(IIcon icon) |
addOnOrientationChangedListener, addOnSizeChangedListener, getButtonSpan, getButtonWidth, getOrientationAngle, getOrientationRadius, onOrientationChanged, onSizeChanged, removeOnOrientationChangedListener, removeOnSizeChangedListener, seekWidgetHit, setButtonSize, setOrientation
addOnBackgroundChangedListener, addOnIconChangedListener, addOnStateChangedListener, addOnTextChangedListener, getBackground, getIcon, getText, onBackgroundChanged, onClick, onIconChanged, onPress, onStateChanged, onTextChanged, onUnpress, removeOnBackgroundChangedListener, removeOnIconChangedListener, removeOnStateChangedListener, removeOnTextChangedListener, setBackground, setIcon, setText
addOnClickListener, addOnHoverListener, addOnLongPressListener, addOnMoveListener, addOnPressListener, addOnUnpressListener, addOnVisibleChangedListener, addOnWidgetPointChangedListener, addOnWidgetSizeChangedListener, equals, getAbsolutePath, getAbsolutePosition, getAbsoluteWidgetPosition, getHeight, getMargins, getName, getPadding, getParent, getPointX, getPointY, getPropertyValue, getSize, getWidth, getZOrder, hashCode, isEnterable, isTouchable, isVisible, onHover, onLongPress, onMove, onMove, onPointChanged, onVisibleChanged, orientationChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, removeOnWidgetSizeChangedListener, seekHit, setHeight, setMargins, setName, setPadding, setPadding, setParent, setPoint, setSize, setTouchable, setVisible, setWidth, setZOrder, testHit, unregisterForwardedListener, visitPropertyInfos
public static final java.lang.String TAG
public MapMenuButtonWidget(android.content.Context context)
context
- application Context
public java.util.List<java.lang.String> getPrefKeys()
public void setPrefKeys(java.util.List<java.lang.String> keys)
keys
- listing string preferencespublic java.util.List<java.lang.String> getPrefValues()
public void setPrefValues(java.util.List<java.lang.String> values)
values
- listing string preferencespublic void setDisabled(boolean disabled)
disabled
- if the button should be inactivepublic boolean isDisabled()
public void copyAction(IMapMenuButtonWidget other)
public void setWidgetIcon(IIcon icon)
setWidgetIcon
in class AbstractButtonWidget
public IIcon getWidgetIcon()
getWidgetIcon
in class AbstractButtonWidget
public void setWidgetBackground(IWidgetBackground bg)
setWidgetBackground
in class AbstractButtonWidget
public IWidgetBackground getWidgetBackground()
getWidgetBackground
in class AbstractButtonWidget
public void setState(int state)
setState
in class AbstractButtonWidget
public int getState()
getState
in class AbstractButtonWidget
public void setSelectable(boolean selectable)
setSelectable
in class AbstractButtonWidget
public OnButtonClickHandler getOnButtonClickHandler()
public void setOnButtonClickHandler(OnButtonClickHandler o)
public void onButtonClick(java.lang.Object opaque)
@Deprecated public MapAction getOnClickAction()
IMapMenuButtonWidget#getOnButtonClickHandler()
or
IMapMenuButtonWidget#onButtonClick(Object)
@Deprecated public void setOnClickAction(MapAction mapAction)
IMapMenuButtonWidget#setOnButtonClickHandler(OnButtonClickHandler)
mapAction
- action to execute upon click@Deprecated public MapMenuWidget getSubmenuWidget()
IMapMenuButtonWidget#getSubmenu()
public IMapMenuWidget getSubmenu()
public float getLayoutWeight()
public void setLayoutWeight(float weight)
weight
- to be associated with the button instance.public void setDisableActionSwap(boolean disableActionSwap)
public void setDisableIconSwap(boolean disableIconSwap)
@Deprecated public void setSubmenuWidget(MapMenuWidget submenuWidget)
IMapMenuButtonWidget#setSubmenu(IMapMenuWidget)
submenuWidget
- to be associated with the buttonpublic void setSubmenu(IMapMenuWidget mapMenuWidget)
public void setShowSubmenuPref(java.lang.String showSubmenuPref)
public void setShowSubmenu(boolean showSubmenu)
public void delayShow(int milliSeconds)
milliSeconds
- how long to delaypublic boolean isDelaying()
public float getDelayAlpha()
public boolean isBackButton()
public void setIsBackButton(boolean _isBackButton)
_isBackButton
- back button stateprotected void onBackingColorChanged()